Create a paused lead campaign
ads_campaign_create[writes · ads:manage scope] Creates a Meta Instant Form lead campaign (goal lead_generation, the ad set's leadGenFormId from ads_lead_forms_list, placements without Audience Network, the age range and countries in targeting) with one image ad, created PAUSED. It lands in the owner's Proposed campaigns and never runs or spends until the owner approves it (ads_campaign_approve). headline, body, imageUrl or creativeId and budget (dollars; budgetType daily or lifetime) are required; promotedObject.pageId picks the Facebook Page. Pass agentName and reason. Audited in Ads > Agent activity.
(Wraps POST /api/v2/ads/campaigns.)
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": {
"agentName": "<agentName>",
"reason": "<reason>",
"goal": "<goal>",
"leadGenFormId": "<leadGenFormId>",
"headline": "<headline>",
"body": "<body>",
"budget": "<budget>"
},
"name": "ads_campaign_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The ad's primary text. | |
| goal | Yes | ||
| budget | Yes | In dollars (account currency). | |
| reason | Yes | Why the agent is doing this. Shown to the owner and kept in the audit trail. | |
| brandId | No | A brand id (GET /api/v2/brands) or "personal"; default: the key owner's active brand. | |
| headline | Yes | Also the campaign name. | |
| imageUrl | No | The ad image (an allowed host). Or send creativeId. | |
| platform | No | Default facebook. | |
| schedule | No | ISO dates; default now to +7 days. | |
| agentName | Yes | Which agent is acting. Shown to the owner in Ads > Agent activity. | |
| targeting | No | Age range 13-65 and the usual targeting fields. | |
| budgetType | No | Default lifetime. | |
| creativeId | No | A saved ad creative id instead of imageUrl. | |
| placements | No | Default automatic = Facebook, Instagram and Messenger (no Audience Network). | |
| adAccountId | No | Default: the brand's selected ad account; must match it. | |
| callToAction | No | A CTA from the ads create config (default: the owner's default, e.g. LEARN_MORE; SIGN_UP suits a lead form). | |
| leadGenFormId | Yes | An Instant Form id (GET /api/v2/ads/lead-forms). | |
| idempotencyKey | No | Optional; repeats with the same key return the first result instead of creating twice. | |
| promotedObject | No | The Facebook Page the lead ad runs from. | |
| specialAdCategories | No |