The optimized targeting launch has been postponed. Line items will continue to use the targeting expansion feature and the targetingExpansion field of the LineItem resource will continue to behave as it has previously.

Method: advertisers.lineItems.bulkEditAssignedTargetingOptions

Stay organized with collections Save and categorize content based on your preferences.

Bulk edits targeting options under multiple line items. The operation will delete the assigned targeting options provided in BulkEditAssignedTargetingOptionsRequest.delete_requests and then create the assigned targeting options provided in BulkEditAssignedTargetingOptionsRequest.create_requests.

Requests to this endpoint cannot be made concurrently with the following requests updating the same line item:

HTTP request

POST https://displayvideo.googleapis.com/v2/advertisers/{advertiserId}/lineItems:bulkEditAssignedTargetingOptions

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
advertiserId

string (int64 format)

Required. The ID of the advertiser the line items belong to.

Request body

The request body contains data with the following structure:

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

string (int64 format)

Required. The ID of the line items whose targeting is being updated.

deleteRequests[]

object (DeleteAssignedTargetingOptionsRequest)

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

createRequests[]

object (CreateAssignedTargetingOptionsRequest)

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

Response body

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

JSON representation
{
  "updatedLineItemIds": [
    string
  ],
  "failedLineItemIds": [
    string
  ],
  "errors": [
    {
      object (Status)
    }
  ]
}
Fields
updatedLineItemIds[]

string (int64 format)

Output only. The IDs of the line items which successfully updated.

failedLineItemIds[]

string (int64 format)

Output only. The IDs of the line items which failed.

errors[]

object (Status)

The error information for each line item that failed to update.

Authorization Scopes

Requires the following OAuth scope:

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

For more information, see the OAuth 2.0 Overview.