AdsApp.VideoYouTubeVideoBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Builder for
VideoYouTubeVideo
objects.
Example usage:
var videoYouTubeVideoBuilder = videoAdGroup
.videoTargeting()
.newYouTubeVideoBuilder();
var videoYouTubeVideoOperation = videoYouTubeVideoBuilder
.withVideoId('_YUugB4IUl4') // required
.build(); // create the YouTube video
Methods:
build()
Builds the video YouTube video. Returns a
VideoYouTubeVideoOperation that corresponds to the creation of the
VideoYouTubeVideo.
Return values:
exclude()
Builds the excluded video YouTube video. Returns an
ExcludedVideoYouTubeVideoOperation that corresponds to the creation of the
ExcludedVideoYouTubeVideo.
Return values:
withVideoId(videoId)
Sets the YouTube video ID. This field is required.
Arguments:
Name | Type | Description |
videoId |
String |
The YouTube video ID. |
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 2024-12-18 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 2024-12-18 UTC."],[[["This page documents the `VideoYouTubeVideoBuilder`, used for creating or excluding YouTube videos for targeting in video ad groups."],["The builder provides methods to set the YouTube video ID (`withVideoId`) and to build the `VideoYouTubeVideo` or `ExcludedVideoYouTubeVideo` object (`build` or `exclude`)."],["Using the `build` method creates a `VideoYouTubeVideoOperation` for targeting specific YouTube videos."],["Using the `exclude` method creates an `ExcludedVideoYouTubeVideoOperation` for excluding specific YouTube videos."]]],[]]