AdsApp.​VideoKeywordBuilder

  • The VideoKeywordBuilder is used to create VideoKeyword objects.

  • You can set the keyword text using withText() , which is a required field.

  • You can optionally set the maximum CPV bid using withCpv() .

  • The build() method creates a standard video keyword, while exclude() creates an excluded video keyword.

Builder for VideoKeyword objects.

Example usage:

 var 
  
 videoKeywordBuilder 
  
 = 
  
 videoAdGroup 
 . 
 videoTargeting 
 () 
 . 
 newKeywordBuilder 
 (); 
 var 
  
 videoKeywordOperation 
  
 = 
  
 videoKeywordBuilder 
  
 . 
 withText 
 ( 
 'keyword' 
 ) 
  
 // 
  
 required 
  
 . 
 withCpv 
 ( 
 0.11 
 ) 
  
 // 
  
 optional 
  
 . 
 build 
 (); 
  
 // 
  
 create 
  
 the 
  
 keyword 

Methods:

Member Type Description
AdsApp.VideoKeywordOperation Builds the video keyword.
AdsApp.ExcludedVideoKeywordOperation Builds the excluded video keyword.
AdsApp.VideoKeywordBuilder Sets the max CPV bid of the new video keyword to the specified value.
AdsApp.VideoKeywordBuilder Sets the text of the video keyword.

build()

Builds the video keyword. Returns a VideoKeywordOperation that corresponds to the creation of the VideoKeyword .

Return values:

Type Description
AdsApp.VideoKeywordOperation The VideoKeywordOperation.

exclude()

Builds the excluded video keyword. Returns an ExcludedVideoKeywordOperation that corresponds to the creation of the ExcludedVideoKeyword .

Return values:

Type Description
AdsApp.ExcludedVideoKeywordOperation The ExcludedVideoKeywordOperation.

withCpv(cpv)

Sets the max CPV bid of the new video keyword to the specified value.

Arguments:

Name Type Description
cpv
double The max CPV bid of the video keyword.

Return values:

Type Description
AdsApp.VideoKeywordBuilder The video keyword builder with the specified max CPV.

withText(text)

Sets the text of the video keyword. This field is required.

Arguments:

Name Type Description
text
String The video keyword text.

Return values:

Type Description
AdsApp.VideoKeywordBuilder A VideoKeywordBuilder with the specified text.
Design a Mobile Site
View Site in Mobile | Classic
Share by: