Which URL should I send my request to? Which ID and key are needed? #151
Replies: 4 comments 7 replies
|
Hi @Lollichkeit , first you'll need to make sure that you've assigned API access to your Login With Amazon application as described here. (You may have already done this.) Once this is complete, you can use the client ID and client secret of your Login With Amazon application to generate an authorization grant from an Amazon Ads account, then use that grant to retrieve an access token. Your request for an access token will be sent to the Login With Amazon server for your region as described here. Using your client ID and an access token, you can make calls to the Amazon Ads API -- these requests will be directed to the regional host for the Amazon Ads account whose data you want to retrieve. These first steps are described in the Get started section of the API documentation. You may also find it useful to try the Postman quickstart guide to test your first calls. You'll use this same pattern of credentials to call the API programmatically using PHP or any other interface or language. Please feel free to reply in this thread if you run into other specific issues! |
|
I think I understood it. Thank you very much, I just don't know what I have to enter in the "Allowed Return URLs". |
|
Hi @Lollichkeit , an allowed return URL can be any As an example, the user in the videos shown in the Postman quickstart guide simply uses For robust applications that are designed to interact with multiple Amazon Ads customers, the return URL might instead lead to an application page that programmatically handles the grant code. But for simpler use cases, it is likely easiest to manually retrieve the code as described above. |
|
First of all, thank you for your help. My code: I would first like to receive the token with Guzzle. I need that to get further information, right? |

Uh oh!
There was an error while loading. Please reload this page.
Hello,
I need help.
I'm already logged in to Amazon Ads and Amazon Developer.
My Amazon Ads API has been applied for and approved.
I created a security profile at Amazon Developer.
But now I can't go any further.
I don't know what data I need to send a request with PHP and then get data back.
If anyone could help me with this I would be very grateful.
All reactions