---
title: "PATCH /v4/advertisers/{advertisersId}/negativeKeywordLists/{negativeKeywordListId}"
method: PATCH
path: "/v4/advertisers/{advertisersId}/negativeKeywordLists/{negativeKeywordListId}"
tags: ["advertisers"]
---

# PATCH /v4/advertisers/{advertisersId}/negativeKeywordLists/{negativeKeywordListId}

`PATCH /v4/advertisers/{advertisersId}/negativeKeywordLists/{negativeKeywordListId}`

## Request

- Base URL: `https://displayvideo.googleapis.com`
- URL: `https://displayvideo.googleapis.com/v4/advertisers/{advertisersId}/negativeKeywordLists/{negativeKeywordListId}`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/display-video`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/display-video`
- TypeScript: <https://skmtc.dev/google/apis/displayvideo/docs/v4/advertisers/:advertisersId/negativeKeywordLists/:negativeKeywordListId/patch.ts> (a function with typed inputs; its response is checked against the schema)

Updates a negative keyword list. Returns the updated negative keyword list if successful.

## Path parameters

- `advertisersId` string, required
- `negativeKeywordListId` string, int64, required

## Query parameters

- `updateMask` string, google-fieldmask

## Request body

- NegativeKeywordList: A list of negative keywords used for targeting.
  - `advertiserId` string, int64: Output only. The unique ID of the advertiser the negative keyword list belongs to.
  - `displayName` string: Required. The display name of the negative keyword list. Must be UTF-8 encoded with a maximum size of 255 bytes.
  - `name` string: Output only. The resource name of the negative keyword list.
  - `negativeKeywordListId` string, int64: Output only. The unique ID of the negative keyword list. Assigned by the system.
  - `targetedLineItemCount` string, int64: Output only. Number of line items that are directly targeting this negative keyword list.

## Response `200`

Successful response

- NegativeKeywordList: A list of negative keywords used for targeting.
  - `advertiserId` string, int64: Output only. The unique ID of the advertiser the negative keyword list belongs to.
  - `displayName` string: Required. The display name of the negative keyword list. Must be UTF-8 encoded with a maximum size of 255 bytes.
  - `name` string: Output only. The resource name of the negative keyword list.
  - `negativeKeywordListId` string, int64: Output only. The unique ID of the negative keyword list. Assigned by the system.
  - `targetedLineItemCount` string, int64: Output only. Number of line items that are directly targeting this negative keyword list.

---

[API](https://skmtc.dev/google/apis/displayvideo.md) - [All operations](https://skmtc.dev/google/apis/displayvideo/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/displayvideo/revisions/d80b56b6703a?raw)
