X Ads 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. Works on your own X Ads account, connected through Get MCP Ads. Needs account id and line item ids.
Inputs
- Account ID
- X Ads account ID selected in SourcesRequired · account_id
- Line item IDs
- Comma-separated line item IDs to scope the targeting criteria to (the legacy API requires this fi..Required · line_item_ids
- Count
- Number of records to return per page (1-1000)Optional · count
- Cursor
- Pagination cursor from a previous responseOptional · cursor
- Lang
- BCP-47 language code; adds a localized_name response attribute for localizable criteriaOptional · lang
- Sort by
- Sort order as attribute-direction, e.g. created_at-asc or updated_at-descOptional · sort_by
- Targeting criterion IDs
- Comma-separated targeting criterion IDs to fetch specific records (max 200)Optional · targeting_criterion_ids
- With deleted
- Include soft-deleted targeting criteria (default false)Optional · with_deleted
- With total count
- Include the total_count response attribute (default false; exclusive with cursor)Optional · with_total_count
- Workspace ID
- Authorized workspace ID from list_accounts/list_workspacesOptional · workspace_id
Pricing
- Price
- $0.005 per call
- Billing
- The provider’s price, with no markup. Billed for measured usage.
Call
Your agent reads the schema and the price with inspect_tool before it runs the tool.
- MCP call
- cURL command
- TypeScript
- Tool ID
Alternatives
Connect your agent to 2,400+ tools for free
Sign in with Google or GitHub. No card required.