Sign in

Batch Create Targeting Criteria

documented

Batch create targeting criteria.

POST /5/batch/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/batch/accounts/{{$account_id}}/targeting_criteria" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '[
    {
      "operation_type": "Create",
      "params": {
        "line_item_id": "{{$line_item_id}}",
        "targeting_type": "LOCATION",
        "targeting_value": "{{$location_id}}"
      }
    },
    {
      "operation_type": "Delete",
      "params": {
        "targeting_criterion_id": "{{$targeting_criterion_id}}"
      }
    }
  ]'
Batch Create Targeting Criteria · X · OpenIntegrations