Skip to content

Instantly share code, notes, and snippets.

@dbrent-amazon
Last active June 18, 2018 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbrent-amazon/2099984fdf930d5bc7cca2fddca0bef5 to your computer and use it in GitHub Desktop.
Save dbrent-amazon/2099984fdf930d5bc7cca2fddca0bef5 to your computer and use it in GitHub Desktop.
Amazon Advertising API
Example API call to self-register for sandbox access. Country code can be one of the following:
US, CA, UK, DE, FR, ES, IT, IN, CN, JP
curl -X PUT \
-H "Authorization: Bearer ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"countryCode":"IN"}' \
https://advertising-api-test.amazon.com/v1/profiles/register
@rajlekka
Copy link

rajlekka commented May 9, 2018

How do I get the ACCESS TOKEN

@ajitpawarink
Copy link

ajitpawarink commented Jun 18, 2018

I implemented LWA & getting access token with refresh token, also I get name, email, & user id with curl to https://api.amazon.com/user/profile.
Do I have to use this sdk to get the campaign data?
also using tokens retrieved using LWA into this sdk giving authentication failed!
Any help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment