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:
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-08-25 UTC.
[null,null,["Last updated 2025-08-25 UTC."],[[["\u003cp\u003eRepresents an ExcludedVideoAge criterion, allowing you to prevent specific age groups from seeing your video ads.\u003c/p\u003e\n"],["\u003cp\u003eProvides methods to access details such as the age range, ID, and associated campaign or ad group.\u003c/p\u003e\n"],["\u003cp\u003eYou can retrieve the age range using \u003ccode\u003egetAgeRange()\u003c/code\u003e and enable the exclusion with \u003ccode\u003einclude()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis criterion applies to Google Ads Video Campaigns and helps refine ad targeting for desired demographics.\u003c/p\u003e\n"]]],[],null,["# AdsApp.ExcludedVideoAge\n\nRepresents a Google Ads excluded Age criterion in a Video Campaign.\n\n### Methods:\n\n| Member | Type | Description |\n|-----------------------------------------|----------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|\n| [getAgeRange()](#getAgeRange) | `String` | Returns the age range. |\n| [getEntityType()](#getEntityType) | `String` | Returns the type of this entity as a `String`, in this case, `\"ExcludedVideoAge\"`. |\n| [getId()](#getId) | `String` | Returns the ID of the excluded video age. |\n| [getResourceName()](#getResourceName) | `String` | Returns the resource name of the excluded video age. |\n| [getVideoAdGroup()](#getVideoAdGroup) | [AdsApp.VideoAdGroup](/google-ads/scripts/docs/reference/adsapp/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. |\n| [getVideoCampaign()](#getVideoCampaign) | [AdsApp.VideoCampaign](/google-ads/scripts/docs/reference/adsapp/adsapp_videocampaign) | Returns the campaign to which this excluded video age belongs. |\n| [include()](#include) | `void` | Enable this excluded video age in the ad group. |\n\n`getAgeRange()`\n---------------\n\nReturns the age range. Possible return values:\n\n`AGE_RANGE_18_24, AGE_RANGE_25_34, AGE_RANGE_35_44,\nAGE_RANGE_45_54, AGE_RANGE_55_64, AGE_RANGE_65_UP,\nAGE_RANGE_UNDETERMINED` More details can be found on our [Age\nRanges](/google-ads/api/reference/data/codes-formats#age-ranges) page.\n\n### Return values:\n\n| Type | Description |\n|----------|----------------|\n| `String` | The age range. |\n\n`getEntityType()`\n-----------------\n\nReturns the type of this entity as a `String`, in this case, `\"ExcludedVideoAge\"`.\n\n### Return values:\n\n| Type | Description |\n|----------|--------------------------------------------|\n| `String` | Type of this entity: `\"ExcludedVideoAge\"`. |\n\n`getId()`\n---------\n\nReturns the ID of the excluded video age.\n\n### Return values:\n\n| Type | Description |\n|----------|-----------------------------------|\n| `String` | The ID of the excluded video age. |\n\n`getResourceName()`\n-------------------\n\nReturns the resource name of the excluded video age.\n\n### Return values:\n\n| Type | Description |\n|----------|----------------------------------------------|\n| `String` | The resource name of the excluded video age. |\n\n`getVideoAdGroup()`\n-------------------\n\nReturns the ad group to which this excluded video age belongs, or `null` if the excluded video age is excluded at the campaign level.\n\n### Return values:\n\n| Type | Description |\n|--------------------------------------------------------------------------------------|------------------------------------------------------------------|\n| [AdsApp.VideoAdGroup](/google-ads/scripts/docs/reference/adsapp/adsapp_videoadgroup) | The ad group to which this excluded video age belongs or `null`. |\n\n`getVideoCampaign()`\n--------------------\n\nReturns the campaign to which this excluded video age belongs.\n\n### Return values:\n\n| Type | Description |\n|----------------------------------------------------------------------------------------|--------------------------------------------------------|\n| [AdsApp.VideoCampaign](/google-ads/scripts/docs/reference/adsapp/adsapp_videocampaign) | The campaign to which this excluded video age belongs. |\n\n`include()`\n-----------\n\nEnable this excluded video age in the ad group.\n\nReturns nothing."]]