AdsApp.AdGroupVideoTargeting
Stay organized with collections
Save and categorize content based on your preferences.
Access to ad group-level video criteria. For example, to access all video
keywords in an ad group: var
videoKeywordIterator
=
videoAdGroup
.
videoTargeting
()
.
keywords
()
.
get
();
while
(
videoKeywordIterator
.
hasNext
())
{
var
videoKeyword
=
videoKeywordIterator
.
next
();
}
Methods:
ages()
Returns the selector of all ages in the ad group. Return values:
audiences()
Returns the selector of all audiences in the ad group. Return values:
excludedAges()
Returns the selector of all excluded ages in the ad group. Return values:
excludedAudiences()
Returns the selector of all excluded audiences in the ad group. Return values:
excludedGenders()
Returns the selector of all excluded genders in the ad group. Return values:
excludedKeywords()
Returns the selector of all excluded keywords in the ad group. Return values:
excludedMobileAppCategories()
Returns the selector of all excluded mobile application categories in the
ad group. Return values:
excludedMobileApplications()
Returns the selector of all excluded mobile applications in the ad group. Return values:
excludedParentalStatuses()
Returns the selector of all excluded parental statuses in the ad group. Return values:
excludedPlacements()
Returns the selector of all excluded placements in the ad group. Return values:
excludedTopics()
Returns the selector of all excluded topics in the ad group. Return values:
excludedYouTubeChannels()
Returns the selector of all excluded YouTube channels in the ad group. Return values:
excludedYouTubeVideos()
Returns the selector of all excluded YouTube videos in the ad group. Return values:
genders()
Returns the selector of all genders in the ad group. Return values:
keywords()
Returns the selector of all keywords in the ad group. Return values:
mobileAppCategories()
Returns the selector of all mobile application categories in the ad group. Return values:
mobileApplications()
Returns the selector of all mobile applications in the ad group. Return values:
newAgeBuilder()
Returns a new age builder for this ad group. When VideoAgeBuilder.build()
is
called, an age will be created in this ad group. When VideoAgeBuilder.exclude()
is called, an excluded age will be created in this ad group. Return values:
newAudienceBuilder()
Returns a new audience builder for this ad group. When VideoAudienceBuilder.build()
is called, an audience will be created in this ad group. When VideoAudienceBuilder.exclude()
is called, an excluded audience will be created in this ad group. Return values:
newGenderBuilder()
Returns a new age gender for this ad group. When VideoGenderBuilder.build()
is called, a gender will be created in this ad group. When VideoGenderBuilder.exclude()
is called, an excluded gender will be created in this ad group. Return values:
newKeywordBuilder()
Returns a new keyword builder for this ad group. When VideoKeywordBuilder.build()
is called, a keyword will be created in this ad group. When VideoKeywordBuilder.exclude()
is called, an excluded keyword will be created in this ad group. Return values:
newMobileAppCategoryBuilder()
Returns a new mobile application category builder for this ad group. When VideoMobileAppCategoryBuilder.exclude()
is called, a mobile application category will be created in this ad group.
When VideoMobileAppCategoryBuilder.exclude()
is called, an excluded mobile application category will be created in this
ad group. Return values:
newMobileApplicationBuilder()
Returns a new mobile application builder for this ad group. When VideoMobileApplicationBuilder.exclude()
is called, a mobile application will be created in this ad group. When VideoMobileApplicationBuilder.exclude()
is called, an excluded mobile application will be created in this ad group. Return values:
newParentalStatusBuilder()
Returns a new parental status builder for this ad group. When VideoParentalStatusBuilder.build()
is called, a parental status will be created in this ad group. When VideoParentalStatusBuilder.exclude()
is called, an excluded parental status will be created in this ad group. Return values:
newPlacementBuilder()
Returns a new placement builder for this ad group. When VideoPlacementBuilder.build()
is called, a placement will be created in this ad group. When VideoPlacementBuilder.exclude()
is called, an excluded placement will be created in this ad group. Return values:
newTopicBuilder()
Returns a new video topic builder for this ad group. When VideoTopicBuilder.build()
is called, a video topic will be created in this ad group. When VideoTopicBuilder.exclude()
is called, an excluded video topic will be created in this ad group. Return values:
newYouTubeChannelBuilder()
Returns a new YouTube channel builder for this ad group. When VideoYouTubeChannelBuilder.build()
is called, a YouTube channel will be created in this ad group. When VideoYouTubeChannelBuilder.exclude()
is called, an excluded YouTube channel will be created in this ad group. Return values:
newYouTubeVideoBuilder()
Returns a new YouTube video builder for this ad group. When VideoYouTubeVideoBuilder.build()
is called, a YouTube video will be created in this ad group. When VideoYouTubeVideoBuilder.exclude()
is called, an excluded YouTube video will be created in this ad group. Return values:
parentalStatuses()
Returns the selector of all parental statuses in the ad group. Return values:
placements()
Returns the selector of all placements in the ad group. Return values:
topics()
Returns the selector of all topics in the ad group. Return values:
youTubeChannels()
Returns the selector of all YouTube channels in the ad group. Return values:
youTubeVideos()
Returns the selector of all YouTube videos in the ad group. 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-09-03 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-09-03 UTC."],[[["\u003cp\u003eThis guide explains how to use Google Ads scripts to manage video targeting criteria within ad groups.\u003c/p\u003e\n"],["\u003cp\u003eYou can access and modify existing targeting criteria such as keywords, ages, audiences, genders, placements, topics, YouTube channels, and videos.\u003c/p\u003e\n"],["\u003cp\u003eUtilize script builders to create new targeting criteria or exclude unwanted ones for various criteria types.\u003c/p\u003e\n"],["\u003cp\u003eThe provided methods enable programmatic management of video targeting settings, offering flexibility in campaign optimization.\u003c/p\u003e\n"],["\u003cp\u003eAccess and iterate through existing or excluded targeting criteria with dedicated methods for each type.\u003c/p\u003e\n"]]],[],null,[]]