REST Resource: advertisers.negativeKeywordLists

  • NegativeKeywordList is a resource that allows advertisers to define a list of negative keywords for targeting purposes.

  • It includes fields like name, negativeKeywordListId, displayName, advertiserId, and targetedLineItemCount, providing information about the list and its usage.

  • You can manage negative keyword lists using methods like create, delete, get, list, and patch to control how your ads are targeted.

Resource: NegativeKeywordList

A list of negative keywords used for targeting.

JSON representation
{
  "name": string,
  "negativeKeywordListId": string,
  "displayName": string,
  "advertiserId": string,
  "targetedLineItemCount": string
}
Fields
name

string

Output only. The resource name of the negative keyword list.

negativeKeywordListId

string (int64 format)

Output only. The unique ID of the negative keyword list. Assigned by the system.

displayName

string

Required. The display name of the negative keyword list. Must be UTF-8 encoded with a maximum size of 255 bytes.

advertiserId

string (int64 format)

Output only. The unique ID of the advertiser the negative keyword list belongs to.

targetedLineItemCount

string (int64 format)

Output only. Number of line items that are directly targeting this negative keyword list.

Methods

create

Creates a new negative keyword list.

delete

Deletes a negative keyword list given an advertiser ID and a negative keyword list ID.

get

Gets a negative keyword list given an advertiser ID and a negative keyword list ID.

list

Lists negative keyword lists based on a given advertiser id.

patch

Updates a negative keyword list.