Set Campaign Locations
set_campaign_locationsSet target and/or negative locations on a campaign using geo criterion IDs. Works on both Search and PMax campaigns. Common IDs: US=2840, UK=2826, CA=2124, AU=2036, FI=2246, DE=2276. Use exclude_preset_locations=true to automatically add negative locations for India(2356), Nepal(2524), Pakistan(2586), Bangladesh(2050), Afghanistan(2004), Sri Lanka(2144).
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": {
"user_intent": "<user_intent>",
"campaign_id": "<campaign_id>"
},
"name": "set_campaign_locations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| campaign_id | Yes | Campaign ID to set locations on. | |
| customer_id | No | ||
| user_intent | Yes | ||
| target_location_ids | No | Optional. Geo criterion IDs to TARGET e.g. ['2840'] for USA. | |
| negative_location_ids | No | Optional. Geo criterion IDs to EXCLUDE. | |
| exclude_preset_locations | No | Set 'true' to automatically add negative locations for India, Nepal, Pakistan, Bangladesh, Afghanistan, Sri Lanka. |