Meta: Create Campaign
meta_create_campaignCreate a Meta (Facebook/Instagram) ad campaign for traffic, awareness, engagement, or sales. The campaign, ad set, and ad are all created PAUSED — nothing spends until you run meta_activate_campaign. A sales campaign optimizes for website conversions and needs a Meta Pixel on the ad account; its conversion event is locked in at creation. Bidding defaults to lowest cost with no cap; bid_strategy sets a cost cap, a bid cap, or a minimum ROAS (sales campaigns optimizing for PURCHASE only). Change it later with meta_update_adset_bidding. destination WHATSAPP (engagement only) builds a click-to-WhatsApp ad that opens a chat with the Page's linked WhatsApp number.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"objective": "<objective>",
"daily_budget": "<daily_budget>",
"ad_text": "<ad_text>"
},
"name": "meta_create_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Campaign name. | |
| ad_text | Yes | Primary ad text / body copy. | |
| age_max | No | Maximum audience age. | |
| age_min | No | Minimum audience age. | |
| page_id | No | Facebook Page id for the creative. Optional — the ad account's Page is used automatically when there is only one. See meta_list_pages. | |
| headline | No | Optional headline. | |
| link_url | No | Destination URL for the ad. Required unless destination is WHATSAPP. | |
| pixel_id | No | Meta Pixel id, OUTCOME_SALES only. Defaults to the account's pixel when it has exactly one. | |
| countries | No | ISO country codes. Default ["US"]. | |
| dsa_payor | No | EU only: the person or organisation paying for the ads. Defaults to dsa_beneficiary. | |
| image_url | No | Creative image URL: optional for a website ad, required with destination WHATSAPP. Must be a publicly reachable https JPEG or PNG — the image is uploaded to the ad account, not hotlinked. | |
| objective | Yes | Campaign objective. OUTCOME_SALES optimizes for pixel conversions on your site. | |
| bid_amount | No | Cost or bid cap per result, for COST_CAP and LOWEST_COST_WITH_BID_CAP only. In the account's own currency (the currency field of gads_list_campaigns or meta_list_campaigns), not in dollars and not in minor units. | |
| destination | No | Where the ad sends people. WEBSITE (default) opens link_url. WHATSAPP (OUTCOME_ENGAGEMENT only) opens a WhatsApp chat with the Page's linked number, optimizes for conversations and uses the WHATSAPP_MESSAGE button; the Page must have WhatsApp connected in Meta Business Suite. | |
| roas_target | No | Minimum ROAS for LOWEST_COST_WITH_MIN_ROAS, as a RATIO: pass 2.5 to mean 250% (2.50 of purchase value per 1 spent). Between 0.01 and 1000. | |
| bid_strategy | No | Ad set bid strategy. LOWEST_COST_WITHOUT_CAP: Meta's default, the most results for the budget. COST_CAP: keeps the average cost per result near bid_amount. LOWEST_COST_WITH_BID_CAP: no auction bid above bid_amount. LOWEST_COST_WITH_MIN_ROAS: a minimum return on ad spend (roas_target); only on ad sets optimizing for PURCHASE, which are switched to optimize for purchase value. roas_target without bid_strategy means LOWEST_COST_WITH_MIN_ROAS. | |
| daily_budget | Yes | Daily budget. In the account's own currency (the currency field of gads_list_campaigns or meta_list_campaigns), not in dollars and not in minor units. | |
| ad_account_id | No | Meta ad account to change: act_ id or exact account name. Required when you have several ad accounts — the stored default is never used for a change then. | |
| call_to_action | No | Optional button on the ad. Omitted entirely when not set. The button always points at link_url. With destination WHATSAPP it is always WHATSAPP_MESSAGE. | |
| dsa_beneficiary | No | EU only: the person or organisation the ads promote, shown to EU viewers under the Digital Services Act. Meta requires it when the ad set reaches an EU country and the ad account has no default advertiser. Ask the user for the exact name; never guess it. | |
| conversion_event | No | Pixel event to optimize for, OUTCOME_SALES only. Default PURCHASE. Cannot be changed after the ad set is created. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adId | Yes | Id of the ad created inside the ad set. | |
| status | Yes | Always PAUSED — nothing spends until meta_activate_campaign runs. | |
| adSetId | Yes | Id of the ad set created inside the campaign. | |
| currency | No | ISO currency code that every money field in this result is denominated in, e.g. UAH or USD. Null when it could not be resolved — do not assume a currency then. | |
| campaignId | Yes | Id of the campaign that was created. | |
| dailyBudget | Yes | Daily budget set on the ad set. Amount in the account currency (see the currency field), e.g. 800.00 with currency UAH means 800 UAH — never a minor-unit integer. |