search_locations
Search Meta locations for city/state/PIN-code targeting (e.g. 'Ahmedabad', 'Gujarat', '380015'). Returns each place's key, name, type (city/region/zip) and country, to use in geoLocations on create_campaign, create_structured or bulk_create_campaigns. Read-only.
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": "search_locations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | City, state or PIN/ZIP code. | |
| country_code | No | Optional 2-letter country filter, e.g. IN. | |
| location_types | No | Defaults to all three. | |
| meta_account_id | No |