AdsApp.ExcludedVideoAge
Stay organized with collections
Save and categorize content based on your preferences.
Represents a Google Ads excluded Age criterion in a Video Campaign.
Methods:
Member | Type | Description |
getAgeRange |
String |
Returns the age range. |
getEntityType |
String |
Returns the type of this entity as a String , in this case,
"ExcludedVideoAge" . |
getId |
String |
Returns the ID of the excluded video age. |
getResourceName |
String |
Returns the resource name of the excluded video age. |
getVideoAdGroup |
AdsApp.VideoAdGroup |
Returns the ad group to which this excluded video age belongs, or
null if the
excluded video age is excluded at the campaign level. |
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:
Type | Description |
String |
The age range. |
getEntityType()
Returns the type of this entity as a
String
, in this case,
"ExcludedVideoAge"
.
Return values:
Type | Description |
String |
Type of this entity: "ExcludedVideoAge" . |
getId()
Returns the ID of the excluded video age.
Return values:
Type | Description |
String |
The ID of the excluded video age. |
getResourceName()
Returns the resource name of the excluded video age.
Return values:
Type | Description |
String |
The resource name of the excluded video age. |
getVideoAdGroup()
Returns the ad group to which this excluded video age belongs, or
null
if the
excluded video age is excluded at the campaign level.
Return values:
Type | Description |
AdsApp.VideoAdGroup |
The ad group to which this excluded video age belongs or
null . |
getVideoCampaign()
Returns the campaign to which this excluded video age belongs.
Return values:
include()
Enable this excluded video age in the ad group.
Returns nothing.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[[["Represents an ExcludedVideoAge criterion, allowing you to prevent specific age groups from seeing your video ads."],["Provides methods to access details such as the age range, ID, and associated campaign or ad group."],["You can retrieve the age range using `getAgeRange()` and enable the exclusion with `include()`."],["This criterion applies to Google Ads Video Campaigns and helps refine ad targeting for desired demographics."]]],[]]