AdWordsApp.​YouTubeChannelBuilder

Builder for YouTubeChannel objects.

Example usage:

 var youTubeChannelBuilder = adGroup.display().newYouTubeChannelBuilder();
 var youTubeChannelOperation = youTubeChannelBuilder
   .withChannelId('UCqVDpXKLmKeBU_yyt_QkItQ')    // required
   .build();                                     // create the YouTube channel

Methods:

MemberTypeDescription
build void
exclude void
withChannelId AdWordsApp.YouTubeChannelBuilder Sets the YouTube channel ID.
withCpc AdWordsApp.YouTubeChannelBuilder Sets the max CPC bid of the new video YouTube channel to the specified value.
withCpm AdWordsApp.YouTubeChannelBuilder Sets the CPM bid of the new video YouTube channel to the specified value.

build()

Returns nothing.

exclude()

Returns nothing.

withChannelId(channelId)

Sets the YouTube channel ID. This field is required.

Arguments:

NameTypeDescription
channelId String The YouTube channel ID.

Return values:

TypeDescription
AdWordsApp.YouTubeChannelBuilder A YouTubeChannelBuilder with the specified channel ID.

withCpc(cpc)

Sets the max CPC bid of the new video YouTube channel to the specified value.

Arguments:

NameTypeDescription
cpc double The max CPC bid of the video YouTube channel.

Return values:

TypeDescription
AdWordsApp.YouTubeChannelBuilder The video YouTube channel builder with the specified max CPC.

withCpm(cpm)

Sets the CPM bid of the new video YouTube channel to the specified value.

See Cost-per-thousand impressions (CPM) for more information.

Arguments:

NameTypeDescription
cpm double The CPM bid of the video YouTube channel.

Return values:

TypeDescription
AdWordsApp.YouTubeChannelBuilder The video YouTube channel builder with the specified CPM.

Send feedback about...

Google Ads scripts
Google Ads scripts
Need help? Visit our support page.