GET
method on amc/accounts to fetch the AMC Account ID/Entity ID.{
"audienceName": "NewName",
"audienceDescription": "NEWNEW",
"timeWindowStart": "2024-06-01T14:15:22Z",
"timeWindowEnd": "2024-07-01T14:15:22Z",
"query": "SELECT user_id FROM sponsored_ads_traffic_for_audiences WHERE customer_search_term SIMILAR TO '(?i)chai'",
"refreshRateDays": 7,
"timeWindowRelative": "true",
"advertiserId": "5934073340501",
"lookalikeAudienceExpectedReach": "SIMILAR"
}
curl --location --request POST 'https://www.amazon.com/ap/oa/amc/audiences/lookalike' \
--header 'Amazon-Advertising-API-ClientId: {{client_id}}' \
--header 'Amazon-Advertising-API-EntityId: {{advertiser_id}}' \
--header 'Amazon-Marketing-Cloud-Audience-InstanceId: {{instanceId}}' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"audienceName": "NewName",
"audienceDescription": "NEWNEW",
"timeWindowStart": "2024-06-01T14:15:22Z",
"timeWindowEnd": "2024-07-01T14:15:22Z",
"query": "SELECT user_id FROM sponsored_ads_traffic_for_audiences WHERE customer_search_term SIMILAR TO '\''(?i)chai'\''",
"refreshRateDays": 7,
"timeWindowRelative": "true",
"advertiserId": "5934073340501",
"lookalikeAudienceExpectedReach": "SIMILAR"
}'
{
"audienceExecutionDescription": "Successfully started audience creation workflow.",
"audienceExecutionId": "f04fe81e-b641-4201-a300-c37ee0fb44b8",
"status": "PENDING"
}