> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Edit Negative Keywords

> Adds and/or removes keywords in a DV360 negative keyword list in one atomic call (removals first, then additions; no partial success)

Adds and/or removes keywords in a DV360 negative keyword list in one atomic call (removals first, then additions; no partial success). Preferred over dv360\_replace\_negative\_keywords for incremental changes.

|                       |                                |
| --------------------- | ------------------------------ |
| **App**               | DV360                          |
| **Operation ID**      | `dv360_edit_negative_keywords` |
| **Type**              | Action                         |
| **Connection**        | `dv360` (required)             |
| **Credits per run**   | 1                              |
| **Agent / MCP tool**  | Yes                            |
| **Requires approval** | Yes (write operation)          |

## Inputs

| Field                      | Type                      | Required | Default | Description                                                                                                                                    |
| -------------------------- | ------------------------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| `account`                  | DynamicAccount            | Yes      | -       | Select the DV360 advertiser that owns the negative keyword list.                                                                               |
| `negative_keyword_list_id` | string or SelectItem      | Yes      | -       | ID of the negative keyword list to edit.                                                                                                       |
| `add_keywords`             | string or array of string | No       | -       | Keywords to add, as a list or newline/comma separated text. Each keyword: ASCII only, max 80 characters and 10 words, e.g. 'car insurance'.    |
| `remove_keywords`          | string or array of string | No       | -       | Existing keyword values to remove, as a list or newline/comma separated text. Removals are applied before additions; the whole edit is atomic. |

### SelectItem

| Field   | Type   | Required | Default | Description                                                                                          |
| ------- | ------ | -------- | ------- | ---------------------------------------------------------------------------------------------------- |
| `value` | string | Yes      | -       | The value of the selectable item.                                                                    |
| `label` | string | Yes      | -       | The label of the selectable item, used for display purposes. If not provided, defaults to the value. |

## Output

**Type**: `Dict`

Returns the added/removed counts and created keywords.

**Fields**: `negative_keyword_list_id`, `added_count`, `removed_count`, `created_negative_keywords`
