My Business
2.3K members online now
2.3K members online now
For developers who are using the Google My Business API to manage locations
Guide Me
star_border
Reply

MyBusiness API and auth playground

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Trying to use the oauth playground with the GMB API...after following the steps provided here, I get this error when attempting to access: https://mybusiness.googleapis.com/v3/accounts

 

HTTP/1.1 403 Forbidden
Content-length: 820
X-xss-protection: 1; mode=block
X-content-type-options: nosniff
Transfer-encoding: chunked
Vary: Origin, X-Origin, Referer
Server: ESF
-content-encoding: gzip
Cache-control: private
Date: Thu, 24 Nov 2016 22:20:21 GMT
X-frame-options: SAMEORIGIN
Alt-svc: quic=":443"; ma=2592000; v="36,35,34"
Content-type: application/json; charset=UTF-8
{
"error": {
"status": "PERMISSION_DENIED",
"message": "Google My Business API has not been used in project google.com:oauth-2-playground before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/mybusiness.googleapis.com/overview?project=google.com... then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
"code": 403,
"details": [
{
"@type": "type.googleapis.com/google.rpc.Help",
"links": [
{
"url": "https://console.developers.google.com/apis/api/mybusiness.googleapis.com/overview?project=google.com...",
"description": "Google developers console API activation"
}
]
}
]
}
}

 

Suggestions?

1 Expert replyverified_user

Re: MyBusiness API and auth playground

Google Employee
# 2
Google Employee

Hi @David L,

 

We noticed from your detailed error message that you are not using your whitelisted project id for your company to call the API.

 

We suggest you use the Google API Console to activate the Google My Business API for your whitelisted project and follow the Make a simple HTTP request step-by-step guide on the Google Developers site to learn how to use the OAuth 2.0 Playground for troubleshooting errors with detailed error messages when sending requests with data via the Google My Business API.

 

Thanks,

The Google My Business API team