i’m mike and i recently are working the API integration with Amazon Advertisement API, following the instruaction of the https://advertising.amazon.com/API/docs/v2/guides/authorization#Generate-API-tokens, we already get the authorization code, by this code, we also get the access token and refresh token successfully.
When we want to create the profile in the sandbox or when we try to get the profile, we always get one error.
HTTP/1.1 401 Unauthorized
The following is our code example, according to Amazon’s example
for example, the url in the sandbox would be https://advertising-api-test.amazon.com/v2/profiles/register
Request request = Request.Get(url).
.addHeader(“Authorization”,“Bearer”+“Our Access Token”)
.addHeader(“Amazon-Advertising-API-ClientId”, “Our Client ID”).
We will appreciate a lot for any useful info, it’s quite weried. I don’t know how to fix it.