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

Example usage:

```
var youTubeVideoBuilder = adGroup.display().newYouTubeVideoBuilder();
var youTubeVideoOperation = youTubeVideoBuilder
  .withVideoId('_YUugB4IUl4')      // required
  .build();                        // create the YouTube video
```

### Methods:

| Member | Type | Description |
|---|---|---|
| [build()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_youtubevideobuilder#build) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_youtubevideooperation` | Builds the YouTube video criterion. |
| [exclude()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_youtubevideobuilder#exclude) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_excludedyoutubevideooperation` | Builds the excluded YouTube video criterion. |
| [withCpc(cpc)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_youtubevideobuilder#withCpc_cpc) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_youtubevideobuilder` | Sets the max CPC bid of the new YouTube video to the specified value. |
| [withCpm(cpm)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_youtubevideobuilder#withCpm_cpm) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_youtubevideobuilder` | Sets the CPM bid of the new YouTube video to the specified value. |
| [withVideoId(videoId)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_youtubevideobuilder#withVideoId_videoId) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_youtubevideobuilder` | Sets the YouTube video ID. |

## `build()`

Builds the YouTube video criterion. Returns a [YouTubeVideoOperation](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_youtubevideooperation) that corresponds to the creation of the [YouTubeVideo](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_youtubevideo).

### Return values:

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

## `exclude()`

Builds the excluded YouTube video criterion. Returns an [ExcludedYouTubeVideoOperation](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_excludedyoutubevideooperation) that corresponds to the creation of the [ExcludedYouTubeVideo](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_excludedyoutubevideo).

### Return values:

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

## `withCpc(cpc)`

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

### Arguments:

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

### Return values:

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

## `withCpm(cpm)`

Sets the CPM bid of the new YouTube video 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 video. |

### Return values:

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

## `withVideoId(videoId)`

Sets the YouTube video ID. This field is required.

### Arguments:

| Name | Type | Description |
|---|---|---|
| videoId | `String` | The YouTube video ID. |

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_youtubevideobuilder` | A YouTubeVideoBuilder with the specified video ID. |