Skip to content
Get MCP AdsGet MCP Ads, home
View as Markdown

x_ads_list_targeting_criteria

List targeting criteria for an ads account's line items Native X fields and pagination are preserved; monetary fields ending in _micro are millionths…

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.

Source
X Ads
Kind
Read
Discovery
Reachable through search_tools and run_tool
Account parameter
account_id
Endpoint
https://mcp.getmcpads.com/x-ads/mcp

ParametersLink to this section

NameTypeRequiredNotes
account_idstringRequiredX Ads account ID selected in Sources.
countintegerOptionalNumber of records to return per page (1-1000).
cursorstringOptionalPagination cursor from a previous response.
langstringOptionalBCP-47 language code; adds a localized_name response attribute for localizable criteria.
line_item_idsstringRequiredComma-separated line item IDs to scope the targeting criteria to (the legacy API requires this fi...
sort_bystringOptionalSort order as attribute-direction, e.g. created_at-asc or updated_at-desc.
targeting_criterion_idsstringOptionalComma-separated targeting criterion IDs to fetch specific records (max 200).
with_deletedbooleanOptionalInclude soft-deleted targeting criteria (default false).
with_total_countbooleanOptionalInclude the total_count response attribute (default false; exclusive with cursor).

Calling itLink to this section

jsonThrough run_tool, since it is not announced
{
  "name": "run_tool",
  "arguments": {
    "name": "x_ads_list_targeting_criteria",
    "args": {
      "account_id": "<string>",
      "line_item_ids": "<string>"
    }
  }
}
Esc

Type to search