AdsApp.​VideoAgeBuilder

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:

MemberTypeDescription
buildAdsApp.VideoAgeOperationBuilds the video age.
excludeAdsApp.ExcludedVideoAgeOperationBuilds the excluded video age.
withAgeRangeAdsApp.VideoAgeBuilderSets the age range.

build()

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

Return values:

TypeDescription
AdsApp.VideoAgeOperationThe VideoAgeOperation.

exclude()

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

Return values:

TypeDescription
AdsApp.ExcludedVideoAgeOperationThe 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:

NameTypeDescription
ageRangeStringThe age range.

Return values:

TypeDescription
AdsApp.VideoAgeBuilderA VideoAgeBuilder with the specified age range.