AdsApp.VideoAgeBuilder
Stay organized with collections
Save and categorize content based on your preferences.
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:
build()
Builds the video age. Returns a
VideoAgeOperation that corresponds to the creation of the
VideoAge.
Return values:
exclude()
Builds the excluded video age. Returns an
ExcludedVideoAgeOperation that corresponds to the creation of the
ExcludedVideoAge.
Return values:
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:
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."],[[["This page documents the `VideoAgeBuilder` used for creating and managing video age targeting in Google Ads scripts."],["The builder provides methods like `build()` and `exclude()` to create or exclude specific age ranges for targeting."],["`withAgeRange()` allows you to define the age range, such as 'AGE_RANGE_25_34', for your video targeting."],["You can find detailed information about available age ranges on the official 'Age Ranges' documentation page."]]],[]]