curl --location --request POST 'https://www.amazon.com/ap/oa/sp/targets/categories/recommendations' \
--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/json' \
--header 'Content-Type: application/vnd.spproducttargeting.v3+json' \
--data-raw '{
"asins": [
"B00JVTNXIC"
],
"includeAncestor": true
}'
{
"categories": [
{
"id": "7147440011",
"name": "Women's Fashion",
"parent": "7141123011",
"canBeTargeted": true,
"path": "/Clothing, Shoes & Jewelry/Women's Fashion"
},
{
"id": "7141123011",
"name": "Clothing, Shoes & Jewelry",
"parent": "-1",
"canBeTargeted": true,
"path": "/Clothing, Shoes & Jewelry"
},
{
"id": "1044920",
"name": "Women's Athletic Socks",
"parent": "3456051",
"canBeTargeted": true,
"path": "/Clothing, Shoes & Jewelry/Women's Fashion/Women's Clothing/Women's Activewear/Women's Athletic Socks"
},
{
"id": "3456051",
"name": "Women's Activewear",
"parent": "1040660",
"canBeTargeted": true,
"path": "/Clothing, Shoes & Jewelry/Women's Fashion/Women's Clothing/Women's Activewear"
},
{
"id": "1040660",
"name": "Women's Clothing",
"parent": "7147440011",
"canBeTargeted": true,
"path": "/Clothing, Shoes & Jewelry/Women's Fashion/Women's Clothing"
}
]
}