list_x_ads_targeting
List an X line item’s targeting read-only
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) |
lineItemIdrequired | 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.
Related tools
delete_x_ads_objectDelete an X ads object (permanent, cascades)list_x_ads_promoted_tweetsList X promoted postslist_x_ads_funding_instrumentsList X ad account payment methodsupdate_x_ads_line_itemChange an X line item (ad group)x_ads_targeting_searchFind X targeting ids (interests, devices, languages…)update_x_ads_campaignChange an X campaign budget or settings