Resource: Region
Represents a geographic region that you can use as a target with both the RegionalInventory
and ShippingSettings
services. You can define regions as collections of either postal codes, radius areas or, in some countries, using predefined geotargets.
A region must be defined by specifying exactly one of postalCodeArea
, geotargetArea
, or radiusArea
.
For more information, see Set up regions for more information.
| JSON representation |
|---|
{ "name" : string , "postalCodeArea" : { object ( |
| Fields | |
|---|---|
name
|
Identifier. The resource name of the region. Format: |
postalCodeArea
|
Optional. A list of postal codes that defines the region area. |
geotargetArea
|
Optional. A list of geotargets that defines the region area. |
regionalInventoryEligible
|
Output only. Indicates if the region is eligible for use in the Regional Inventory configuration. |
shippingEligible
|
Output only. Indicates if the region is eligible for use in the Shipping Services configuration. |
radiusArea
|
Optional. A radius area that defines the region area. |
displayName
|
Optional. The display name of the region. |
PostalCodeArea
A list of postal codes that defines the region area. Note: All regions defined using postal codes are accessible through the account's ShippingSettings.postalCodeGroups
resource.
| JSON representation |
|---|
{
"regionCode"
:
string
,
"postalCodes"
:
[
{
object (
|
| Fields | |
|---|---|
regionCode
|
Required. CLDR territory code or the country the postal code group applies to. |
postalCodes[]
|
Required. A range of postal codes. |
PostalCodeRange
A range of postal codes that defines the region area.
| JSON representation |
|---|
{ "begin" : string , "end" : string } |
| Fields | |
|---|---|
begin
|
Required. A postal code or a pattern of the form prefix* denoting the inclusive lower bound of the range defining the area. Examples values: |
end
|
Optional. A postal code or a pattern of the form |
GeoTargetArea
A list of geotargets that defines the region area.
| JSON representation |
|---|
{ "geotargetCriteriaIds" : [ string ] } |
| Fields | |
|---|---|
geotargetCriteriaIds[]
|
Required. A non-empty list of location IDs . They must all be of the same location type (for example, state). |
RadiusArea
A radius area that defines the region area.
| JSON representation |
|---|
{ "regionCode" : string , "latLng" : { object ( |
| Fields | |
|---|---|
regionCode
|
Required. CLDR territory code or the country the radius area applies to. |
latLng
|
Required. The center of the radius area. It represents a latitude/longitude pair in decimal degrees format. |
radius
|
Required. The radius distance of the area. |
radiusUnits
|
Optional. The unit of the radius. |
RadiusUnits
The unit of measurement of the radius. Default is KILOMETERS.
| Enums | |
|---|---|
RADIUS_UNITS_UNSPECIFIED
|
Unused default value |
MILES
|
The distance is measured in miles. |
KILOMETERS
|
The distance is measured in kilometers. |
Methods |
|
|---|---|
|
Creates one or more regions in your Merchant Center account. |
|
Deletes multiple regions by name from your Merchant Center account. |
|
Updates one or more regions in your Merchant Center account. |
|
Creates a region definition in your Merchant Center account. |
|
Deletes a region definition from your Merchant Center account. |
|
Retrieves a region defined in your Merchant Center account. |
|
Lists the regions in your Merchant Center account. |
|
Updates a region definition in your Merchant Center account. |

