curl --location --request POST 'https://www.amazon.com/ap/oa/sp/targets/delete' \
--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.spTargetingClause.v3+json' \
--header 'Content-Type: application/vnd.spTargetingClause.v3+json' \
--data-raw '{
"targetIdFilter": {
"include": [
"{{targetId}}"
]
}
}'
{
"targetingClauses": {
"error": [],
"success": [
{
"index": 0,
"targetId": "106987722228654"
}
]
}
}