AdsApp.​ExcludedVideoPlacement

  • Represents an excluded placement within Google Ads Video Campaigns, preventing ads from showing on specific YouTube videos or channels.

  • Provides methods to access and manage the excluded placement, including retrieving its ID, URL, and associated ad group or campaign.

  • Allows for identifying the excluded placement type as "ExcludedVideoPlacement" and retrieving its resource name for further operations.

  • Enables removing the excluded placement from the campaign or ad group using the remove() method.

Represents a Google Ads excluded Placement in a Video Campaign.

Methods:

MemberTypeDescription
getEntityType() String Returns the type of this entity as a String, in this case, "ExcludedVideoPlacement".
getId() String Returns the ID of the excluded video placement.
getResourceName() String Returns the resource name of the excluded video placement.
getUrl() String Returns the URL of the excluded placement.
getVideoAdGroup() AdsApp.VideoAdGroup Returns the ad group to which this excluded video placement belongs, or null if the excluded video placement is excluded at the campaign level.
getVideoCampaign() AdsApp.VideoCampaign Returns the campaign to which this excluded video placement belongs.
remove() void Removes the excluded video placement.

getEntityType()

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

Return values:

TypeDescription
String Type of this entity: "ExcludedVideoPlacement".

getId()

Returns the ID of the excluded video placement.

Return values:

TypeDescription
String The ID of the excluded video placement.

getResourceName()

Returns the resource name of the excluded video placement.

Return values:

TypeDescription
String The resource name of the excluded video placement.

getUrl()

Returns the URL of the excluded placement.

Return values:

TypeDescription
String The URL of the excluded placement.

getVideoAdGroup()

Returns the ad group to which this excluded video placement belongs, or null if the excluded video placement is excluded at the campaign level.

Return values:

TypeDescription
AdsApp.VideoAdGroup The ad group to which this excluded video placement belongs or null.

getVideoCampaign()

Returns the campaign to which this excluded video placement belongs.

Return values:

TypeDescription
AdsApp.VideoCampaign The campaign to which this excluded video placement belongs.

remove()

Removes the excluded video placement.

Returns nothing.