AdsApp.ExcludedPlacementList
Stay organized with collections
Save and categorize content based on your preferences.
outlined_flag
Represents a list of placements where ads will be excluded from showing.
Provides methods to manage excluded placements such as adding, retrieving, and manipulating the list.
Allows users to retrieve and set the name, ID and resource name of the exclusion list.
Enables the retrieval of campaigns that utilize this excluded placement list and the specific placements being excluded.
Represents an excluded placement list.
Methods:
addExcludedPlacement(url)
Adds a
SharedExcludedPlacement to
an excluded placement list.
Returns nothing.
Arguments:
Name Type Description
url
String
The excluded placement URL.
addExcludedPlacements(urls)
Adds a list of
SharedExcludedPlacement
objects to an excluded placement list.
Returns nothing.
Arguments:
Name Type Description
urls
String[]
The excluded placement URL.
campaigns()
Returns a selector of all search and display campaigns this excluded
placement list has been applied to.
Return values:
Type Description
AdsApp.CampaignSelector
A selector of all search and display campaigns this excluded
placement list has been applied to.
excludedPlacements()
Returns a selector of the shared excluded placements in an excluded
placement list.
Return values:
getEntityType()
Returns the type of this entity as a
String
, in this case,
"ExcludedPlacementList"
.
Return values:
Type Description
String
Type of this entity: "ExcludedPlacementList"
.
getId()
Returns the ID of the excluded placement list.
Return values:
Type Description
String
The ID of the excluded placement list.
getName()
Returns the name of an excluded placement list.
Return values:
Type Description
String
The name of an excluded placement list.
getResourceName()
Returns the resource name of the excluded placement list.
Return values:
Type Description
String
The resource name of the excluded placement list.
setName(name)
Sets the name of an excluded placement list.
Returns nothing.
Arguments:
Name Type Description
name
String
The new name of the excluded placement list.
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-23 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-23 UTC."],[],[]]