Builder for [VideoYouTubeVideo](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_videoyoutubevideo.md.txt) objects.

Example usage:

```
var videoYouTubeVideoBuilder = videoAdGroup
  .videoTargeting()
  .newYouTubeVideoBuilder();
var videoYouTubeVideoOperation = videoYouTubeVideoBuilder
  .withVideoId('_YUugB4IUl4')      // required
  .build();                        // create the YouTube video
```

### Methods:

| Member | Type | Description |
|---|---|---|
| [build()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_videoyoutubevideobuilder.md.txt#build) | `AdsApp.VideoYouTubeVideoOperation` | Builds the video YouTube video. |
| [exclude()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_videoyoutubevideobuilder.md.txt#exclude) | `AdsApp.ExcludedVideoYouTubeVideoOperation` | Builds the excluded video YouTube video. |
| [withVideoId(videoId)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_videoyoutubevideobuilder.md.txt#withVideoId_videoId) | `AdsApp.VideoYouTubeVideoBuilder` | Sets the YouTube video ID. |

## `build()`

Builds the video YouTube video. Returns a [VideoYouTubeVideoOperation](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_videoyoutubevideooperation.md.txt) that corresponds to the creation of the [VideoYouTubeVideo](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_videoyoutubevideo.md.txt).

### Return values:

| Type | Description |
|---|---|
| `AdsApp.VideoYouTubeVideoOperation` | The VideoYouTubeVideoOperation. |

## `exclude()`

Builds the excluded video YouTube video. Returns an [ExcludedVideoYouTubeVideoOperation](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_excludedvideoyoutubevideooperation.md.txt) that corresponds to the creation of the [ExcludedVideoYouTubeVideo](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_excludedvideoyoutubevideo.md.txt).

### Return values:

| Type | Description |
|---|---|
| `AdsApp.ExcludedVideoYouTubeVideoOperation` | The ExcludedVideoYouTubeVideoOperation. |

## `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 |
|---|---|
| `AdsApp.VideoYouTubeVideoBuilder` | A VideoYouTubeVideoBuilder with the specified video ID. |