Ads Buying
Updated: Apr 6, 2026
Copy for LLM
The following guide shows how to create ad campaigns for Click to Messenger Ads and Facebook Page promotions.
Click to Messenger Ads
Click-to-Messenger Ads allow people to directly start a thread with your Facebook Page when they click on your ad.
Requirements
- An Ad Account ID
Sample Code
The following code example shows you how to create an ad that will run during a designated time period.
Page Promotion
Create an ad to increase traffic to your Facebook Page.
Requirements
- An Ad Account ID
- A Facebook Page ID
Sample Code
The following code example shows you how to create an ad campaign to promote your Page to get more Page Likes. The ad will run in the US with a daily budget of $1000 USD where ad impressions is the goal of the campaign.
Learn More
- Messenger Ads docs – Learn more about Messenger Ads
- Ad Set Reference – Learn more about Ad Sets