Method: partners.editAssignedTargetingOptions

  • Display & Video 360 API v2 has sunset.

  • This operation allows for editing targeting options for a single partner by deleting existing options and creating new ones in a batch process.

  • The request requires the partnerId and a request body containing lists of options to delete and create.

  • The response, if successful, will contain a list of the successfully created assigned targeting options.

  • This operation requires the https://www.googleapis.com/auth/display-video OAuth scope for authorization.

Edits targeting options under a single partner. The operation will delete the assigned targeting options provided in BulkEditPartnerAssignedTargetingOptionsRequest.deleteRequests and then create the assigned targeting options provided in BulkEditPartnerAssignedTargetingOptionsRequest.createRequests .

HTTP request

POST https://displayvideo.googleapis.com/v2/partners/{partnerId}:editAssignedTargetingOptions

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
partnerId

string (int64 format)

Required. The ID of the partner.

Request body

The request body contains data with the following structure:

JSON representation
{
  "deleteRequests": [
    {
      object (DeleteAssignedTargetingOptionsRequest)
    }
  ],
  "createRequests": [
    {
      object (CreateAssignedTargetingOptionsRequest)
    }
  ]
}
Fields
deleteRequests[]

object (DeleteAssignedTargetingOptionsRequest)

The assigned targeting options to delete in batch, specified as a list of DeleteAssignedTargetingOptionsRequest.

Supported targeting types:

createRequests[]

object (CreateAssignedTargetingOptionsRequest)

The assigned targeting options to create in batch, specified as a list of CreateAssignedTargetingOptionsRequest.

Supported targeting types:

Response body

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

JSON representation
{
  "createdAssignedTargetingOptions": [
    {
      object (AssignedTargetingOption)
    }
  ]
}
Fields
createdAssignedTargetingOptions[]

object (AssignedTargetingOption)

The list of assigned targeting options that have been successfully created.

This list will be absent if empty.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/display-video

For more information, see the OAuth 2.0 Overview.