AdsApp.VideoYouTubeChannelBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Builder for
VideoYouTubeChannel
objects.
Example usage:
var videoYouTubeChannelBuilder = videoAdGroup
.videoTargeting()
.newYouTubeChannelBuilder();
var videoYouTubeChannelOperation = videoYouTubeChannelBuilder
.withChannelId('UCqVDpXKLmKeBU_yyt_QkItQ') // required
.build(); // create the YouTube channel
Methods:
build()
Builds the video YouTube channel. Returns a
VideoYouTubeChannelOperation that corresponds to the creation of the
VideoYouTubeChannel.
Return values:
exclude()
Builds the excluded video YouTube channel. Returns an
ExcludedVideoYouTubeChannelOperation that corresponds to the creation of the
ExcludedVideoYouTubeChannel.
Return values:
withChannelId(channelId)
Sets the YouTube channel ID. This field is required.
Arguments:
Name | Type | Description |
channelId |
String |
The YouTube channel 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."],[[["The VideoYouTubeChannelBuilder is used to create or exclude YouTube channels for targeting or exclusion in video ad groups."],["It provides methods to specify the YouTube channel ID (`withChannelId`) and to build the operation (`build` or `exclude`)."],["The `build` method creates a VideoYouTubeChannelOperation for targeting, while `exclude` creates an ExcludedVideoYouTubeChannelOperation for exclusion."],["The channel ID is a required field when building a VideoYouTubeChannel."]]],[]]