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

Mismatch in count of all location for an account

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

Hi ,

Iam trying to fetch all the locations under an account using

$locations = $mybusinessService->accounts_locations;
$locationsList = $locations->listAccountsLocations($name)->getLocations();

 

When I login to Google places It shows 27 locations. but using API Iam only getting 100 location. 

Could some please give an example code how to pass the pageSize and pageToken through the call

 

Thanks,

Joseph

1 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author joseph s
March 2017

Re: Mismatch in count of all location for an account

Google Employee
# 2
Google Employee

Hi @joseph s,

 

I suggest you please checkout this accepted solution for list all locations for the specified account via the Google My Business API. 

 

I hope this helps!

 

Thanks,

Shalini

View solution in original post

Marked as Best Answer.
Solution
Accepted by topic author joseph s
March 2017

Re: Mismatch in count of all location for an account

Google Employee
# 2
Google Employee

Hi @joseph s,

 

I suggest you please checkout this accepted solution for list all locations for the specified account via the Google My Business API. 

 

I hope this helps!

 

Thanks,

Shalini

Mismatch in count of all location for an account

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Hi @Shalini S,

Thanks For the Response. It worked using the link you mentioned.

Thanks,

Joseph