class AccountsLocations extends Resource (View source)

The "locations" collection of methods.

Typical usage is:

 $mybusinessbusinessinformationService = new Google\Service\MyBusinessBusinessInformation(...);
 $locations = $mybusinessbusinessinformationService->accounts_locations;

Methods

create(string $parent, Location $postBody, array $optParams = [])

Creates a new Location that will be owned by the logged in user.

listAccountsLocations(string $parent, array $optParams = [])

Lists the locations for the specified account.

Details

Location create(string $parent, Location $postBody, array $optParams = [])

Creates a new Location that will be owned by the logged in user.

(locations.create)

Parameters

string $parent

Required. The name of the account in which to create this location.

Location $postBody
array $optParams

Optional parameters.

Return Value

Location

Exceptions

Exception

ListLocationsResponse listAccountsLocations(string $parent, array $optParams = [])

Lists the locations for the specified account.

(locations.listAccountsLocations)

Parameters

string $parent

Required. The name of the account to fetch locations from. If the parent Account is of AccountType PERSONAL, only Locations that are directly owned by the Account are returned, otherwise it will return all accessible locations from the Account, either directly or indirectly.

array $optParams

Optional parameters.

Return Value

ListLocationsResponse

Exceptions

Exception