Builder for [YouTubeChannel](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_youtubechannel) objects.

Example usage:

```
var youTubeChannelBuilder = adGroup.display().newYouTubeChannelBuilder();
var youTubeChannelOperation = youTubeChannelBuilder
  .withChannelId('UCqVDpXKLmKeBU_yyt_QkItQ')    // required
  .build();                                     // create the YouTube
                                                // channel
```

### Methods:

| Member | Type | Description |
|---|---|---|
| [build()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_youtubechannelbuilder#build) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_youtubechanneloperation` | Builds the YouTube channel criterion. |
| [exclude()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_youtubechannelbuilder#exclude) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_excludedyoutubechanneloperation` | Builds the excluded YouTube channel criterion. |
| [withChannelId(channelId)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_youtubechannelbuilder#withChannelId_channelId) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_youtubechannelbuilder` | Sets the YouTube channel ID. |
| [withCpc(cpc)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_youtubechannelbuilder#withCpc_cpc) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_youtubechannelbuilder` | Sets the max CPC bid of the new YouTube channel to the specified value. |
| [withCpm(cpm)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_youtubechannelbuilder#withCpm_cpm) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_youtubechannelbuilder` | Sets the CPM bid of the new YouTube channel to the specified value. |

## `build()`

Builds the YouTube channel criterion. Returns a [YouTubeChannelOperation](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_youtubechanneloperation) that corresponds to the creation of the [YouTubeChannel](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_youtubechannel).

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_youtubechanneloperation` | The YouTubeChannelOperation. |

## `exclude()`

Builds the excluded YouTube channel criterion. Returns an [ExcludedYouTubeChannelOperation](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_excludedyoutubechanneloperation) that corresponds to the creation of the [ExcludedYouTubeChannel](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_excludedyoutubechannel).

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_excludedyoutubechanneloperation` | The ExcludedYouTubeChannelOperation. |

## `withChannelId(channelId)`

Sets the YouTube channel ID. This field is required.

### Arguments:

| Name | Type | Description |
|---|---|---|
| channelId | `String` | The YouTube channel ID. |

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_youtubechannelbuilder` | A YouTubeChannelBuilder with the specified channel ID. |

## `withCpc(cpc)`

Sets the max CPC bid of the new YouTube channel to the specified value.

### Arguments:

| Name | Type | Description |
|---|---|---|
| cpc | `double` | The max CPC bid of the YouTube channel. |

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_youtubechannelbuilder` | The YouTube channel builder with the specified max CPC. |

## `withCpm(cpm)`

Sets the CPM bid of the new YouTube channel to the specified value.

See [Cost-per-thousand
impressions (CPM)](https://support.google.com/google-ads/answer/6310) for more information.

### Arguments:

| Name | Type | Description |
|---|---|---|
| cpm | `double` | The CPM bid of the YouTube channel. |

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_youtubechannelbuilder` | The YouTube channel builder with the specified CPM. |