AdsApp.​VideoPlacementBuilder

  • VideoPlacementBuilder is used to create VideoPlacement objects.

  • The withUrl() method is required and sets the URL for the placement.

  • The build() method creates a standard video placement.

  • The exclude() method creates an excluded video placement.

Builder for VideoPlacement objects.

Example usage:

 var 
  
 videoPlacementBuilder 
  
 = 
  
 videoAdGroup 
  
 . 
 videoTargeting 
 () 
  
 . 
 newPlacementBuilder 
 (); 
 var 
  
 videoPlacementOperation 
  
 = 
  
 videoPlacementBuilder 
  
 . 
 withUrl 
 ( 
 '"http://www.site.com"' 
 ) 
  
 // 
  
 required 
  
 . 
 build 
 (); 
  
 // 
  
 create 
  
 the 
  
 placement 

Methods:

Member Type Description
AdsApp.VideoPlacementOperation Builds the video placement.
AdsApp.ExcludedVideoPlacementOperation Builds the excluded video placement.
AdsApp.VideoPlacementBuilder Sets the URL of the placement.

build()

Builds the video placement. Returns a VideoPlacementOperation that corresponds to the creation of the VideoPlacement .

Return values:

Type Description
AdsApp.VideoPlacementOperation The VideoPlacementOperation.

exclude()

Builds the excluded video placement. Returns an ExcludedVideoPlacementOperation that corresponds to the creation of the ExcludedVideoPlacement .

Return values:

Type Description
AdsApp.ExcludedVideoPlacementOperation The ExcludedVideoPlacementOperation.

withUrl(url)

Sets the URL of the placement. This field is required.

Arguments:

Name Type Description
url
String The placement URL.

Return values:

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