x_ads_geo_search
Find X ads location ids read-only
Description
Look up X targeting location ids by name — countries, regions, metros, cities and postal codes. X location ids are opaque hashes (Canada is 3376992a082d67c7), so this is the ONLY way to obtain one and there is no name-based targeting parameter to fall back on. Pass the ids to add_x_ads_targeting as locationIds. Read-only, free.
Parameters
| Parameter | Type | Description |
|---|---|---|
queryrequired | string | a place name, e.g. "Canada" or "Austin" |
locationType | "COUNTRIES" | "REGIONS" | "METROS" | "CITIES" | "POSTAL_CODES" | COUNTRIES, REGIONS, METROS, CITIES or POSTAL_CODES; omit to search all types |
limit | number | max results to return |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/x_ads_geo_search.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"x_ads_geo_search","arguments":{"query":"<string>"}}}
CLI
hermoso call x_ads_geo_search --json '{"query":"<string>"}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
add_x_ads_targetingTarget an X ads line itemx_ads_reportX ads performance reportcreate_x_ads_promoted_tweetAttach a post to an X line item (paused)list_openai_ads_conversion_eventsList ChatGPT Ads conversion eventssend_x_ads_conversionsSend conversions to X (Conversion API)create_openai_ads_pixelCreate a ChatGPT Ads pixelmanage_x_ads_conversion_eventsX Pixel conversion events (list / create / update)create_openai_ads_conversion_eventDefine a ChatGPT Ads conversionupdate_x_ads_audienceChange an X custom audiencelist_openai_ads_audiencesList ChatGPT Ads custom audiences