curl --location --request POST 'https://www.amazon.com/ap/oa/sp/targets' \
--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 '{
"targetingClauses": [
{
"expression": [
{
"type":"ASIN_CATEGORY_SAME_AS",
"value":"2522102011"
},
{
"type": "ASIN_BRAND_SAME_AS",
"value": "7048034011"
}
],
"campaignId": "{{campaignId}}",
"expressionType": "MANUAL",
"state": "ENABLED",
"bid": 1.50,
"adGroupId": "{{adGroupId}}"
}
]
}'
{
"targetingClauses": {
"error": [],
"success": [
{
"index": 0,
"targetId": "269280454302686",
"targetingClause": {
"adGroupId": "169462822148652",
"bid": 1.5,
"campaignId": "26256301417055",
"expression": [
{
"type": "ASIN_SAME_AS",
"value": "B07FKDZPZW"
}
],
"expressionType": "MANUAL",
"resolvedExpression": [
{
"type": "ASIN_SAME_AS",
"value": "B07FKDZPZW"
}
],
"state": "ENABLED",
"targetId": "269280454302686"
}
}
]
}
}