class Regions extends Resource (View source)

The "regions" collection of methods.

Typical usage is:

 $contentService = new Google\Service\ShoppingContent(...);
 $regions = $contentService->regions;

Methods

create(string $merchantId, Region $postBody, array $optParams = [])

Creates a region definition in your Merchant Center account. (regions.create)

delete(string $merchantId, string $regionId, array $optParams = [])

Deletes a region definition from your Merchant Center account.

get(string $merchantId, string $regionId, array $optParams = [])

Retrieves a region defined in your Merchant Center account. (regions.get)

listRegions(string $merchantId, array $optParams = [])

Lists the regions in your Merchant Center account. (regions.listRegions)

patch(string $merchantId, string $regionId, Region $postBody, array $optParams = [])

Updates a region definition in your Merchant Center account. (regions.patch)

Details

Region create(string $merchantId, Region $postBody, array $optParams = [])

Creates a region definition in your Merchant Center account. (regions.create)

Parameters

string $merchantId

Required. The id of the merchant for which to create region definition.

Region $postBody
array $optParams

Optional parameters.

Return Value

Region

Exceptions

Exception

delete(string $merchantId, string $regionId, array $optParams = [])

Deletes a region definition from your Merchant Center account.

(regions.delete)

Parameters

string $merchantId

Required. The id of the merchant for which to delete region definition.

string $regionId

Required. The id of the region to delete.

array $optParams

Optional parameters.

Exceptions

Exception

Region get(string $merchantId, string $regionId, array $optParams = [])

Retrieves a region defined in your Merchant Center account. (regions.get)

Parameters

string $merchantId

Required. The id of the merchant for which to retrieve region definition.

string $regionId

Required. The id of the region to retrieve.

array $optParams

Optional parameters.

Return Value

Region

Exceptions

Exception

ListRegionsResponse listRegions(string $merchantId, array $optParams = [])

Lists the regions in your Merchant Center account. (regions.listRegions)

Parameters

string $merchantId

Required. The id of the merchant for which to list region definitions.

array $optParams

Optional parameters.

Return Value

ListRegionsResponse

Exceptions

Exception

Region patch(string $merchantId, string $regionId, Region $postBody, array $optParams = [])

Updates a region definition in your Merchant Center account. (regions.patch)

Parameters

string $merchantId

Required. The id of the merchant for which to update region definition.

string $regionId

Required. The id of the region to update.

Region $postBody
array $optParams

Optional parameters.

Return Value

Region

Exceptions

Exception