AdsApp.​YouTubeChannelBuilder

  • YouTubeChannelBuilder is used to create YouTubeChannel objects.

  • The withChannelId() method is required when building a YouTube channel criterion.

  • You can set CPC or CPM bids for the new YouTube channel using withCpc() or withCpm() methods respectively.

  • Use the build() method to create a YouTubeChannelOperation or the exclude() method to create an ExcludedYouTubeChannelOperation.

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:

Member Type Description
AdsApp.YouTubeChannelOperation Builds the YouTube channel criterion.
AdsApp.ExcludedYouTubeChannelOperation Builds the excluded YouTube channel criterion.
AdsApp.YouTubeChannelBuilder Sets the YouTube channel ID.
AdsApp.YouTubeChannelBuilder Sets the max CPC bid of the new YouTube channel to the specified value.
AdsApp.YouTubeChannelBuilder Sets the CPM bid of the new YouTube channel to the specified value.

build()

Builds the YouTube channel criterion. Returns a YouTubeChannelOperation that corresponds to the creation of the YouTubeChannel .

Return values:

Type Description
AdsApp.YouTubeChannelOperation The YouTubeChannelOperation.

exclude()

Builds the excluded YouTube channel criterion. Returns an ExcludedYouTubeChannelOperation that corresponds to the creation of the ExcludedYouTubeChannel .

Return values:

Type Description
AdsApp.ExcludedYouTubeChannelOperation The ExcludedYouTubeChannelOperation.

withChannelId(channelId)

Sets the YouTube channel ID. This field is required.

Arguments:

Name Type Description
channelId
String The YouTube channel ID.

Return values:

Type Description
AdsApp.YouTubeChannelBuilder A YouTubeChannelBuilder with the specified channel ID.

withCpc(cpc)

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

Arguments:

Name Type Description
cpc
double The max CPC bid of the YouTube channel.

Return values:

Type Description
AdsApp.YouTubeChannelBuilder The YouTube channel builder with the specified max CPC.

withCpm(cpm)

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

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

Arguments:

Name Type Description
cpm
double The CPM bid of the YouTube channel.

Return values:

Type Description
AdsApp.YouTubeChannelBuilder The YouTube channel builder with the specified CPM.
Design a Mobile Site
View Site in Mobile | Classic
Share by: