# Hermoso: list_x_ads_line_items · Hermoso developer docs

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

# `list_x_ads_line_items`

List X ads line items read-only

Area: X: the rest of the tree · [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 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](https://hermoso.ai/docs/credits/).

## Related tools

- [create_x_ads_line_item](https://hermoso.ai/docs/reference/ads/create_x_ads_line_item/) Build an X ads line item (paused)
- [create_x_ads_promoted_account](https://hermoso.ai/docs/reference/ads/create_x_ads_promoted_account/) Attach an X account to a follower line item (paused)
- [list_x_ads_promotable_users](https://hermoso.ai/docs/reference/ads/list_x_ads_promotable_users/) List the X accounts an ad account may promote

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