Method: accounts.regions.batchCreate

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

string

Required. The account to create one or more regions for. Format: accounts/{account}

Request body

The request body contains data with the following structure:

JSON representation
 { 
 "requests" 
 : 
 [ 
 { 
 object (  CreateRegionRequest 
 
) 
 } 
 ] 
 } 
Fields
requests[]

object ( CreateRegionRequest )

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 (  Region 
 
) 
 } 
 ] 
 } 
Fields
regions[]

object ( Region )

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 (  Region 
 
) 
 } 
 } 
Fields
parent

string

Required. The account to create a region for. Format: accounts/{account}

regionId

string

Required. The identifier for the region, unique over all regions of the same account.

region

object ( Region )

Required. The region to create.

Design a Mobile Site
View Site in Mobile | Classic
Share by: