This is the legacy documentation for Google Ads scripts. Go to the current docs.

AdsApp.​ExcludedVideoAge

Represents a Google Ads excluded Age criterion in a Video Campaign.

Methods:

MemberTypeDescription
getAgeRange String Returns the age range.
getEntityType String Returns the type of this entity as a String, in this case, "ExcludedVideoAge".
getId long Returns the ID of the excluded video age.
getVideoAdGroup AdsApp.VideoAdGroup Returns the ad group to which this excluded video age belongs.
getVideoCampaign AdsApp.VideoCampaign Returns the campaign to which this excluded video age belongs.
include void Enable this excluded video age in the ad group.

getAgeRange()

Returns the age range. Possible return 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.

Return values:

TypeDescription
String The age range.

getEntityType()

Returns the type of this entity as a String, in this case, "ExcludedVideoAge".

Return values:

TypeDescription
String Type of this entity: "ExcludedVideoAge".

getId()

Returns the ID of the excluded video age.

Return values:

TypeDescription
long The ID of the excluded video age.

getVideoAdGroup()

Returns the ad group to which this excluded video age belongs.

Return values:

TypeDescription
AdsApp.VideoAdGroup The ad group to which this excluded video age belongs.

getVideoCampaign()

Returns the campaign to which this excluded video age belongs.

Return values:

TypeDescription
AdsApp.VideoCampaign The campaign to which this excluded video age belongs.

include()

Enable this excluded video age in the ad group.

Returns nothing.