x_ads_targeting_search
Find X targeting ids (interests, devices, languages…) read-only
Description
Resolve X targeting ids by name for every vocabulary BEYOND location — INTEREST, CONVERSATION, PLATFORM, DEVICE, LANGUAGE, APP_STORE_CATEGORY, NETWORK_OPERATOR, TV_MARKET, TV_SHOW, EVENT. X's targeting ids are opaque (an interest is a 19-digit number, a device is “96”) and X has NO name-based targeting parameter, so this is the only way to obtain one — without it add_x_ads_targeting accepts vocabularies nobody can supply a value for. Pass a result as criteria:[{targetingType, targetingValue}]. Locations have their own tool: x_ads_geo_search. TV_SHOW requires a `locale`, which comes from kind:"TV_MARKET". Read-only, free.
Parameters
| Parameter | Type | Description |
|---|---|---|
kindrequired | "INTEREST" | "CONVERSATION" | "PLATFORM" | "DEVICE" | "LANGUAGE" | "APP_STORE_CATEGORY" | "NETWORK_OPERATOR" | "TV_MARKET" | "TV_SHOW" | "EVENT" | targeting vocabulary to search, e.g. INTEREST, DEVICE, LANGUAGE or EVENT |
query | string | filter by name |
osType | "ANDROID" | "IOS" | APP_STORE_CATEGORY |
countryCode | string | NETWORK_OPERATOR, e.g. US |
locale | string | TV_SHOW — required; get one from kind:"TV_MARKET" |
eventTypes | "CONFERENCE" | "HOLIDAY" | "MOVIE_RELEASE" | "MUSIC_AND_ENTERTAINMENT" | "OLYMPICS" | "OTHER" | "POLITICS" | "RECURRING" | "SPORTS" | EVENT |
limit | number | maximum number of 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_targeting_search.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"x_ads_targeting_search","arguments":{"kind":"<one of the listed values>"}}}
CLI
hermoso call x_ads_targeting_search --json '{"kind":"<one of the listed values>"}'
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_geo_searchFind X ads location idslist_x_ads_funding_instrumentsList X ad account payment methodsdelete_x_ads_objectDelete an X ads object (permanent, cascades)list_x_ads_targetingList an X line item’s targetinglist_x_ads_promoted_tweetsList X promoted postsupdate_x_ads_line_itemChange an X line item (ad group)update_x_ads_campaignChange an X campaign budget or settings