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

Can not retrieve account details of my client.

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

Hello,

 

  • We have whitelisted our project for Google My Business API and created our project in account abc and access request form was submitted using account xyz.
  • Our client has a verified location location1 for which we have to collect all it's reviews.
  • The client has already assigned both abc and xyz as it's manager.
  • Now using abc account we are able to see it's location1 in manage location (https://business.google.com/locations).

 

We need to collect all the reviews for each locations of our client.

 

In the process, we are facing some issue.

 

1) Can we manage a location just by assigning account xyz as the manager in client's business account or will we need to assign both abc and xyz as the manager?

 

2) When we make a request to https://mybusiness.googleapis.com/v3/accounts it doesn't seem to be giving us the account detail of our client. Account id doesn't match with what client has provided us with.

[We have collected our client account id as mentioned in https://groups.google.com/forum/#!topic/my-business-api/cBLSnpeFUTY]

{
"accounts": [{
"name": "accounts/*********************",
"type": "PERSONAL",
"state": {
"status": "UNVERIFIED"
}
}]

 

 2) When we make a request to https://mybusiness.googleapis.com/v3/accounts/aacount_id/locations using account name provided by the client, to get all the locations, we are getting this error in response.

{
	"error": {
		"code": 404,
		"message": "Requested entity was not found.",
		"status": "NOT_FOUND"
	}
}

 

Can't find the reason for above two issues. 

 

Regards

Abhishek

1 Expert replyverified_user

Re: Can not retrieve account details of my client.

Google Employee
# 2
Google Employee

Hi @Abhishek D,

 

1. If your client has a Google My Business account, they can add your account as a manager to their business account and you should be able to access your client’s location using the Google My Business API.

 

2. Once your account is added as manager to access your client’s business account, you should be able to see client’s business account when retrieving accounts’ list using the API (https://mybusiness.googleapis.com/v3/accounts).

 

Judging from the error you mentioned in your post, looks like you don’t have access level permission to the account you are trying to access. Please make sure your account is added properly by you client.

 

Please let us know if you have any questions!

 

Thanks,

The Google My Business API team

Re: Can not retrieve account details of my client.

[ Edited ]
Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Hi @Shalini S,

 

Thanks for fast reply.

 

Looking at the following screens, it seems we do have a manager role for the location or business account client has.

 

business  account view from our  id.business account view from our id.user role modaluser role modal

can you guide me, what else could be the case?

 

Regards

Abhishek

Re: Can not retrieve account details of my client.

Google Employee
# 4
Google Employee

Hi @Abhishek D,

 

Please make sure that your account is assigned a owner or editor role as well in the developer console for whitelisted project by your client.

 

To access your client’s locations, your account required some permissions to access locations on behalf of your client. They need to assign your account a owner or editor role in the developer console for whitelisted project. Once your account have a permission for their GMB account, you will be able to access your client’s locations using the Google My Business API.

 

You can read more about managing project members in this Developers Console Help article.

 

I hope this helps!

 

Thanks,

The Google My Business API team

Can not retrieve account details of my client.

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭

Does our client needs to create a project and whitelist it? 

And later on, add us as the project manager or owner in developer console?

Which also includes the step of sharing service account key(.p12 file) for creating an access token.

 

Can't we access client's reviews using our own project?

Re: Can not retrieve account details of my client.

Google Employee
# 6
Google Employee

Hi @Abhishek D,

 

No, your client don't need to create a separate project. Since you are building a service account application, a one-time user consent is required for a service account to be able to access the Google My Business account and location data on behalf of a particular end user. The end users will have to log in with their Google Accounts to manually authorize the application during the OAuth 2.0 installed applications flow.

 

I hope this helps!

 

Thanks,

The Google My Business API team