REST Resource: accounts.regions
Stay organized with collections
Save and categorize content based on your preferences.
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 or, in some countries, using predefined geotargets. For more information, see Set up regions for more information.
JSON representation |
{
"name": string,
"postalCodeArea": {
object (PostalCodeArea )
},
"geotargetArea": {
object (GeoTargetArea )
},
"regionalInventoryEligible": boolean,
"shippingEligible": boolean,
"displayName": string
} |
Fields |
name |
string
Identifier. The resource name of the region. Format: accounts/{account}/regions/{region}
|
postalCodeArea |
object (PostalCodeArea )
Optional. A list of postal codes that defines the region area.
|
geotargetArea |
object (GeoTargetArea )
Optional. A list of geotargets that defines the region area.
|
regionalInventoryEligible |
boolean
Output only. Indicates if the region is eligible for use in the Regional Inventory configuration.
|
shippingEligible |
boolean
Output only. Indicates if the region is eligible for use in the Shipping Services configuration.
|
displayName |
string
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 (PostalCodeRange )
}
]
} |
Fields |
regionCode |
string
Required. CLDR territory code or the country the postal code group applies to.
|
postalCodes[] |
object (PostalCodeRange )
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 |
string
Required. A postal code or a pattern of the form prefix* denoting the inclusive lower bound of the range defining the area. Examples values: 94108 , 9410* , 9* .
|
end |
string
Optional. A postal code or a pattern of the form prefix* denoting the inclusive upper bound of the range defining the area. It must have the same length as postalCodeRangeBegin: if postalCodeRangeBegin is a postal code then postalCodeRangeEnd must be a postal code too; if postalCodeRangeBegin is a pattern then postalCodeRangeEnd must be a pattern with the same prefix length. Optional: if not set, then the area is defined as being all the postal codes matching postalCodeRangeBegin.
|
GeoTargetArea
A list of geotargets that defines the region area.
JSON representation |
{
"geotargetCriteriaIds": [
string
]
} |
Fields |
geotargetCriteriaIds[] |
string (int64 format)
Required. A non-empty list of location IDs. They must all be of the same location type (for example, state).
|
Methods |
|
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. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-31 UTC.
[null,null,["Last updated 2025-07-31 UTC."],[],[],null,["# REST Resource: accounts.regions\n\n- [Resource: Region](#Region)\n - [JSON representation](#Region.SCHEMA_REPRESENTATION)\n- [PostalCodeArea](#PostalCodeArea)\n - [JSON representation](#PostalCodeArea.SCHEMA_REPRESENTATION)\n- [PostalCodeRange](#PostalCodeRange)\n - [JSON representation](#PostalCodeRange.SCHEMA_REPRESENTATION)\n- [GeoTargetArea](#GeoTargetArea)\n - [JSON representation](#GeoTargetArea.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Region\n----------------\n\nRepresents 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 or, in some countries, using predefined geotargets. For more information, see [Set up regions](https://support.google.com/merchants/answer/7410946#zippy=%2Ccreate-a-new-region) for more information.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"postalCodeArea\": { object (/merchant/api/reference/rest/accounts_v1/accounts.regions#PostalCodeArea) }, \"geotargetArea\": { object (/merchant/api/reference/rest/accounts_v1/accounts.regions#GeoTargetArea) }, \"regionalInventoryEligible\": boolean, \"shippingEligible\": boolean, \"displayName\": string } ``` |\n\n| Fields ||\n|-----------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Identifier. The resource name of the region. Format: `accounts/{account}/regions/{region}` |\n| `postalCodeArea` | `object (`[PostalCodeArea](/merchant/api/reference/rest/accounts_v1/accounts.regions#PostalCodeArea)`)` Optional. A list of postal codes that defines the region area. |\n| `geotargetArea` | `object (`[GeoTargetArea](/merchant/api/reference/rest/accounts_v1/accounts.regions#GeoTargetArea)`)` Optional. A list of geotargets that defines the region area. |\n| `regionalInventoryEligible` | `boolean` Output only. Indicates if the region is eligible for use in the Regional Inventory configuration. |\n| `shippingEligible` | `boolean` Output only. Indicates if the region is eligible for use in the Shipping Services configuration. |\n| `displayName` | `string` Optional. The display name of the region. |\n\nPostalCodeArea\n--------------\n\nA 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.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"regionCode\": string, \"postalCodes\": [ { object (/merchant/api/reference/rest/accounts_v1/accounts.regions#PostalCodeRange) } ] } ``` |\n\n| Fields ||\n|-----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `regionCode` | `string` Required. [CLDR territory code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) or the country the postal code group applies to. |\n| `postalCodes[]` | `object (`[PostalCodeRange](/merchant/api/reference/rest/accounts_v1/accounts.regions#PostalCodeRange)`)` Required. A range of postal codes. |\n\nPostalCodeRange\n---------------\n\nA range of postal codes that defines the region area.\n\n| JSON representation |\n|--------------------------------------------|\n| ``` { \"begin\": string, \"end\": string } ``` |\n\n| Fields ||\n|---------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `begin` | `string` Required. A postal code or a pattern of the form prefix\\* denoting the inclusive lower bound of the range defining the area. Examples values: `94108`, `9410*`, `9*`. |\n| `end` | `string` Optional. A postal code or a pattern of the form `prefix*` denoting the inclusive upper bound of the range defining the area. It must have the same length as postalCodeRangeBegin: if postalCodeRangeBegin is a postal code then postalCodeRangeEnd must be a postal code too; if postalCodeRangeBegin is a pattern then postalCodeRangeEnd must be a pattern with the same prefix length. Optional: if not set, then the area is defined as being all the postal codes matching postalCodeRangeBegin. |\n\nGeoTargetArea\n-------------\n\nA list of geotargets that defines the region area.\n\n| JSON representation |\n|------------------------------------------------|\n| ``` { \"geotargetCriteriaIds\": [ string ] } ``` |\n\n| Fields ||\n|--------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `geotargetCriteriaIds[]` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Required. A non-empty list of [location IDs](https://developers.google.com/adwords/api/docs/appendix/geotargeting). They must all be of the same location type (for example, state). |\n\n| Methods ------- ||\n|--------------------------------------------------------------------------------|----------------------------------------------------------------|\n| ### [create](/merchant/api/reference/rest/accounts_v1/accounts.regions/create) | Creates a region definition in your Merchant Center account. |\n| ### [delete](/merchant/api/reference/rest/accounts_v1/accounts.regions/delete) | Deletes a region definition from your Merchant Center account. |\n| ### [get](/merchant/api/reference/rest/accounts_v1/accounts.regions/get) | Retrieves a region defined in your Merchant Center account. |\n| ### [list](/merchant/api/reference/rest/accounts_v1/accounts.regions/list) | Lists the regions in your Merchant Center account. |\n| ### [patch](/merchant/api/reference/rest/accounts_v1/accounts.regions/patch) | Updates a region definition in your Merchant Center account. |"]]