search_geo_locations
Find geographic locations for Meta Ads targeting by searching a place name like a city or country, and receive matching location data with type and hierarchy for campaign setup.
Instructions
Search for geographic targeting locations.
Args: query: Search term for locations (e.g., "New York", "California", "Japan") access_token: Meta API access token (optional - will use cached token if not provided) location_types: Types of locations to search. Options: ['country', 'region', 'city', 'zip', 'geo_market', 'electoral_district']. If not specified, searches all types. limit: Maximum number of results to return (default: 25)
Returns: JSON string containing location data with key, name, type, and geographic hierarchy information
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| access_token | No | ||
| location_types | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |