Method: networks.placements.batchDeactivate

  • The endpoint allows you to deactivate a list of Placement objects using a POST request to the specified URI.

  • The request requires a parent path parameter in the format networks/{networkCode} to identify the network.

  • The request body must contain a JSON object with a names field, which is an array of strings representing the names of the Placement objects to deactivate in the format networks/{networkCode}/placements/{placementId}.

  • A successful request results in an empty response body.

  • The request requires the https://www.googleapis.com/auth/admanager OAuth scope for authorization.

Deactivates a list of Placement objects.

HTTP request

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

Path parameters

Parameters
parent

string

Required. Format: networks/{networkCode}

Request body

The request body contains data with the following structure:

JSON representation
{
  "names": [
    string
  ]
}
Fields
names[]

string

Required. The names of the Placement objects to deactivate. Format: networks/{networkCode}/placements/{placementId}

Response body

If successful, the response body is empty.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the OAuth 2.0 Overview.