Alexey Shevelyov
Alexey Shevelyov

Reputation: 986

Why Google APIs Explorer ( Google Partners API) returns 403 PERMISSION_DENIED?

I search for a similar question but found some outdated and unanswered ones.

So basically I am just trying to play around with Google Partners API and pull some data for now using Google's API Explorer, so:

In the API Explorer docs https://developers.google.com/explorer-help/ it says I do not need to provide an API key since they use their own.

My understanding is that I should be able to pull the data - but for some reason no matter what I try, I still get this 403.

Note: like I mentioned I am at least trying to make it work within their API explorer.

What am I missing there?

 {
 "error": {
  "code": 403,
  "message": "The caller does not have permission",
  "status": "PERMISSION_DENIED"
 }
}

Update:

So it appears that you do have to have a permission to call their API. I do have an API key - but it still says I need a permission. I am the primary user of the account so I have no limitations that I could think of on the account.

I will keep digging and see what I find out.

Analyzing their Google Partner Interface web requests, you can see the &key=AIzaSyCi4oosxbZoHR65JXdMVy7eVR......

So logically, this caller, which is identified by this API can make calls. So I went to Google API Explorer and plugged their API key and made a request - and surely got the 200 response back. I put my API key back in there to test with the same set up - PERMISSION_DENIED.

Will continue researching though there is not much left to read. Hope my Google bros will help me out here and let me know how to get the permission.

Upvotes: 4

Views: 1488

Answers (1)

Kuba Andrýsek
Kuba Andrýsek

Reputation: 63

My solution was to turn on "Additional Google Services" in Google Admin console (Apps > Additional Google Services).

Google Admin help: Manage access to services that aren't controlled individually

Upvotes: 0

Related Questions