Builder for an in-feed video ad under construction.

### Methods:

| Member | Type | Description |
|---|---|---|
| [build()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_infeedadbuilder#build) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_videoadoperation` | Creates an in-feed video ad. |
| [withAdName(adName)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_infeedadbuilder#withAdName_adName) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_infeedadbuilder` | Sets the video ad name. |
| [withDescription1(description1)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_infeedadbuilder#withDescription1_description1) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_infeedadbuilder` | Sets the first line of the new ad's description to the specified value. |
| [withDescription2(description2)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_infeedadbuilder#withDescription2_description2) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_infeedadbuilder` | Sets the second line of the new ad's description to the specified value. |
| [withDestinationPage(destinationPage)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_infeedadbuilder#withDestinationPage_destinationPage) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_infeedadbuilder` | Sets the destination page. |
| [withHeadline(headline)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_infeedadbuilder#withHeadline_headline) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_infeedadbuilder` | Sets the headline of the new ad to the specified value. |
| [withThumbnail(thumbnail)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_infeedadbuilder#withThumbnail_thumbnail) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_infeedadbuilder` | Sets the thumbnail that you want to appear with the ad. |
| [withVideo(video)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_infeedadbuilder#withVideo_video) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_infeedadbuilder` | Sets the YouTube video that this ad will be built on. |

## `build()`

Creates an in-feed video ad. Returns a `VideoAdOperation` that can be used to get the new ad (or access any associated errors if creation failed).

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_videoadoperation` | The associated ad operation. |

## `withAdName(adName)`

Sets the video ad name. This field is required.

### Arguments:

| Name | Type | Description |
|---|---|---|
| adName | `String` | The video ad name. |

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_infeedadbuilder` | Ad builder with the specified video ad name. |

## `withDescription1(description1)`

Sets the first line of the new ad's description to the specified value. This field is required.

### Arguments:

| Name | Type | Description |
|---|---|---|
| description1 | `String` | The first line of the ad description. |

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_infeedadbuilder` | Ad builder with the specified first description line. |

## `withDescription2(description2)`

Sets the second line of the new ad's description to the specified value. This field is required.

### Arguments:

| Name | Type | Description |
|---|---|---|
| description2 | `String` | The second line of the ad description. |

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_infeedadbuilder` | Ad builder with the specified second description line. |

## `withDestinationPage(destinationPage)`

Sets the destination page. Setting the value as `"WATCH"` takes users to a standard YouTube video watch page and `"CHANNEL"` takes users to your YouTube channel page to view the selected video.

### Arguments:

| Name | Type | Description |
|---|---|---|
| destinationPage | `String` | The destination page. It can be either `"WATCH"` or `"CHANNEL"`. |

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_infeedadbuilder` | Ad builder with the specified destination page. |

## `withHeadline(headline)`

Sets the headline of the new ad to the specified value. This field is required.

### Arguments:

| Name | Type | Description |
|---|---|---|
| headline | `String` | The headline for the ad. |

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_infeedadbuilder` | Ad builder with the specified headline. |

## `withThumbnail(thumbnail)`

Sets the thumbnail that you want to appear with the ad. Acceptable values: `"DEFAULT", "THUMBNAIL1", "THUMBNAIL2", "THUMBNAIL3"`.

### Arguments:

| Name | Type | Description |
|---|---|---|
| thumbnail | `String` | Selection of thumbnail that appears on the ad. It can be `"DEFAULT"`, `"THUMBNAIL1",` `"THUMBNAIL2"` or `"THUMBNAIL3"`. |

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_infeedadbuilder` | Ad builder with the specified thumbnail selection. |

## `withVideo(video)`

Sets the YouTube video that this ad will be built on.

### Arguments:

| Name | Type | Description |
|---|---|---|
| video | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_asset` | The YouTube video that this ad will be built on. Use [Asset.getYouTubeVideoId()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_asset#getYouTubeVideoId) to check if a video is YouTube video. |

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_infeedadbuilder` | Ad builder with the specified video. |