AdsApp.ExcludedVideoYouTubeChannel
Stay organized with collections
Save and categorize content based on your preferences.
Represents a Google Ads excluded YouTube Channel in a Video Campaign.
Methods:
Member | Type | Description |
getChannelId() |
String |
Returns the YouTube channel ID. |
getEntityType() |
String |
Returns the type of this entity as a String , in this case,
"ExcludedVideoYouTubeChannel" . |
getId() |
String |
Returns the ID of the excluded video YouTube channel. |
getResourceName() |
String |
Returns the resource name of the excluded video YouTube channel. |
getVideoAdGroup() |
AdsApp.VideoAdGroup |
Returns the ad group to which this excluded video YouTube channel belongs, or
null if the
excluded video YouTube channel is excluded at the campaign level. |
getVideoCampaign() |
AdsApp.VideoCampaign |
Returns the campaign to which this excluded video YouTube channel belongs. |
remove() |
void |
Removes the excluded video YouTube channel. |
getChannelId()
Returns the YouTube channel ID.
Return values:
Type | Description |
String |
The YouTube channel ID. |
getEntityType()
Returns the type of this entity as a
String
, in this case,
"ExcludedVideoYouTubeChannel"
.
Return values:
Type | Description |
String |
Type of this entity: "ExcludedVideoYouTubeChannel" . |
getId()
Returns the ID of the excluded video YouTube channel.
Return values:
Type | Description |
String |
The ID of the excluded video YouTube channel. |
getResourceName()
Returns the resource name of the excluded video YouTube channel.
Return values:
Type | Description |
String |
The resource name of the excluded video YouTube channel. |
getVideoAdGroup()
Returns the ad group to which this excluded video YouTube channel belongs, or
null
if the
excluded video YouTube channel is excluded at the campaign level.
Return values:
Type | Description |
AdsApp.VideoAdGroup |
The ad group to which this excluded video YouTube channel belongs or
null . |
getVideoCampaign()
Returns the campaign to which this excluded video YouTube channel belongs.
Return values:
Type | Description |
AdsApp.VideoCampaign |
The campaign to which this excluded video YouTube channel belongs. |
remove()
Removes the excluded video YouTube channel.
Returns nothing.
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-08-20 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-08-20 UTC."],[[["\u003cp\u003eRepresents an excluded YouTube Channel within Google Ads Video Campaigns, preventing ads from showing on that channel.\u003c/p\u003e\n"],["\u003cp\u003eProvides methods to access and manage the excluded channel, including retrieving its ID, channel ID and associated campaign/ad group.\u003c/p\u003e\n"],["\u003cp\u003eAllows for removing the exclusion, enabling ads to potentially show on the channel again.\u003c/p\u003e\n"],["\u003cp\u003eCan be excluded at the campaign level or the ad group level for more granular control over ad targeting.\u003c/p\u003e\n"]]],[],null,["Represents a Google Ads excluded YouTube Channel in a Video Campaign.\n\nMethods:\n\n| Member | Type | Description |\n|-----------------------------------------|----------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [getChannelId](#getChannelId_0) | `String` | Returns the YouTube channel ID. |\n| [getEntityType](#getEntityType_0) | `String` | Returns the type of this entity as a `String`, in this case, `\"ExcludedVideoYouTubeChannel\"`. |\n| [getId](#getId_0) | `String` | Returns the ID of the excluded video YouTube channel. |\n| [getResourceName](#getResourceName_0) | `String` | Returns the resource name of the excluded video YouTube channel. |\n| [getVideoAdGroup](#getVideoAdGroup_0) | [AdsApp.VideoAdGroup](/google-ads/scripts/docs/reference/adsapp/adsapp_videoadgroup) | Returns the ad group to which this excluded video YouTube channel belongs, or `null` if the excluded video YouTube channel is excluded at the campaign level. |\n| [getVideoCampaign](#getVideoCampaign_0) | [AdsApp.VideoCampaign](/google-ads/scripts/docs/reference/adsapp/adsapp_videocampaign) | Returns the campaign to which this excluded video YouTube channel belongs. |\n| [remove](#remove_0) | `void` | Removes the excluded video YouTube channel. |\n\n`getChannelId()` Returns the YouTube channel ID.\n\nReturn values:\n\n| Type | Description |\n|----------|-------------------------|\n| `String` | The YouTube channel ID. |\n\n`getEntityType()` Returns the type of this entity as a `String`, in this case, `\"ExcludedVideoYouTubeChannel\"`.\n\nReturn values:\n\n| Type | Description |\n|----------|-------------------------------------------------------|\n| `String` | Type of this entity: `\"ExcludedVideoYouTubeChannel\"`. |\n\n`getId()` Returns the ID of the excluded video YouTube channel.\n\nReturn values:\n\n| Type | Description |\n|----------|-----------------------------------------------|\n| `String` | The ID of the excluded video YouTube channel. |\n\n`getResourceName()` Returns the resource name of the excluded video YouTube channel.\n\nReturn values:\n\n| Type | Description |\n|----------|----------------------------------------------------------|\n| `String` | The resource name of the excluded video YouTube channel. |\n\n`getVideoAdGroup()` Returns the ad group to which this excluded video YouTube channel belongs, or `null` if the excluded video YouTube channel is excluded at the campaign level.\n\nReturn values:\n\n| Type | Description |\n|--------------------------------------------------------------------------------------|------------------------------------------------------------------------------|\n| [AdsApp.VideoAdGroup](/google-ads/scripts/docs/reference/adsapp/adsapp_videoadgroup) | The ad group to which this excluded video YouTube channel belongs or `null`. |\n\n`getVideoCampaign()` Returns the campaign to which this excluded video YouTube channel belongs.\n\nReturn values:\n\n| Type | Description |\n|----------------------------------------------------------------------------------------|--------------------------------------------------------------------|\n| [AdsApp.VideoCampaign](/google-ads/scripts/docs/reference/adsapp/adsapp_videocampaign) | The campaign to which this excluded video YouTube channel belongs. |\n\n`remove()` Removes the excluded video YouTube channel.\n\nReturns nothing."]]