AdsApp.​ExcludedYouTubeChannel

Represents a Google Ads excluded YouTube Channel.

Methods:

MemberTypeDescription
getAdGroupAdsApp.AdGroupReturns the ad group to which this excluded YouTube channel belongs.
getBaseAdGroupAdsApp.AdGroupReturns the base ad group to which this excluded YouTube channel belongs.
getBaseCampaignAdsApp.CampaignReturns the base campaign to which this excluded YouTube channel belongs.
getCampaignAdsApp.CampaignReturns the campaign to which this excluded YouTube channel belongs or null if it does not belong to a search or display campaign.
getChannelIdStringReturns the YouTube channel ID.
getIdStringReturns the ID of the excluded YouTube channel.
getResourceNameStringReturns the resource name of the excluded YouTube channel.
removevoidRemoves the excluded YouTube channel.

getAdGroup()

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

Return values:

TypeDescription
AdsApp.AdGroupThe 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.AdGroupThe 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.CampaignThe 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.CampaignThe 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
StringThe YouTube channel ID.

getId()

Returns the ID of the excluded YouTube channel.

Return values:

TypeDescription
StringThe ID of the excluded YouTube channel.

getResourceName()

Returns the resource name of the excluded YouTube channel.

Return values:

TypeDescription
StringThe resource name of the excluded YouTube channel.

remove()

Removes the excluded YouTube channel.

Returns nothing.