mat's
mat's

Reputation: 49

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

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?

Upvotes: 1

Views: 666

Answers (1)

nic_reg_01
nic_reg_01

Reputation: 36

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.

Upvotes: 2

Related Questions