Google Ads: Update Campaign Targeting
gads_update_campaign_targetingChange 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
| Name | Required | Description | Default |
|---|---|---|---|
| languages | No | Languages 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_radius | No | Radius 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_id | Yes | Campaign whose location targeting to change. | |
| customer_id | No | Google 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_type | No | PRESENCE 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_locations | No | Locations to start targeting — geo target constant ids or place names. At most 20. Locations already targeted are skipped. | |
| excluded_locations | No | Locations 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_ids | No | Criterion 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
| Name | Required | Description | Default |
|---|---|---|---|
| added | Yes | How many criteria were created. | |
| radii | No | Radius targets the campaign now has. | |
| removed | Yes | How many criteria were deleted. | |
| skipped | No | What the call did not have to do: locations already set, criterion ids already gone. | |
| excluded | Yes | Locations the campaign excludes. | |
| targeted | Yes | Locations now targeted by the campaign. | |
| languages | Yes | Languages the campaign now shows in. Empty means every language. | |
| campaignId | Yes | Campaign that was updated. | |
| geoTargetType | No | Geo target type now in effect. |