Save campaign draft
Loading server catalog…. Download catalog
https://app.advarde.com/mcpAvailable subject to your connection’s permissions.
Description: Save supplied campaign content, including incomplete drafts. No Ads writes. Updates need the current revision.
Method: tools/call · ads_save_campaign_draft
Output: Tool data is returned in result.structuredContent and as JSON text in result.content. Inspect result.isError before using the result. Individual output fields depend on the operation.
Access: Requires the applicable write scopes, workspace role, and account permissions.
Authentication
Use an MCP access token from MCP connections, or connect through OAuth. Send your token in the Authorization: Bearer header.
For full protocol initialization and tool discovery, use an MCP client. These examples show individual JSON-RPC requests.
Tool arguments
Send these fields inside params.arguments. The tool name is sent as params.name.
draft_idstringoptional"uuid"expected_revisionintegeroptional1account_idstringrequired"uuid"namestringrequired1maxLength: 1000configobjectrequiredfalseEXPAND CONFIG
objectiveenumoptional["impressions","clicks","conversions"]budget_amountstringoptional40budget_typeenumoptional["lifetime","daily"]landing_page_configurationobjectoptionalfalseEXPAND LANDING_PAGE_CONFIGURATION
query_string_templatestring | nullrequired4000descriptionstringoptional5000start_localstringoptional30end_localstringoptional30ambiguityenumoptional["reject","earlier","later"]all_locationsbooleanoptionallocationsarrayoptional2500EXPAND LOCATIONS
Each array item
idstringrequired255namestringoptional300excluded_locationsarrayoptional2500EXPAND EXCLUDED_LOCATIONS
Each array item
idstringrequired255namestringoptional300conversion_event_setting_idstringoptional255existing_campaign_idstringoptional255modeenumoptional["standard","product_feed"]product_feed_idstringoptional255brief_idstringoptional"uuid"audience_idsarrayoptional100EXPAND AUDIENCE_IDS
Each array item
{
"type": "string",
"maxLength": 255
}excluded_audience_idsarrayoptional100EXPAND EXCLUDED_AUDIENCE_IDS
Each array item
{
"type": "string",
"maxLength": 255
}platformsarrayoptional3EXPAND PLATFORMS
Each array item
{
"enum": [
"ios_app",
"android_app",
"web"
]
}utm_parametersobjectoptionalgroupsarrayoptional30EXPAND GROUPS
Each array item
idstringrequired"^[A-Za-z0-9_-]{1,80}$"namestringoptional1000descriptionstringoptional5000existing_ad_group_idstringoptional255landing_page_configurationobjectoptionalfalseEXPAND LANDING_PAGE_CONFIGURATION
query_string_templatestring | nullrequired4000context_hintsarrayoptional2000EXPAND CONTEXT_HINTS
Each array item
{
"type": "string",
"maxLength": 1000
}bid_amountstringoptional40strategyenumoptional["fixed_bid","maximize_clicks","maximize_conversions"]custom_audience_bid_multipliersarrayoptional100EXPAND CUSTOM_AUDIENCE_BID_MULTIPLIERS
Each array item
custom_audience_idstringrequired255bid_multiplier_microsintegerrequired100000maximum: 10000000product_setobjectoptionalfalseEXPAND PRODUCT_SET
product_feed_idstringrequired255filtersarrayoptional50EXPAND FILTERS
Each array item
fieldstringrequired100operatorenumrequired["in","gt","gte","lt","lte"]valuesarrayrequired100EXPAND VALUES
Each array item
{
"type": "string",
"maxLength": 1000
}adsarrayoptional100EXPAND ADS
Each array item
idstringrequired"^[A-Za-z0-9_-]{1,80}$"namestringoptional1000titlestringoptional200bodystringoptional1000target_urlstringoptional2048source_image_urlstringoptional2048asset_idstringoptional"uuid"file_idstringoptional255pricestringoptional100hookstringoptional500offerstringoptional500brief_idstringoptional"uuid"Full JSON Schema
{
"type": "object",
"properties": {
"draft_id": {
"type": "string",
"format": "uuid"
},
"expected_revision": {
"type": "integer",
"minimum": 1
},
"account_id": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 1000
},
"config": {
"type": "object",
"properties": {
"objective": {
"enum": [
"impressions",
"clicks",
"conversions"
]
},
"budget_amount": {
"type": "string",
"maxLength": 40
},
"budget_type": {
"enum": [
"lifetime",
"daily"
]
},
"landing_page_configuration": {
"type": "object",
"properties": {
"query_string_template": {
"type": [
"string",
"null"
],
"maxLength": 4000
}
},
"required": [
"query_string_template"
],
"additionalProperties": false
},
"description": {
"type": "string",
"maxLength": 5000
},
"start_local": {
"type": "string",
"maxLength": 30
},
"end_local": {
"type": "string",
"maxLength": 30
},
"ambiguity": {
"enum": [
"reject",
"earlier",
"later"
]
},
"all_locations": {
"type": "boolean"
},
"locations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 255
},
"name": {
"type": "string",
"maxLength": 300
}
},
"required": [
"id"
],
"additionalProperties": false
},
"maxItems": 2500
},
"excluded_locations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 255
},
"name": {
"type": "string",
"maxLength": 300
}
},
"required": [
"id"
],
"additionalProperties": false
},
"maxItems": 2500
},
"conversion_event_setting_id": {
"type": "string",
"maxLength": 255
},
"existing_campaign_id": {
"type": "string",
"maxLength": 255
},
"mode": {
"enum": [
"standard",
"product_feed"
]
},
"product_feed_id": {
"type": "string",
"maxLength": 255
},
"brief_id": {
"type": "string",
"format": "uuid"
},
"audience_ids": {
"type": "array",
"items": {
"type": "string",
"maxLength": 255
},
"maxItems": 100
},
"excluded_audience_ids": {
"type": "array",
"items": {
"type": "string",
"maxLength": 255
},
"maxItems": 100
},
"platforms": {
"type": "array",
"items": {
"enum": [
"ios_app",
"android_app",
"web"
]
},
"maxItems": 3
},
"utm_parameters": {
"type": "object",
"maxProperties": 20,
"propertyNames": {
"pattern": "^utm_[a-z0-9_]+$"
},
"additionalProperties": {
"type": "string",
"maxLength": 500
}
},
"groups": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,80}$"
},
"name": {
"type": "string",
"maxLength": 1000
},
"description": {
"type": "string",
"maxLength": 5000
},
"existing_ad_group_id": {
"type": "string",
"maxLength": 255
},
"landing_page_configuration": {
"type": "object",
"properties": {
"query_string_template": {
"type": [
"string",
"null"
],
"maxLength": 4000
}
},
"required": [
"query_string_template"
],
"additionalProperties": false
},
"context_hints": {
"type": "array",
"items": {
"type": "string",
"maxLength": 1000
},
"maxItems": 2000
},
"bid_amount": {
"type": "string",
"maxLength": 40
},
"strategy": {
"enum": [
"fixed_bid",
"maximize_clicks",
"maximize_conversions"
]
},
"custom_audience_bid_multipliers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"custom_audience_id": {
"type": "string",
"maxLength": 255
},
"bid_multiplier_micros": {
"type": "integer",
"minimum": 100000,
"maximum": 10000000
}
},
"required": [
"custom_audience_id",
"bid_multiplier_micros"
],
"additionalProperties": false
},
"maxItems": 100
},
"product_set": {
"type": "object",
"properties": {
"product_feed_id": {
"type": "string",
"maxLength": 255
},
"filters": {
"type": "array",
"items": {
"type": "object",
"properties": {
"field": {
"type": "string",
"maxLength": 100
},
"operator": {
"enum": [
"in",
"gt",
"gte",
"lt",
"lte"
]
},
"values": {
"type": "array",
"items": {
"type": "string",
"maxLength": 1000
},
"maxItems": 100
}
},
"required": [
"field",
"operator",
"values"
],
"additionalProperties": false
},
"maxItems": 50
}
},
"required": [
"product_feed_id"
],
"additionalProperties": false
},
"ads": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,80}$"
},
"name": {
"type": "string",
"maxLength": 1000
},
"title": {
"type": "string",
"maxLength": 200
},
"body": {
"type": "string",
"maxLength": 1000
},
"target_url": {
"type": "string",
"maxLength": 2048
},
"source_image_url": {
"type": "string",
"maxLength": 2048
},
"asset_id": {
"type": "string",
"format": "uuid"
},
"file_id": {
"type": "string",
"maxLength": 255
},
"price": {
"type": "string",
"maxLength": 100
},
"hook": {
"type": "string",
"maxLength": 500
},
"offer": {
"type": "string",
"maxLength": 500
},
"brief_id": {
"type": "string",
"format": "uuid"
}
},
"required": [
"id"
],
"additionalProperties": false
},
"maxItems": 100
}
},
"required": [
"id"
],
"additionalProperties": false
},
"maxItems": 30
}
},
"required": [],
"additionalProperties": false
}
},
"required": [
"account_id",
"name",
"config"
],
"additionalProperties": false
}Responses
200Successful protocol response
Inspect result.isError for tool-level failures, even when the HTTP status is 200.
202Notification accepted
MCP notifications return no JSON-RPC response body.
400Invalid request
Check the JSON-RPC envelope, parameters, and protocol version.
406Not acceptable
Accept must include application/json and text/event-stream.
429Rate limited
Wait for the Retry-After interval before making another request.
401Unauthorized
A valid, unexpired MCP bearer token is required.
403Access denied
Your connection needs access to this workspace and the requested operation.