GMB mybusinessbusinessinformation.googleapis.com/v1 not returning all locations

544 views Asked by At

GMB API v1 does not return all locations.

On Google developer playground if I run something like https://mybusiness.googleapis.com/v4/accounts/my_account_number/locations?

it would return all my locations where I'm a owner

If I use the new API and run https://mybusinessbusinessinformation.googleapis.com/v1/accounts/my_account_number/locations?read_mask=title it would not return all locations.

I verified if anything is different on the location, but could not find anything.

What I'm doing wrong here?

1

There are 1 answers

0
nic_reg_01 On BEST ANSWER

add &pageSize=100

https://mybusinessbusinessinformation.googleapis.com/v1/accounts/my_account_number/locations?read_mask=title&pageSize=100

pageToken maybe required if your total locations is more than 100.