curl --location --request PUT '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": [
{
"targetId": "{{targetId}}",
"state": "ENABLED"
}
]
}'
{
"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"
}
]
}
}