AdsApp.AdGroupDisplay
Stay organized with collections
Save and categorize content based on your preferences.
Access to ad group-level display criteria. For example, to access all display
keywords in an ad group: var
displayKeywordIterator
=
adGroup
.
display
()
.
keywords
()
.
get
();
while
(
displayKeywordIterator
.
hasNext
())
{
var
displayKeyword
=
displayKeywordIterator
.
next
();
}
Methods:
audiences()
Returns the selector of all audiences in the ad group. Return values:
excludedAudiences()
Returns the selector of all excluded audiences in the ad group. Return values:
excludedKeywords()
Returns the selector of all excluded display keywords in the ad group. Return values:
excludedPlacements()
Returns the selector of all excluded website placements in the ad group.
Mobile app placements and mobile app category placements are not supported. 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:
keywords()
Returns the selector of all display keywords in the ad group. Return values:
newAudienceBuilder()
Returns a new audience builder for this ad group. When AudienceBuilder.build()
is
called, an audience will be created in this ad group. When AudienceBuilder.exclude()
is called, an excluded audience will be created in this ad group. Return values:
newKeywordBuilder()
Returns a new display keyword builder for this ad group. When DisplayKeywordBuilder.build()
is called, a display keyword will be created in this ad group. When DisplayKeywordBuilder.exclude()
is called, an excluded display keyword will be created in this ad group. Return values:
newPlacementBuilder()
Returns a new placement builder for this ad group. When PlacementBuilder.build()
is
called, a placement will be created in this ad group. When PlacementBuilder.exclude()
is called, an excluded placement will be created in this ad group. Return values:
newTopicBuilder()
Returns a new topic builder for this ad group. When TopicBuilder.build()
is called,
a topic will be created in this ad group. When TopicBuilder.exclude()
is
called, an excluded topic will be created in this ad group. Return values:
newYouTubeChannelBuilder()
Returns a new YouTube channel builder for this ad group. When YouTubeChannelBuilder.build()
is called, a YouTube channel will be created in this ad group. When YouTubeChannelBuilder.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 YouTubeVideoBuilder.build()
is called, a YouTube video will be created in this ad group. When YouTubeVideoBuilder.exclude()
is called, an excluded YouTube video will be created in this ad group. Return values:
placements()
Returns the selector of all website placements in the ad group. Mobile app
placements and mobile app category placements are not supported. 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 page outlines how to access and manage various ad group-level display criteria using Google Ads scripts.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to work with audiences, keywords, placements, topics, and YouTube channels/videos, including exclusions.\u003c/p\u003e\n"],["\u003cp\u003eYou can use these methods to retrieve existing criteria or build new ones within your ad groups.\u003c/p\u003e\n"],["\u003cp\u003eSelectors allow you to iterate through and access individual items within each criterion category.\u003c/p\u003e\n"],["\u003cp\u003eBuilders facilitate the creation of new display criteria or excluded criteria directly in your ad groups.\u003c/p\u003e\n"]]],[],null,[]]