> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Targeting

> Lists the targeting criteria on X Ads ad groups, including each criterion ID needed to remove it with x_ads_set_targeting

Lists the targeting criteria on X Ads ad groups, including each criterion ID needed to remove it with x\_ads\_set\_targeting.

| | |
| - | - |
| **App** | X Ads |
| **Operation ID** | `x_ads_list_targeting` |
| **Type** | Action |
| **Connection** | `x_ads` (required) |
| **Credits per run** | 1 |
| **Agent / MCP tool** | Yes |

## Inputs

| Field | Type | Required | Default | Description |
| - | - | - | - | - |
| `account` | DynamicAccount | Yes | - | Select the X Ads account that owns the ad groups. |
| `ad_group_ids` | string or array of string | Yes | - | Ad group (line item) IDs whose targeting criteria to list (list or comma-separated string, up to 200). Criterion IDs from this node can be passed to x\_ads\_set\_targeting to remove them. |
| `with_deleted` | boolean | No | `False` | Include deleted targeting criteria. |
| `filters` | array of FilterItem | No | - | Additional filters applied to the returned criteria. The available fields to filter by are: - id: Filter by targeting criterion ID - line\_item\_id: Filter by ad group ID - targeting\_type: Filter by targeting type (BROAD\_KEYWORD, LOCATION, INTEREST, ...) - name: Filter by the criterion's display name Filters are combined using AND logic. If you want to use OR logic, use relevant operators like REGEXP\_MATCH or IN\_LIST. |
| `limit` | integer | No | `1000` | Maximum number of criteria to return. Default: 1000. |

### FilterItem

| Field | Type | Required | Default | Description |
| - | - | - | - | - |
| `field` | string or SelectableOption | Yes | - | The field to filter on, must be one of the current selected metrics or dimensions. |
| `operator` | string | Yes | - | The operator to use for filtering. Must be one of the supported values. Use REGEXP\_MATCH to search/filter by multiple OR values like '.*(summer\|holiday).*' |
| `value` | string | Yes | - | The value to filter by, always as a string: text, a number, or a regex. For IN\_LIST and NOT\_IN\_LIST, pass the values as one comma-separated string such as 'a,b,c', not as an array. For regex values, escape backslashes once in the JSON string: write \b for a word boundary, not \b. |

### SelectableOption

| Field | Type | Required | Default | Description |
| - | - | - | - | - |
| `value` | string | Yes | - | |
| `label` | string | Yes | - | |

## Output

**Type**: `List[Dict]`

Returns the list of targeting criteria with their IDs, types, and values.

**Fields**: dynamic (depend on the inputs)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.