Method: networks.customTargetingKeys.batchCreate

API to batch create CustomTargetingKey objects.

HTTP request

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

Path parameters

Parameters
parent

string

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

Request body

The request body contains data with the following structure:

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

object (CreateCustomTargetingKeyRequest)

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

Response body

Response object for customTargetingKeys.batchCreate method.

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

JSON representation
{
  "customTargetingKeys": [
    {
      object (CustomTargetingKey)
    }
  ]
}
Fields
customTargetingKeys[]

object (CustomTargetingKey)

The CustomTargetingKey objects created.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the OAuth 2.0 Overview.

CreateCustomTargetingKeyRequest

Request object for customTargetingKeys.create method.

JSON representation
{
  "parent": string,
  "customTargetingKey": {
    object (CustomTargetingKey)
  }
}
Fields
parent

string

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

customTargetingKey

object (CustomTargetingKey)

Required. The CustomTargetingKey to create.