# Hermoso: x_ads_targeting_search · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/ads/x_ads_targeting_search/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Ad campaign management](https://hermoso.ai/docs/reference/ads/) / x_ads_targeting_search

# `x_ads_targeting_search`

Find X targeting ids (interests, devices, languages…) read-only

Area: X: managing what you built · [Ad campaign management](https://hermoso.ai/docs/reference/ads/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/reference/).

## 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

`kind` required `"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](https://hermoso.ai/docs/credits/).

## Related tools

- [add_x_ads_targeting](https://hermoso.ai/docs/reference/ads/add_x_ads_targeting/) Target an X ads line item
- [x_ads_geo_search](https://hermoso.ai/docs/reference/ads/x_ads_geo_search/) Find X ads location ids
- [list_x_ads_funding_instruments](https://hermoso.ai/docs/reference/ads/list_x_ads_funding_instruments/) List X ad account payment methods
- [delete_x_ads_object](https://hermoso.ai/docs/reference/ads/delete_x_ads_object/) Delete an X ads object (permanent, cascades)
- [list_x_ads_targeting](https://hermoso.ai/docs/reference/ads/list_x_ads_targeting/) List an X line item’s targeting
- [list_x_ads_promoted_tweets](https://hermoso.ai/docs/reference/ads/list_x_ads_promoted_tweets/) List X promoted posts
- [update_x_ads_line_item](https://hermoso.ai/docs/reference/ads/update_x_ads_line_item/) Change an X line item (ad group)
- [update_x_ads_campaign](https://hermoso.ai/docs/reference/ads/update_x_ads_campaign/) Change an X campaign budget or settings

[All 759 Ad campaign management tools](https://hermoso.ai/docs/reference/ads/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
