hermosodocs

x_ads_geo_search

Find X ads location ids read-only

Area: X ADS CUSTOM AUDIENCES + CONVERSION API · Ad campaign management. Generated from the running MCP server, like the rest of the tool reference.

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

ParameterTypeDescription
queryrequiredstringa 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
limitnumbermax 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.

All 759 Ad campaign management tools · tools.json