gam_geo_lookup
Resolve location names to Google Ad Manager geo criteria IDs for geo-targeted forecasts and line items, with instant Nordic results and live API fallback for other countries.
Instructions
MODE: read-only. UI: geo targeting picker. Look up Google Ad Manager geo criteria IDs for geo targeting (forecasts, line items): countries, regions, municipalities, cities, districts, postal codes. Denmark, Sweden and Norway answer instantly from a local pack; ANY other country falls back to the live API automatically (pass a country_code outside DK/SE/NO, or live=true, to force it). IMPORTANT: names are ENGLISH ('Copenhagen', not 'København'). OUTPUT: per search term, matches with {id, name, type, countryCode, targetable} and the source that answered it — pass ids into forecast geo targeting. WHEN TO USE: before any geo-targeted forecast; to resolve a location name to its GAM criteria id.
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": {
"search": "<search>"
},
"name": "gam_geo_lookup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| live | No | Force the live API lookup even when the offline Nordic pack has matches. | |
| type | No | Restrict to one location type. Matching ignores case and spacing, so both vocabularies work: the offline pack uses 'City'/'Postal Code', the live API uses 'CITY'/'STATE'/'AIRPORT'. | |
| limit | No | Max results per search term (default 10). | |
| search | Yes | One or more location names to search (English, case-insensitive, substring match). | |
| country_code | No | Restrict to one country (CLDR region code, e.g. DK, SE, NO, DE). Outside DK/SE/NO this forces a live lookup. | |
| network_code | No |