Skip to main content
Glama

Draft a campaign

draft_campaign

Draft a full campaign structure — returns a PREVIEW, does NOT create anything.

Creates: CampaignBudget + Campaign (PAUSED) + AdGroup + optional Keywords

  • geo targeting + language targeting + optional geo exclusions and ad schedule, all in one atomic request. Ads are NOT included — draft_responsive_search_ad adds them once the campaign exists. SEARCH and DEMAND_GEN campaigns can be created: Performance Max needs an asset group with all its assets in one request, and DISPLAY, SHOPPING and VIDEO need channel-specific settings and ad group types, so the draft refuses them.

channel_type="DEMAND_GEN" creates budget + campaign (PAUSED) + one Demand Gen ad group with the locations and languages on the ad group (where Demand Gen targets). It takes campaign_name, daily_budget, bidding_strategy (TARGET_SPEND = Maximize clicks, MAXIMIZE_CONVERSIONS or TARGET_CPA), target_cpa, max_cpc, ad_group_name, geo_target_ids, language_ids, start_date, end_date, channels and optimized_targeting. An argument of the Search path that has a value (keywords, geo_exclude_ids, ad_schedule, target_roas, the network, location and URL options) is refused, not dropped. Next: draft_library_image_assets and draft_demand_gen_ad for the ad, and draft_demand_gen_audience to attach an audience to the ad group before the campaign is enabled.

Returns a preview with a plan_id plus any warnings (e.g. a daily budget below 5x target CPA, MANUAL_CPC); nothing changes until confirm_and_apply applies the returned plan_id.

Google Ads API: https://developers.google.com/google-ads/api/docs/start

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": {
      "campaign_name": "<campaign_name>",
      "daily_budget": "<daily_budget>",
      "bidding_strategy": "<bidding_strategy>",
      "geo_target_ids": "<geo_target_ids>"
    },
    "name": "draft_campaign"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_cpcNoIn the account's currency: the manual CPC bid for the initial ad group when bidding_strategy is MANUAL_CPC, or the Maximize Clicks CPC cap when bidding_strategy is TARGET_SPEND. Not allowed with other strategies; 0 means none.
channelsNoDEMAND_GEN only. Where the ad group serves, any of youtube_in_stream, youtube_in_feed, youtube_shorts, discover, gmail, display, maps. Empty serves on all of them, including the Display Network (the preview warns).
end_dateNoDEMAND_GEN only. Last day the campaign runs, YYYY-MM-DD. Empty runs indefinitely. Refused for SEARCH, like start_date.
keywordsNoOptional list of {"text": "keyword", "match_type": "EXACT|PHRASE|BROAD"} added to the initial ad group.
start_dateNoDEMAND_GEN only. First day the campaign runs, YYYY-MM-DD in the account time zone. Empty starts when it is enabled. Refused for SEARCH: create the campaign, then set dates with update_campaign.
target_cpaNoTarget cost per acquisition in the account's currency; required if bidding_strategy is TARGET_CPA, optional target for MAXIMIZE_CONVERSIONS. 0 means none.
ad_scheduleNoWindows the campaign serves in: list of {day_of_week (MONDAY..SUNDAY), start_hour 0-23, end_hour 0-24, start_minute, end_minute (0, 15, 30 or 45)}, whole numbers, in the account time zone. No overlaps, at most six a day. Once the campaign is enabled it serves only inside them; the preview warns about that. No double confirmation, since the campaign is created PAUSED.
customer_idNoGoogle Ads customer ID (digits, e.g. "1234567890"). Empty uses the configured default account.
target_roasNoTarget return on ad spend as a ratio (e.g. 4.0 = 400%); required if bidding_strategy is TARGET_ROAS, optional target for MAXIMIZE_CONVERSION_VALUE. 0 means none.
channel_typeNoSEARCH (default) or DEMAND_GEN. DISPLAY, SHOPPING, VIDEO and PERFORMANCE_MAX are refused with the reason (see above).SEARCH
daily_budgetYesDaily budget in the account's currency (not micros); must be greater than 0 and at most the config's max_daily_budget.
language_idsNoOptional list of language constant IDs. Google retired manual language targeting for Search campaigns in late September 2026 (ads match on the language of the ads and landing page), so leave it out; when given it is still sent and the preview warns. Common: "1001" German, "1000" English, "1002" French, "1003" Spanish, "1004" Italian, "1014" Portuguese. Full list: Google Ads API language constants.
ad_group_nameNoName of the initial ad group. Empty uses campaign_name.
campaign_nameYesName of the new campaign.
geo_target_idsYesREQUIRED list of geo target constant IDs. Common: "2276" Germany, "2040" Austria, "2756" Switzerland, "2840" USA, "2826" UK, "2250" France. Full list: Google Ads API geo target constants.
geo_exclude_idsNoGeo target constant IDs to exclude (negative location criteria), e.g. a city inside a targeted state. May not overlap geo_target_ids.
location_optionNoWho the geo targets reach. PRESENCE (people in or regularly in the locations), PRESENCE_OR_INTEREST (also people elsewhere who show interest in them) or SEARCH_INTEREST (people searching for them). Empty leaves Google's default, PRESENCE_OR_INTEREST. Anything but PRESENCE adds a warning.
bidding_strategyYesMAXIMIZE_CONVERSIONS | TARGET_CPA | TARGET_ROAS | MAXIMIZE_CONVERSION_VALUE | TARGET_SPEND | MANUAL_CPC. BROAD keywords require a Smart Bidding strategy (MAXIMIZE_CONVERSIONS, MAXIMIZE_CONVERSION_VALUE, TARGET_CPA, TARGET_ROAS).
final_url_suffixNoParameters appended to the landing page URL, e.g. "utm_medium=cpc". Omitted leaves it unset.
optimized_targetingNoDEMAND_GEN only. Let Google reach people outside the ad group's audience. Off by default. channels and optimized_targeting are refused for SEARCH.
tracking_url_templateNoCampaign tracking template, e.g. "{lpurl}?utm_source=google&utm_campaign={campaignid}". Must contain {lpurl} or a variant ({lpurl+2}, {unescapedlpurl}, {escapedlpurl+3}, ...). Omitted leaves it unset.
url_custom_parametersNoList of {"key": "grp", "value": "b2c"}, used as {_grp} in the template. Keys alphanumeric, max 8 characters; values up to 250.
display_network_enabledNoEnable Search campaign display expansion (SEARCH campaigns only). Defaults to off.
search_partners_enabledNoInclude ads on Search partners (SEARCH campaigns only).
negative_location_optionNoWho the location exclusions exclude. PRESENCE or PRESENCE_OR_INTEREST; empty leaves Google's default, PRESENCE_OR_INTEREST. PRESENCE excludes fewer people (only those physically there), so it widens reach and the preview warns.
display_expansion_enabledNoAlias for display_network_enabled; both must match when both are given.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / properties / channel_type / description
      Previous value: -"SEARCH (default). DISPLAY, SHOPPING, VIDEO and\nPERFORMANCE_MAX are refused with the reason (see above)."New value: +"SEARCH (default) or DEMAND_GEN. DISPLAY, SHOPPING, VIDEO\nand PERFORMANCE_MAX are refused with the reason (see above)."
    • addedInput schema / properties / channels
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "DEMAND_GEN only. Where the ad group serves, any of\nyoutube_in_stream, youtube_in_feed, youtube_shorts, discover,\ngmail, display, maps. Empty serves on all of them, including the\nDisplay Network (the preview warns)."
      +}
    • addedInput schema / properties / end_date
      Added value: +{
      +  "default": "",
      +  "description": "DEMAND_GEN only. Last day the campaign runs, YYYY-MM-DD.\nEmpty runs indefinitely. Refused for SEARCH, like start_date.",
      +  "type": "string"
      +}
    • addedInput schema / properties / optimized_targeting
      Added value: +{
      +  "default": false,
      +  "description": "DEMAND_GEN only. Let Google reach people outside\nthe ad group's audience. Off by default. channels and\noptimized_targeting are refused for SEARCH.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / start_date
      Added value: +{
      +  "default": "",
      +  "description": "DEMAND_GEN only. First day the campaign runs, YYYY-MM-DD\nin the account time zone. Empty starts when it is enabled. Refused\nfor SEARCH: create the campaign, then set dates with\nupdate_campaign.",
      +  "type": "string"
      +}
  2. Changed6 schema fields changed
    • addedInput schema / properties / language_ids / anyOf
      Added value: +[
      +  {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / language_ids / default
      Added value: +null
    • changedInput schema / properties / language_ids / description
      Previous value: -"REQUIRED list of language constant IDs.\nCommon: \"1001\" German, \"1000\" English, \"1002\" French, \"1003\" Spanish,\n\"1004\" Italian, \"1014\" Portuguese. Full list: Google Ads API\nlanguage constants."New value: +"Optional list of language constant IDs. Google retired\nmanual language targeting for Search campaigns in late September\n2026 (ads match on the language of the ads and landing page), so\nleave it out; when given it is still sent and the preview warns.\nCommon: \"1001\" German, \"1000\" English, \"1002\" French, \"1003\" Spanish,\n\"1004\" Italian, \"1014\" Portuguese. Full list: Google Ads API\nlanguage constants."
    • removedInput schema / properties / language_ids / items
      Removed value: -{
      -  "type": "string"
      -}
    • removedInput schema / properties / language_ids / type
      Removed value: -"array"
    • changedInput schema / required
      Previous value: -[
      -  "campaign_name",
      -  "daily_budget",
      -  "bidding_strategy",
      -  "geo_target_ids",
      -  "language_ids"
      -]New value: +[
      +  "campaign_name",
      +  "daily_budget",
      +  "bidding_strategy",
      +  "geo_target_ids"
      +]
  3. Changed2 schema fields changed
    • addedInput schema / properties / ad_schedule
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Windows the campaign serves in: list of {day_of_week\n(MONDAY..SUNDAY), start_hour 0-23, end_hour 0-24, start_minute,\nend_minute (0, 15, 30 or 45)}, whole numbers, in the account time\nzone. No overlaps, at most six a day. Once the campaign is enabled it\nserves only inside them; the preview warns about that. No double\nconfirmation, since the campaign is created PAUSED."
      +}
    • addedInput schema / properties / geo_exclude_ids
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Geo target constant IDs to exclude (negative location\ncriteria), e.g. a city inside a targeted state. May not overlap\ngeo_target_ids."
      +}
  4. Changed5 schema fields changed
    • addedInput schema / properties / final_url_suffix
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Parameters appended to the landing page URL, e.g.\n\"utm_medium=cpc\". Omitted leaves it unset."
      +}
    • addedInput schema / properties / location_option
      Added value: +{
      +  "default": "",
      +  "description": "Who the geo targets reach. PRESENCE (people in or\nregularly in the locations), PRESENCE_OR_INTEREST (also people\nelsewhere who show interest in them) or SEARCH_INTEREST (people\nsearching for them). Empty leaves Google's default,\nPRESENCE_OR_INTEREST. Anything but PRESENCE adds a warning.",
      +  "type": "string"
      +}
    • addedInput schema / properties / negative_location_option
      Added value: +{
      +  "default": "",
      +  "description": "Who the location exclusions exclude.\nPRESENCE or PRESENCE_OR_INTEREST; empty leaves Google's default,\nPRESENCE_OR_INTEREST. PRESENCE excludes fewer people (only those\nphysically there), so it widens reach and the preview warns.",
      +  "type": "string"
      +}
    • addedInput schema / properties / tracking_url_template
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Campaign tracking template, e.g.\n\"{lpurl}?utm_source=google&utm_campaign={campaignid}\". Must contain\n{lpurl} or a variant ({lpurl+2}, {unescapedlpurl},\n{escapedlpurl+3}, ...). Omitted leaves it unset."
      +}
    • addedInput schema / properties / url_custom_parameters
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "List of {\"key\": \"grp\", \"value\": \"b2c\"}, used as\n{_grp} in the template. Keys alphanumeric, max 8 characters; values\nup to 250."
      +}
  5. Changed1 schema field changed
    • changedInput schema / properties / channel_type / description
      Previous value: -"SEARCH (default) | DISPLAY | SHOPPING | VIDEO |\nPERFORMANCE_MAX (refused, see above)."New value: +"SEARCH (default). DISPLAY, SHOPPING, VIDEO and\nPERFORMANCE_MAX are refused with the reason (see above)."
  6. Changed15 schema fields changed
    • addedInput schema / properties / ad_group_name / description
      Added value: +"Name of the initial ad group. Empty uses campaign_name."
    • addedInput schema / properties / bidding_strategy / description
      Added value: +"MAXIMIZE_CONVERSIONS | TARGET_CPA | TARGET_ROAS |\nMAXIMIZE_CONVERSION_VALUE | TARGET_SPEND | MANUAL_CPC. BROAD\nkeywords require a Smart Bidding strategy (MAXIMIZE_CONVERSIONS,\nMAXIMIZE_CONVERSION_VALUE, TARGET_CPA, TARGET_ROAS)."
    • addedInput schema / properties / campaign_name / description
      Added value: +"Name of the new campaign."
    • addedInput schema / properties / channel_type / description
      Added value: +"SEARCH (default) | DISPLAY | SHOPPING | VIDEO |\nPERFORMANCE_MAX (refused, see above)."
    • addedInput schema / properties / customer_id / description
      Added value: +"Google Ads customer ID (digits, e.g. \"1234567890\"). Empty\nuses the configured default account."
    • addedInput schema / properties / daily_budget / description
      Added value: +"Daily budget in the account's currency (not micros);\nmust be greater than 0 and at most the config's max_daily_budget."
    • addedInput schema / properties / display_expansion_enabled / description
      Added value: +"Alias for display_network_enabled; both must\nmatch when both are given."
    • addedInput schema / properties / display_network_enabled / description
      Added value: +"Enable Search campaign display expansion\n(SEARCH campaigns only). Defaults to off."
    • addedInput schema / properties / geo_target_ids / description
      Added value: +"REQUIRED list of geo target constant IDs.\nCommon: \"2276\" Germany, \"2040\" Austria, \"2756\" Switzerland, \"2840\" USA,\n\"2826\" UK, \"2250\" France. Full list: Google Ads API geo target constants."
    • addedInput schema / properties / keywords / description
      Added value: +"Optional list of {\"text\": \"keyword\", \"match_type\":\n\"EXACT|PHRASE|BROAD\"} added to the initial ad group."
    • addedInput schema / properties / language_ids / description
      Added value: +"REQUIRED list of language constant IDs.\nCommon: \"1001\" German, \"1000\" English, \"1002\" French, \"1003\" Spanish,\n\"1004\" Italian, \"1014\" Portuguese. Full list: Google Ads API\nlanguage constants."
    • addedInput schema / properties / max_cpc / description
      Added value: +"In the account's currency: the manual CPC bid for the initial\nad group when bidding_strategy is MANUAL_CPC, or the Maximize Clicks\nCPC cap when bidding_strategy is TARGET_SPEND. Not allowed with\nother strategies; 0 means none."
    • addedInput schema / properties / search_partners_enabled / description
      Added value: +"Include ads on Search partners (SEARCH\ncampaigns only)."
    • addedInput schema / properties / target_cpa / description
      Added value: +"Target cost per acquisition in the account's currency;\nrequired if bidding_strategy is TARGET_CPA, optional target for\nMAXIMIZE_CONVERSIONS. 0 means none."
    • addedInput schema / properties / target_roas / description
      Added value: +"Target return on ad spend as a ratio (e.g. 4.0 = 400%);\nrequired if bidding_strategy is TARGET_ROAS, optional target for\nMAXIMIZE_CONVERSION_VALUE. 0 means none."
  7. First observed

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare readOnly=false, destructive=false, openWorld=true; the description adds materially: the call is preview-only, the campaign is created PAUSED, everything lands in one atomic request, the response carries plan_id plus warnings (low budget vs. target CPA, MANUAL_CPC), and nothing mutates until confirm_and_apply consumes that plan_id. The refused-argument behavior is also disclosed, which annotations cannot convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The preview-only constraint and the channel-type scope are front-loaded, and the paragraph breaks follow the two execution paths. The Demand Gen sentence listing campaign_name, daily_budget, bidding_strategy, target_cpa, max_cpc and the rest duplicates what the schema already documents and could be trimmed without losing actionable information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 26-parameter, four-required-parameter drafting tool with an output schema and only terse annotations, the definition covers outcome, side effects, per-channel argument validity, follow-up tooling, preview/warning contents, and the confirm gate. Nothing an agent needs to invoke it correctly or to continue the workflow is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so per-parameter docs already carry most meaning; the description's added value is cross-parameter and conditional — the valid Demand Gen argument set versus the Search path where keywords, geo_exclude_ids, ad_schedule, target_roas and network/location/URL options are refused, and the BROAD-keyword/Smart-Bidding coupling. It stops short of restating formats for all 26 parameters, which is acceptable given the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence states a specific verb and resource ('Draft a full campaign structure') and immediately disambiguates the outcome ('returns a PREVIEW, does NOT create anything'). It then enumerates exactly what is bundled into the atomic request and which channel types are accepted versus refused, so an agent can distinguish it from draft_demand_gen_ad, draft_shopping_campaign, and draft_reddit_campaign without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit sequencing guidance is given for both paths: 'Ads are NOT included — draft_responsive_search_ad adds them once the campaign exists' and, for Demand Gen, follow with draft_library_image_assets, draft_demand_gen_ad, then draft_demand_gen_audience before enabling. It also names the exclusions (Performance Max, Display, Shopping, Video refused and why) and warns that Search-path arguments with values are refused rather than dropped, which prevents silent failure.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.