- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- CreateRegionRequest
- Try it!
Creates one or more regions in your Merchant Center account. Executing this method requires admin access.
HTTP request
POST https://merchantapi.googleapis.com/accounts/v1/{parent=accounts/*}/regions:batchCreate
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The account to create one or more regions for. Format: |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"requests": [
{
object ( |
Fields | |
---|---|
requests[] |
Required. The region(s) to create. The maximum number of regions that can be created in a batch is 100. |
Response body
Response message for the regions.batchCreate
method.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"regions": [
{
object ( |
Fields | |
---|---|
regions[] |
The created region(s). |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/content
For more information, see the OAuth 2.0 Overview.
CreateRegionRequest
Request message for the regions.create
method.
JSON representation |
---|
{
"parent": string,
"regionId": string,
"region": {
object ( |
Fields | |
---|---|
parent |
Required. The account to create a region for. Format: |
regionId |
Required. The identifier for the region, unique over all regions of the same account. |
region |
Required. The region to create. |