# Hermoso: list_x_ads_targeting · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/ads/list_x_ads_targeting/. 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/) / list_x_ads_targeting

# `list_x_ads_targeting`

List an X line item’s targeting 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

List every targeting criterion an X line item carries, WITH THE ID of each — the id needed to remove one with delete_x_ads_object. READ THE EMPTY CASE CORRECTLY: no targeting criteria on X means the line item is UNRESTRICTED and will reach the broadest possible audience once ACTIVE — it does NOT mean it cannot serve. Read-only, free.

## Parameters

Parameter Type Description

`adAccountId` `string` X ad account id (list_x_ads_accounts); omit if only one is shared

`accountId` `string` older name for adAccountId (MCP only)

`lineItemId` required `string` X line item id from list_x_ads_line_items

## 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/list_x_ads_targeting`.

**MCP** (`tools/call`)

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_x_ads_targeting","arguments":{"lineItemId":"<string>"}}}`
**CLI**

`hermoso call list_x_ads_targeting --json '{"lineItemId":"<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](https://hermoso.ai/docs/credits/).

## Related tools

- [delete_x_ads_object](https://hermoso.ai/docs/reference/ads/delete_x_ads_object/) Delete an X ads object (permanent, cascades)
- [list_x_ads_promoted_tweets](https://hermoso.ai/docs/reference/ads/list_x_ads_promoted_tweets/) List X promoted posts
- [list_x_ads_funding_instruments](https://hermoso.ai/docs/reference/ads/list_x_ads_funding_instruments/) List X ad account payment methods
- [update_x_ads_line_item](https://hermoso.ai/docs/reference/ads/update_x_ads_line_item/) Change an X line item (ad group)
- [x_ads_targeting_search](https://hermoso.ai/docs/reference/ads/x_ads_targeting_search/) Find X targeting ids (interests, devices, languages…)
- [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)
