AdsApp.​VideoAgeBuilder

  • The VideoAgeBuilder is used to create VideoAge objects.

  • Use withAgeRange() to specify the desired age range for the video age.

  • The build() method creates a VideoAgeOperation for adding the video age.

  • The exclude() method creates an ExcludedVideoAgeOperation for excluding the video age.

Builder for VideoAge objects.

Example usage:

 var 
  
 videoAgeBuilder 
  
 = 
  
 videoAdGroup 
 . 
 videoTargeting 
 () 
 . 
 newAgeBuilder 
 (); 
 var 
  
 videoAgeOperation 
  
 = 
  
 videoAgeBuilder 
  
 . 
 withAgeRange 
 ( 
 'AGE_RANGE_25_34' 
 ) 
  
 // 
  
 required 
  
 . 
 build 
 (); 
  
 // 
  
 create 
  
 the 
  
 age 

Methods:

Member Type Description
AdsApp.VideoAgeOperation Builds the video age.
AdsApp.ExcludedVideoAgeOperation Builds the excluded video age.
AdsApp.VideoAgeBuilder Sets the age range.

build()

Builds the video age. Returns a VideoAgeOperation that corresponds to the creation of the VideoAge .

Return values:

Type Description
AdsApp.VideoAgeOperation The VideoAgeOperation.

exclude()

Builds the excluded video age. Returns an ExcludedVideoAgeOperation that corresponds to the creation of the ExcludedVideoAge .

Return values:

Type Description
AdsApp.ExcludedVideoAgeOperation The ExcludedVideoAgeOperation.

withAgeRange(ageRange)

Sets the age range. Age range can be the following values:

AGE_RANGE_18_24, AGE_RANGE_25_34, AGE_RANGE_35_44, AGE_RANGE_45_54, AGE_RANGE_55_64, AGE_RANGE_65_UP, AGE_RANGE_UNDETERMINED More details can be found on our Age Ranges page.

Arguments:

Name Type Description
ageRange
String The age range.

Return values:

Type Description
AdsApp.VideoAgeBuilder A VideoAgeBuilder with the specified age range.
Create a Mobile Website
View Site in Mobile | Classic
Share by: