Set Demand Gen Locations
set_demand_gen_locationsSets geographic targeting for a DEMAND GEN campaign. Demand Gen does not accept location criteria at the campaign level (use set_campaign_locations for Search/PMax instead) — Google's API requires Demand Gen location targeting at the AD GROUP level, so this writes AdGroupCriterion.location against ad_group_id (from create_demand_gen_ad_group), not campaign_id. Common geo criterion IDs: US=2840, UK=2826, CA=2124, AU=2036, FI=2246, DE=2276.
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>",
"ad_group_id": "<ad_group_id>"
},
"name": "set_demand_gen_locations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ad_group_id | Yes | The Demand Gen ad group to target (from create_demand_gen_ad_group's ad_group_id, NOT the campaign_id). | |
| customer_id | No | ||
| user_intent | Yes | ||
| target_location_ids | No | Geo criterion IDs to TARGET, e.g. ['2246'] for Finland. | |
| negative_location_ids | No | Optional. Geo criterion IDs to EXCLUDE. | |
| exclude_preset_locations | No | Set 'true' to automatically add negative locations for India(2356), Nepal(2524), Pakistan(2586), Bangladesh(2050), Afghanistan(2004), Sri Lanka(2144). |