Meta: Create Ad
meta_create_adAdd a new ad, with a new creative, to an ad set that already exists — use this instead of meta_create_campaign when the campaign and ad set are already set up. The ad is created PAUSED even if the ad set is active, so it does not spend until you run meta_set_status on the returned adId. Any image is uploaded to the ad account rather than hotlinked. Or pass creative_id to reuse a creative already in the account (see meta_create_creative, meta_list_creatives) instead of ad_text and link_url. Use meta_list_campaigns to find the ad set id.
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": {
"ad_set_id": "<ad_set_id>"
},
"name": "meta_create_ad"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional ad name. Defaults to a name derived from the ad set. | |
| ad_text | No | Primary ad text / body copy. Required without creative_id. | |
| 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 without creative_id, except with call_to_action WHATSAPP_MESSAGE. | |
| ad_set_id | Yes | Id of the existing ad set the ad goes into. | |
| image_url | No | Creative image URL: optional for a website ad, required with call_to_action WHATSAPP_MESSAGE. Must be a publicly reachable https JPEG or PNG — the image is uploaded to the ad account, not hotlinked. | |
| creative_id | No | Existing creative in the ad account to use. When set, ad_text, link_url, headline, image_url and call_to_action are not used. | |
| 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; WHATSAPP_MESSAGE instead opens a WhatsApp chat and needs an ad set whose destination is WHATSAPP. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adId | Yes | Id of the ad that was created. | |
| status | Yes | Always PAUSED — the ad does not deliver until meta_set_status turns it on. | |
| adSetId | Yes | Id of the ad set the ad was added to. | |
| adSetName | No | Name of the ad set. | |
| imageHash | No | Uploaded image hash, when there is one. | |
| campaignId | No | Campaign the ad set belongs to. | |
| creativeId | Yes | Id of the creative the ad uses. | |
| imageSource | Yes | Where the creative image came from: UPLOADED_HASH when it was uploaded to the ad account, REMOTE_URL when Meta has to fetch the URL itself, NONE when the ad has no image. |