AdsApp.​ExcludedPlacementList

  • 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:

MemberTypeDescription
addExcludedPlacement(url) void Adds a SharedExcludedPlacement to an excluded placement list.
addExcludedPlacements(urls) void Adds a list of SharedExcludedPlacement objects to an excluded placement list.
campaigns() AdsApp.CampaignSelector Returns a selector of all search and display campaigns this excluded placement list has been applied to.
excludedPlacements() AdsApp.SharedExcludedPlacementSelector Returns a selector of the shared excluded placements in an excluded placement list.
getEntityType() String Returns the type of this entity as a String, in this case, "ExcludedPlacementList".
getId() String Returns the ID of the excluded placement list.
getName() String Returns the name of an excluded placement list.
getResourceName() String Returns the resource name of the excluded placement list.
setName(name) void Sets the name of an excluded placement list.

addExcludedPlacement(url)

Adds a SharedExcludedPlacement to an excluded placement list.

Returns nothing.

Arguments:

NameTypeDescription
url String The excluded placement URL.

addExcludedPlacements(urls)

Adds a list of SharedExcludedPlacement objects to an excluded placement list.

Returns nothing.

Arguments:

NameTypeDescription
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:

TypeDescription
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:

TypeDescription
AdsApp.SharedExcludedPlacementSelector A selector of the shared excluded placements in an excluded placement list.

getEntityType()

Returns the type of this entity as a String, in this case, "ExcludedPlacementList".

Return values:

TypeDescription
String Type of this entity: "ExcludedPlacementList".

getId()

Returns the ID of the excluded placement list.

Return values:

TypeDescription
String The ID of the excluded placement list.

getName()

Returns the name of an excluded placement list.

Return values:

TypeDescription
String The name of an excluded placement list.

getResourceName()

Returns the resource name of the excluded placement list.

Return values:

TypeDescription
String The resource name of the excluded placement list.

setName(name)

Sets the name of an excluded placement list.

Returns nothing.

Arguments:

NameTypeDescription
name String The new name of the excluded placement list.