Sign in

Create Targeting Criteria

documented

Create targeting criteria for ad campaigns.

POST /5/accounts/{account_id}/targeting_criteriaAds APIno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://ads-api.x.com/12/accounts/{{$account_id}}/targeting_criteria" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"account_id": "{{$account_id}}", "line_item_id": "{{$line_item_id}}", "targeting_type": "{{$targeting_type}}", "targeting_value": "{{$targeting_value}}", "operator_type": "{{$operator_type}}"}'
Create Targeting Criteria · X · OpenIntegrations