Description
Hello,
I am currently implementing Amazon Ads for DSP, and I have an issue with the creation of targets.
I need to retrieve the default assigned targetings, but it seems that if I call the URL to get default targetings (/dsp/v1/targets/list) too early, Amazon does not provide all the default targetings.
To create an ad group on Amazon, I follow these steps:
Create the ad group (/dsp/v1/adGroups).
Immediately after, get the default targetings (/dsp/v1/targets/list).
Assign targetings to the ad group, excluding the default ones.
Remove unused default targetings.
Here is the relevant documentation: Amazon DSP Universal Targeting API.
It seems that even if the Amazon API returns a 200 response, the ad group creation process might not be fully complete, and the default targetings are not yet properly assigned.
As a temporary workaround, I am using sleep(10000) to wait 10 seconds before retrieving the targetings, but this is not a reliable solution.
Do you have any suggestions?
Here’s a screenshot of my default targeting request.
Thanks for reading !