x ads list targeting criteria
x_ads_list_targeting_criteriaList targeting criteria for line items in an X Ads account, with options to filter by specific criteria, include soft-deleted records, and paginate results.
Instructions
List targeting criteria for an ads account's line items Native X fields and pagination are preserved; monetary fields ending in _micro are millionths of the account currency.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | BCP-47 language code; adds a localized_name response attribute for localizable criteria. | |
| 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_deleted | No | Include soft-deleted targeting criteria (default false). | |
| line_item_ids | Yes | Comma-separated line item IDs to scope the targeting criteria to (the legacy API requires this fi... | |
| with_total_count | No | Include the total_count response attribute (default false; exclusive with cursor). | |
| targeting_criterion_ids | No | Comma-separated targeting criterion IDs to fetch specific records (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. |