Skip to main content
Glama

Google Ads & Meta Ads

Google Ads: Update Campaign Targeting

gads_update_campaign_targeting
DestructiveIdempotent

Change where and in which languages a Google Ads campaign may show: add targeted locations, add excluded locations, add languages, remove existing location or language criteria, and set whether location targeting applies to people present in an area or also to people interested in it. Location entries may be geo target constant ids or place names — use gads_find_locations when you only have a name; language entries may be language constant ids, ISO codes (en, uk) or names (English). Read the current targeting with gads_list_campaigns and include_targeting. This tool only adds what you name and removes what you name, with one exception: excluding a location the campaign currently targets replaces that criterion, and targeting one it currently excludes does the same, because Google cannot flip a criterion in place. It never replaces the whole list. add_radius targets a circle (1-500 miles or 1-800 km) around a city, postcode, street address or latitude/longitude point, for 'within 25 miles of Austin' targeting; Google places the centre itself from the address. Demand Gen campaigns set locations and languages per ad group, so this tool refuses to add them there. A campaign with no targeted locations reaches every location on earth, and one with no languages shows to every language.

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_id": "<campaign_id>"
    },
    "name": "gads_update_campaign_targeting"
  }
}

Input Schema

NameRequiredDescriptionDefault
languagesNoLanguages the campaign should show in — language constant ids, ISO codes (en, uk) or names (English). At most 20. Languages already selected are skipped. Language targeting matches the language a person browses Google in, not the language of the keyword.
add_radiusNoRadius targets to add: a circle around a centre. Give the centre as an address (country_code plus city, postal_code or address) or as latitude and longitude, not both. At most 20. A radius already set with the same centre and size is skipped. To resize one, remove it by criterion id and add the new size in the same call.
campaign_idYesCampaign whose location targeting to change.
customer_idNoGoogle Ads account to change: customer id or exact account name. Required when you have several accounts — the stored default is never used for a change then.
geo_target_typeNoPRESENCE reaches only people in the targeted locations. PRESENCE_OR_INTEREST, Google's default, also reaches people elsewhere who show interest in them. Omit to leave the setting alone.
target_locationsNoLocations to start targeting — geo target constant ids or place names. At most 20. Locations already targeted are skipped.
excluded_locationsNoLocations to exclude — geo target constant ids or place names. At most 20. An exclusion beats a target, so use it to carve a region out of a wider one.
remove_criterion_idsNoCriterion ids of location, radius or language criteria to delete, as reported by gads_list_campaigns with include_targeting. Ids that are already gone are skipped.

Output Schema

NameRequiredDescriptionDefault
addedYesHow many criteria were created.
radiiNoRadius targets the campaign now has.
removedYesHow many criteria were deleted.
skippedNoWhat the call did not have to do: locations already set, criterion ids already gone.
excludedYesLocations the campaign excludes.
targetedYesLocations now targeted by the campaign.
languagesYesLanguages the campaign now shows in. Empty means every language.
campaignIdYesCampaign that was updated.
geoTargetTypeNoGeo target type now in effect.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true; the description goes further by explaining the destructive surface precisely — the criterion-flip exception where excluding a targeted location or targeting an excluded one replaces that criterion because Google cannot flip in place — plus no-op skipping, the Demand Gen refusal, and the empty-list semantics (no targeted locations = worldwide, no languages = all languages). It does not cover rate limits, quota, or how partial failures across a batched call are reported, which keeps it short of a 5.

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?

Purpose and the primary actions are front-loaded in the first sentence, with prerequisites (id resolution, reading current state) next and edge-case semantics last. It is one long block of prose, and the Demand Gen refusal and empty-list caveats could be set apart for faster scanning, but every sentence carries non-redundant 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 an eight-parameter, destructive mutation tool with an output schema and a full annotation set, the definition covers the remaining unknowns: merge-vs-replace semantics, the flip exception, unsupported campaign types, per-list limits, and what an empty targeting list implies. Nothing an agent needs in order to call this safely 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 the baseline is 3, but the description adds real meaning: it clarifies that location entries accept either geo target constant ids or place names, that languages accept constant ids, ISO codes or names, that add_radius builds a circle around a Google-geocoded centre, and that a resize must be expressed as a remove by criterion id plus an add in the same call. It stops short of explaining how criterion ids are obtained beyond pointing at include_targeting.

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 opening sentence gives a specific verb (change) plus the exact resource and scope (where and in which languages a campaign may show) and enumerates the concrete mutations: add targets, add exclusions, add languages, remove criteria, set presence type. It is clearly distinguishable from siblings like gads_update_campaign_bidding or gads_update_campaign_negatives by naming location/language targeting explicitly.

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?

It routes the agent to gads_find_locations when only a place name is available, to gads_list_campaigns with include_targeting to read current state, and states an explicit refusal case (Demand Gen sets location/language per ad group). It also spells out the boundary condition of the tool: it only adds and removes what is named, never replacing the list, with one stated exception.

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.

Resources