update_campaign_draft
Replace fields of a draft that was created with create_campaign_draft and has not been published: each field passed replaces the stored one whole (ad_groups replaces all ad groups). Returns the draft with a fresh validation. Drafts made by a person in the builder and builds that were already published are refused. Nothing is sent to the ad platform.
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": {
"draft_id": "<draft_id>"
},
"name": "update_campaign_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| geo | No | Country codes ('UA', 'SK'); Google also takes 'City, CC'. Meta takes country codes only. | |
| name | No | ||
| extra | No | page_id, instagram_actor_id, dsa_beneficiary, dsa_payor, structured_snippets, search_partners, display_network, geo_target_type, vertical, devices, job_titles, industries, cities, regions. | |
| notes | No | A note for the person who will review the draft: what it is for and what to check. | |
| audience | No | Social types: age_min, age_max, genders, interests, placements, custom_audiences, allow_broad_audience + broad_audience_reason. | |
| draft_id | Yes | Draft id returned by create_campaign_draft. | |
| ad_groups | No | Ad groups (ad sets) with their keywords and ads. The exact fields and limits per type are in list_campaign_types. | |
| languages | No | Language codes of the audience ('uk', 'en'). | |
| conversion | No | Meta leads/sales: {type: 'website', pixel_id, event} or {type: 'lead_form', lead_form_id}. | |
| target_cpa | No | Target cost per result in the account currency, when the strategy needs one. | |
| landing_url | No | https landing page used for every ad that has no final_url of its own. | |
| target_roas | No | ||
| bid_strategy | No | See default_bid_strategies of the type in list_campaign_types; empty keeps the platform default. | |
| daily_budget | No | Per day, in the currency of the client's ad account. | |
| negative_keywords | No | Campaign-level negative keywords (search types). |