list_x_ads_line_items
List X ads line items read-only
Description
List the line items on an X ad account — X's name for an ad group, and the level that carries the objective, the placements, the bid, the targeting and the creatives. Pass campaignId to scope it to one campaign. `servable` is X's own verdict on whether the line item could run. 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) |
campaignId | string | scope to one campaign's line items; omit for all |
limit | number | maximum number of line items 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/list_x_ads_line_items.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_x_ads_line_items","arguments":{}}}
CLI
hermoso call list_x_ads_line_items --json '{}'
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
create_x_ads_line_itemBuild an X ads line item (paused)create_x_ads_promoted_accountAttach an X account to a follower line item (paused)list_x_ads_promotable_usersList the X accounts an ad account may promote