Skip to main content
Glama
AdLoop: Google Ads, Reddit Ads & GA4

AdLoop: Google Ads, Reddit Ads & GA4

Draft a campaign

draft_campaign

Draft a complete Search campaign structure with budget, ad group, targeting, and optional keywords, then return a preview and plan ID for confirmation before anything is created.

Instructions

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. Only SEARCH 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.

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.
keywordsNoOptional list of {"text": "keyword", "match_type": "EXACT|PHRASE|BROAD"} added to the initial ad group.
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). 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.
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. Changed6 schema fields changedv0.48.0
    • 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"
      +]
  2. Changed2 schema fields changedv0.42.0
    • 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."
      +}
  3. Changed5 schema fields changedv0.37.0
    • 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."
      +}
  4. Changed15 schema fields changedv0.27.1
    • 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 and\nPERFORMANCE_MAX are refused with the reason (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."
  5. Addedv0.13.2
  6. Removedv0.13.0
  7. First observedv0.9.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false, destructiveHint=false and openWorldHint=true; the description adds the critical behavioral fact that this is preview-only, atomic, and mutates nothing until a plan_id is confirmed. It also discloses side effects the agent must anticipate: the campaign is created PAUSED, warnings are emitted for budget below 5x target CPA, MANUAL_CPC, and language targeting. This is exactly the context annotations cannot carry.

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?

Front-loaded with the most decision-relevant fact ("returns a PREVIEW, does NOT create anything"), then the component inventory, then exclusions, then the handoff to confirm_and_apply. Slight redundancy between "does NOT create anything" and "nothing changes until confirm_and_apply applies the returned plan_id", and the trailing Google Ads API docs link is low-value for tool selection.

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 22-parameter, high-consequence creation tool the description covers the atomicity guarantee, the paused-state safety, the preview/warning contract, and the sibling handoff for ads and application. An output schema exists, so the return shape need not be spelled out, and the one return element that matters (plan_id) is named anyway.

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

Parameters3/5

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

Schema description coverage is 100%, so nearly every parameter is already documented in the schema (bid strategy coupling, geo IDs, ad schedule constraints, tracking template syntax). The description adds only higher-level synthesis—which components the parameters assemble into—plus the cross-field budget-vs-CPA warning, which is useful but thin against a fully documented 22-parameter 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?

States a specific verb and resource ("Draft a full campaign structure") and immediately enumerates what it composes: CampaignBudget, Campaign in PAUSED, AdGroup, optional keywords, geo/language targeting, geo exclusions and ad schedule. It also explicitly scopes out ads ("Ads are NOT included") and non-SEARCH channels, so an agent can distinguish it from draft_responsive_search_ad and draft_shopping_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 routing: use draft_responsive_search_ad to add ads once the campaign exists, and confirm_and_apply to actually apply the returned plan_id. It also names when the tool refuses work (Performance Max, DISPLAY, SHOPPING, VIDEO) and gives the reason for each, which tells the agent when to look elsewhere.

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

Deploy Server

Other Tools