AdsApp.InFeedAdBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Builder for an in-feed video ad under construction.
Methods:
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:
withAdName(adName)
Sets the video ad name. This field is required.
Arguments:
Name | Type | Description |
adName |
String |
The video ad name. |
Return values:
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:
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:
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:
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:
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:
withVideo(video)
Sets the YouTube video that this ad will be built on.
Arguments:
Return values:
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[[["The InFeedAdBuilder facilitates the creation of in-feed video ads within Google Ads campaigns."],["Required fields for ad creation include ad name, headline, and first and second description lines."],["Advertisers can select a custom thumbnail or the default option for display."],["Destination page settings allow directing users to either the video's watch page or the channel page."],["This builder leverages YouTube videos as the foundation for the in-feed video ads."]]],[]]