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.negativeKeywordLists.negativeKeywords.replace

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

Replaces all negative keywords in a single negative keyword list.

The operation will replace the keywords in a negative keyword list with keywords provided in ReplaceNegativeKeywordsRequest.new_negative_keywords.

HTTP request

POST https://displayvideo.googleapis.com/v2/advertisers/{advertiserId}/negativeKeywordLists/{negativeKeywordListId}/negativeKeywords:replace

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
advertiserId

string (int64 format)

Required. The ID of the DV360 advertiser to which the parent negative keyword list belongs.

negativeKeywordListId

string (int64 format)

Required. The ID of the parent negative keyword list to which the negative keywords belong.

Request body

The request body contains data with the following structure:

JSON representation
{
  "newNegativeKeywords": [
    {
      object (NegativeKeyword)
    }
  ]
}
Fields
newNegativeKeywords[]

object (NegativeKeyword)

The negative keywords that will replace the existing keywords in the negative keyword list, specified as a list of NegativeKeywords.

Response body

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

Response message for NegativeKeywordService.ReplaceNegativeKeywords.

JSON representation
{
  "negativeKeywords": [
    {
      object (NegativeKeyword)
    }
  ]
}
Fields
negativeKeywords[]

object (NegativeKeyword)

The full list of negative keywords now present in the negative keyword list.

Authorization Scopes

Requires the following OAuth scope:

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

For more information, see the OAuth 2.0 Overview.