> ## 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.

# Replace Negative Keywords

> Replaces ALL keywords in a DV360 negative keyword list with a new set (or clears the list entirely)

Replaces ALL keywords in a DV360 negative keyword list with a new set (or clears the list entirely). Existing keywords not in the new set are removed. Prefer dv360\_edit\_negative\_keywords for incremental add/remove changes.

|                       |                                   |
| --------------------- | --------------------------------- |
| **App**               | DV360                             |
| **Operation ID**      | `dv360_replace_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 whose keywords to replace.                                                                                                                                                                           |
| `keywords`                 | string or array of string | No       | -       | The complete new set of keywords, as a list or newline/comma separated text; all existing keywords are replaced with exactly this set. Each keyword: ASCII only, max 80 characters and 10 words. Required unless clear\_all is true. |
| `clear_all`                | boolean                   | No       | `False` | When true, remove every keyword from the list (replaces with an empty set). keywords must be left empty.                                                                                                                             |

### 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 final keyword set now in the list.

**Fields**: `negative_keyword_list_id`, `keyword_count`, `negative_keywords`
