> ## 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 Channel Sites

> Adds and/or removes site URLs and app IDs in a DV360 channel in one call (removals first, then additions)

Adds and/or removes site URLs and app IDs in a DV360 channel in one call (removals first, then additions). Preferred over dv360\_replace\_channel\_sites for incremental changes.

|                       |                            |
| --------------------- | -------------------------- |
| **App**               | DV360                      |
| **Operation ID**      | `dv360_edit_channel_sites` |
| **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 channel.                                                                                                           |
| `channel_id`   | string or SelectItem      | Yes      | -       | ID of the channel to edit.                                                                                                                                   |
| `add_sites`    | string or array of string | No       | -       | Site URLs or app IDs to add, as a list or newline-separated text (one per line; max 240 bytes each), e.g. 'example.com' or an app ID like 'com.example.app'. |
| `remove_sites` | string or array of string | No       | -       | Existing site URLs or app IDs to remove, as a list or newline-separated text. Removals are applied before additions.                                         |

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

**Fields**: `channel_id`, `added_count`, `removed_count`, `created_sites`
