Method: networks.adUnits.batchCreate

API to batch create AdUnit objects.

HTTP request

POST https://admanager.googleapis.com/v1/{parent}/adUnits:batchCreate

Path parameters

Parameters
parent

string

Required. The parent resource where AdUnits will be created. Format: networks/{networkCode} The parent field in the CreateAdUnitRequest must match this field.

Request body

The request body contains data with the following structure:

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

object ( CreateAdUnitRequest )

Required. The AdUnit objects to create. A maximum of 100 objects can be created in a batch.

Response body

Response object for adUnits.batchCreate method.

If successful, the response body contains data with the following structure:

JSON representation
 { 
 "adUnits" 
 : 
 [ 
 { 
 object (  AdUnit 
 
) 
 } 
 ] 
 } 
Fields
adUnits[]

object ( AdUnit )

The AdUnit objects created.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/admanager

For more information, see the OAuth 2.0 Overview .

CreateAdUnitRequest

Request object for adUnits.create method.

JSON representation
 { 
 "parent" 
 : 
 string 
 , 
 "adUnit" 
 : 
 { 
 object (  AdUnit 
 
) 
 } 
 } 
Fields
parent

string

Required. The parent resource where this AdUnit will be created. Format: networks/{networkCode}

adUnit

object ( AdUnit )

Required. The AdUnit to create.

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