search_locations
Search for countries, regions, cities, and zip codes to target in Meta Ads. Filter by location type and query to get matching geographic areas.
Instructions
Search for geographic locations (countries, regions, cities, zip codes) for ad targeting.
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": {
"q": "<q>"
},
"name": "search_locations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Search query (e.g. 'New York', 'California', 'United States') | |
| limit | No | Number of results (default 25) | |
| location_types | No | Comma-separated location types: country, region, city, zip, geo_market, electoral_district |