chatgpt_ads_locations_search
Searches the ChatGPT Ads location catalog by name to find location IDs for campaign targeting. Use returned IDs in include or excluded locations, or ISO country codes for whole countries.
Instructions
Searches the ChatGPT Ads location catalog by name. Returns the platform object unchanged: query, count and results with id, name, canonical_name, type, country_code and parent fields. Read-only. Pass a result's id in targeting.locations.include (or excluded_locations) of chatgpt_ads_campaigns_create; whole countries use ISO codes in targeting.locations.countries instead.
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": {
"query": "<query>"
},
"name": "chatgpt_ads_locations_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum results. Default 20. Maximum 100. | |
| query | Yes | Location name or part of it (e.g. 'California'), up to 200 characters, not all spaces. |