question

Marshall Associates avatar image
Marshall Associates asked

Generating API Tokens for Amazon Advertising API

Hello there,

My company has been trying to gain access to the Amazon Advertising API for some time now, but are having difficulties with the setup process. This is the documentation we are referencing:

https://advertising.amazon.com/API/docs/en-us/setting-up/account-setup

We've made it through the steps outlined in the page above, and have received this whitelisted notification from Amazon:

After agreeing to the licensing agreement linked to in the email above, we were redirected to a page showing the following:


Following the subsequent instructions in the docs here: https://advertising.amazon.com/API/docs/en-us/setting-up/generate-api-tokens and using the client_id and scope above, we tried to construct a URL to request tokens. When using the client_id from the whitelisted email, the request returns "400 Unknown Client ID". We've tried both the SSPA scope and the other scopes in the docs (cpc_advertising:campaign_management and advertising::campaign_management) with that client_id.

We've also created a Login with Amazon security profile as instructed and have tried the generated client_id associated with the LWA account to no avail. We've tried both scopes presented in the URL templates from the docs (below) and the SSPA scope from the whitelist notification.

https://www.amazon.com/ap/oa?client_id=YOUR_LWA_CLIENT_ID&scope=cpc_advertising:campaign_management&response_type=code&redirect_uri=YOUR_RETURN_URL

https://www.amazon.com/ap/oa?client_id=YOUR_LWA_CLIENT_I&scope=advertising::campaign_management&response_type=code&redirect_uri=YOUR_RETURN_URL

We've followed the docs to the letter, but have been unsuccessful. When trying to start from scratch and reapplying for API access, Amazon tells us that our account has been whitelisted and tickets on the topic have been marked as resolved.

Has anyone had this issue? Do we need to change scope? Are the docs dated? Should an LWA profile be automatically generated when whitelisted that has a client_id matching the one found in the whitelisted email from Amazon?

Any help would be greatly appreciated.


Thanks in advance,

Dave

apilogin with amazonadvertisingwhitelistscope.token
10 |3000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Mike@Amazon avatar image
Mike@Amazon answered

Hi Dave,

Unfortunately, we aren't able to assist with this in the Amazon Developer forums.

Please contact Amazon Advertising support: https://advertising.amazon.com/contactus

Thanks,

Mike

10 |3000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.