Batch Create Targeting Criteria
documentedBatch create targeting criteria.
POST /5/batch/accounts/{account_id}/targeting_criteriaAds APIno implementation yet0 runsNo 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}}"
}
}
]'