x ads list line items
x_ads_list_line_itemsList ad groups (line items) for an X Ads account. Filter by name, campaign, or funding instrument, sort, paginate, and include drafts or deleted items.
Instructions
List line items (ad groups) for an ads account Native X fields and pagination are preserved; monetary fields ending in _micro are millionths of the account currency.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Search by line item name (1-255 characters). | |
| count | No | Number of records to return per page (1-1000). | |
| cursor | No | Pagination cursor from a previous response. | |
| sort_by | No | Sort order as attribute-direction, e.g. created_at-asc or updated_at-desc. | |
| account_id | Yes | X Ads account ID from X_ADS_ACCOUNT_IDS. | |
| with_draft | No | Include line items of draft campaigns in the response (default false). | |
| campaign_ids | No | Comma-separated campaign IDs to scope the line items to. | |
| with_deleted | No | Include soft-deleted line items in the response (default false). | |
| line_item_ids | No | Comma-separated line item IDs to fetch specific records (max 200). | |
| with_total_count | No | Include the total_count response attribute (default false; exclusive with cursor). | |
| funding_instrument_ids | No | Comma-separated funding instrument IDs to scope the results to (max 200). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Original tool result: parsed JSON when the text is JSON, otherwise the text or multiple MCP content blocks. Provider fields depend on the selected query. |