ads_ad_create
Create an ad from your own creative, together with its campaign and ad set (or attached to existing ones via attach_to). SPENDS REAL MONEY from the ad account once approved unless status is paused: confirm budget, targeting and creative with the user first, and consider validate_only. Meta: needs page_id, link and either media (one image or video URL) or carousel_cards; goal defaults to traffic. Google: creates a Search campaign, ad group, keywords and a responsive search ad atomically; needs final_url, headlines (3-15, max 30 chars), descriptions (2-4, max 90 chars), keywords and budget. Returns the ad. Not idempotent: pass idempotency_key before retrying. To promote an already published post use ads_post_boost.
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_account_id": "<ad_account_id>"
},
"name": "ads_ad_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Meta: primary text | |
| goal | No | Meta. Default traffic. | |
| link | No | Meta, required: destination URL | |
| media | No | Meta: one image or video URL. Send this or carousel_cards. | |
| path1 | No | Google: display path, up to 15 characters | |
| path2 | No | Google: second display path, up to 15 characters; needs path1 | |
| budget | No | Budget in the ad account currency, whole units (10 = 10.00). Meta minimum is the ad account's minimum_daily_budget. | |
| status | No | Default active: the ad starts spending once approved. Use paused to create without delivering. | |
| ad_name | No | Defaults to 'Postproxy Ad - <timestamp>' | |
| bidding | No | Google bidding: { strategy, target_cpa, max_cpc }. maximize_clicks (default, optional max_cpc ceiling), manual_cpc (needs max_cpc), maximize_conversions, target_cpa (needs target_cpa). | |
| page_id | No | Meta, required: Facebook Page the ad runs as | |
| headline | No | Meta: ad headline | |
| keywords | No | Google keywords, up to 200 | |
| schedule | No | When the ad runs. Without end it runs until paused. On Meta end must be at least 30 hours after the start. | |
| tracking | No | Meta: { pixel_id } | |
| url_tags | No | Meta: appended to the ad's links, e.g. ["utm_source=postproxy"] | |
| attach_to | No | Reuse existing objects instead of creating new ones: { campaign_id } adds a new ad set and ad to a campaign; { campaign_id, ad_set_id } adds only the ad. Both are network ids. With ad_set_id, do not send budget, bid_amount or targeting (Meta) or keywords (Google); with any attach_to, no campaign-level budget. | |
| dsa_payor | No | Meta EU DSA payor; send together with dsa_beneficiary | |
| final_url | No | Google, required: landing page URL | |
| headlines | No | Google, required: 3 to 15 unique headlines, each up to 30 characters | |
| platforms | No | Per-network extras. platforms.meta_ads.thumbnail_url is required when media is a video. | |
| targeting | No | Audience. Meta defaults to US, ages 18-65. Google Search accepts only locations, excluded_locations and location_targeting_type, with locations as arrays of numeric ids. | |
| bid_amount | No | Meta: required with bid_cap / cost_cap, not allowed with lowest_cost | |
| placements | No | Meta manual placements: publisher_platforms, facebook_positions, instagram_positions, messenger_positions, audience_network_positions, threads_positions, device_platforms. Omit for automatic placements. | |
| profile_id | No | Ads profile hashid (the profile_id of an ad account in ads_accounts_list). Optional when exactly one ads profile is connected; required when several are. | |
| ad_set_name | No | Defaults to ad_name | |
| description | No | Meta: link description | |
| bid_strategy | No | Meta. Defaults to bid_cap when bid_amount is sent, else lowest_cost. | |
| descriptions | No | Google, required: 2 to 4 unique descriptions, each up to 90 characters | |
| ad_account_id | Yes | Ad account id: the network's own id, from ads_accounts_list (id field) | |
| ad_set_status | No | Defaults to status on Meta, to active on Google | |
| campaign_name | No | Defaults to ad_name | |
| campaign_type | No | Google. Default search; other types cannot be created. | |
| validate_only | No | Check the request without creating anything. Returns { valid: true, validated: [...] }. On Meta only the parameters and the campaign are dry-run; on Google the whole request is. | |
| call_to_action | No | Meta button. Link button: { type, link, link_title } with type LEARN_MORE, APPLY_NOW, SIGN_UP, SHOP_NOW, BOOK_TRAVEL, GET_QUOTE, CONTACT_US, DOWNLOAD or SUBSCRIBE. Messaging: { type, destination } with destination messenger, whatsapp or instagram_dm and type MESSAGE_PAGE, WHATSAPP_MESSAGE or INSTAGRAM_MESSAGE (needs goal engagement). | |
| carousel_cards | No | Meta: 2 to 10 carousel cards | |
| campaign_status | No | Defaults to status | |
| dsa_beneficiary | No | Meta EU DSA beneficiary; send together with dsa_payor. Suggestions: ads_dsa_recommendations. | |
| idempotency_key | No | Unique key for this create, sent as the Idempotency-Key header. Reuse the same key when retrying so the object is not created twice. | |
| network_settings | No | Google: { search_partners, display_network }, both default false | |
| profile_group_id | No | Profile group hashid, to scope the call to one profile group. Usually not needed. | |
| negative_keywords | No | Google negative keywords: { text, match_type }. A bid is ignored. | |
| optimization_goal | No | Meta, per goal: engagement post_engagement; traffic link_clicks or landing_page_views; awareness reach or impressions; video_views thruplay. Defaults to the first. | |
| instagram_account_id | No | Meta: Instagram account to show the ad from | |
| special_ad_categories | No | Meta special ad categories | |
| eu_political_advertising | No | Google. Default false. | |
| ad_set_budget_sharing_enabled | No | Meta ad set budget sharing. Not with a lifetime or campaign-level budget, or attach_to. | |
| special_ad_category_countries | No | Meta: defaults to the countries of the targeted locations |