Method: networks.placements.batchCreate

  • The batchCreate method allows for the creation of multiple Placement objects in a single API call, up to a maximum of 100.

  • The request uses a POST HTTP method and requires a parent network path parameter.

  • The request body contains an array of CreatePlacementRequest objects, each specifying the parent and the Placement to create.

  • The response body contains an array of the newly created Placement objects.

  • Authorization for this method requires the https://www.googleapis.com/auth/admanager OAuth scope.

API to batch create Placement objects.

HTTP request

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

Path parameters

Parameters
parent

string

Required. The parent resource where the Placements will be created. Format: networks/{networkCode} The parent field in the CreatePlacementRequest messages match this field.

Request body

The request body contains data with the following structure:

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

object (CreatePlacementRequest)

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

Response body

Response object for placements.batchCreate method.

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

JSON representation
{
  "placements": [
    {
      object (Placement)
    }
  ]
}
Fields
placements[]

object (Placement)

The Placement objects created.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the OAuth 2.0 Overview.

CreatePlacementRequest

Request object for placements.create method.

JSON representation
{
  "parent": string,
  "placement": {
    object (Placement)
  }
}
Fields
parent

string

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

placement

object (Placement)

Required. The Placement to create.