Getting 403 error when calling gmb api to get the location listing of my account

503 views
Skip to first unread message

Jiaxin Wu

unread,
Oct 17, 2019, 10:33:07 AM10/17/19
to AdWords API and Google Ads API Forum
Hi, 

When I called the gmb api ('https://mybusiness.googleapis.com/v4/accounts' with access token) to get the location listing of our account, I got :
'{ StatusCodeError: 403 - {"error":{"code":403,"message":"Request had insufficient authentication scopes.","status":"PERMISSION_DENIED"}}.'

and in headers, it said: 
 'www-authenticate:
         '
Bearer realm="https://accounts.google.com/", error="insufficient_scope", scope="https://www.googleapis.com/auth/business.manage https://www.googleapis.com/auth/plus.business.manage"''.

I added the scope into my google adword oauth client id, and the access token was also generated in google adword oauth client id. What's the reason of this error? Is it because I added the scope to the wrong client? Maybe I should add it in my google oauth client not the google adword oauth client?

Thanks!!

Google Ads API Forum Advisor Prod

unread,
Oct 17, 2019, 12:25:24 PM10/17/19
to jiaxi...@gmail.com, adwor...@googlegroups.com
Hello Jiaxin,

In this forum we will discuss technical concerns related to the Google Ads API/AdWords API only. Looks like your concern is related to the Google My Business API, please contact them via the support channels mentioned here

Regards,
Sai Teja, Google Ads API Team

ref:_00D1U1174p._5001UKNfTN:ref
Reply all
Reply to author
Forward
0 new messages