This is the legacy documentation for Google Ads scripts. Go to the current docs.

AdsApp.​ExcludedYouTubeChannel

Represents a Google Ads excluded YouTube Channel.

Methods:

MemberTypeDescription
getAdGroup AdsApp.AdGroup Returns the ad group to which this excluded YouTube channel belongs.
getBaseAdGroup AdsApp.AdGroup Returns the base ad group to which this excluded YouTube channel belongs.
getBaseCampaign AdsApp.Campaign Returns the base campaign to which this excluded YouTube channel belongs.
getCampaign AdsApp.Campaign Returns the campaign to which this excluded YouTube channel belongs or null if it does not belong to a search or display campaign.
getChannelId String Returns the YouTube channel ID.
getId long Returns the ID of the excluded YouTube channel.
remove void Removes the excluded YouTube channel.

getAdGroup()

Returns the ad group to which this excluded YouTube channel belongs.

Return values:

TypeDescription
AdsApp.AdGroup The ad group to which this excluded YouTube channel belongs.

getBaseAdGroup()

Returns the base ad group to which this excluded YouTube channel belongs.

Return values:

TypeDescription
AdsApp.AdGroup The base ad group to which this excluded YouTube channel belongs.

getBaseCampaign()

Returns the base campaign to which this excluded YouTube channel belongs.

Return values:

TypeDescription
AdsApp.Campaign The base campaign to which this excluded YouTube channel belongs.

getCampaign()

Returns the campaign to which this excluded YouTube channel belongs or null if it does not belong to a search or display campaign.

Return values:

TypeDescription
AdsApp.Campaign The campaign to which this excluded YouTube channel belongs or null if it does not belong to a search or display campaign.

getChannelId()

Returns the YouTube channel ID.

Return values:

TypeDescription
String The YouTube channel ID.

getId()

Returns the ID of the excluded YouTube channel.

Return values:

TypeDescription
long The ID of the excluded YouTube channel.

remove()

Removes the excluded YouTube channel.

Returns nothing.