curl --location --request POST 'https://www.amazon.com/ap/oa/sp/negativeTargets' \
--header 'Amazon-Advertising-API-ClientId: {{client_id}}' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Amazon-Advertising-API-Scope: {{profileId}}' \
--header 'Prefer: return=representation' \
--header 'Accept: application/vnd.spNegativeTargetingClause.v3+json' \
--header 'Content-Type: application/vnd.spNegativeTargetingClause.v3+json' \
--data-raw '{
"negativeTargetingClauses": [
{
"expression": [
{
"type": "ASIN_BRAND_SAME_AS",
"value": "18681839011"
}
],
"campaignId": "{{campaignId}}",
"state": "ENABLED",
"adGroupId": "{{adGroupId}}"
}
]
}'
{
"negativeTargetingClauses": {
"error": [],
"success": [
{
"index": 0,
"negativeTargetingClause": {
"adGroupId": "169462822148652",
"campaignId": "26256301417055",
"expression": [
{
"type": "ASIN_SAME_AS",
"value": "B07YT8NVF9"
}
],
"resolvedExpression": [
{
"type": "ASIN_SAME_AS",
"value": "B07YT8NVF9"
}
],
"state": "ENABLED",
"targetId": "146760731000473"
},
"targetId": "146760731000473"
}
]
}
}