AdsApp.​ExcludedYouTubeVideo

Represents a Google Ads excluded YouTube Video.

Methods:

MemberTypeDescription
getAdGroup() AdsApp.AdGroup Returns the ad group to which this excluded YouTube video belongs.
getBaseAdGroup() AdsApp.AdGroup Returns the base ad group to which this excluded YouTube video belongs.
getBaseCampaign() AdsApp.Campaign Returns the base campaign to which this excluded YouTube video belongs.
getCampaign() AdsApp.Campaign Returns the campaign to which this excluded YouTube video belongs or null if it does not belong to a search or display campaign.
getId() String Returns the ID of the excluded YouTube video.
getResourceName() String Returns the resource name of the excluded YouTube video.
getVideoId() String Returns the YouTube video ID.
remove() void Removes the excluded YouTube video.

getAdGroup()

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

Return values:

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

getBaseAdGroup()

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

Return values:

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

getBaseCampaign()

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

Return values:

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

getCampaign()

Returns the campaign to which this excluded YouTube video 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 video belongs or null if it does not belong to a search or display campaign.

getId()

Returns the ID of the excluded YouTube video.

Return values:

TypeDescription
String The ID of the excluded YouTube video.

getResourceName()

Returns the resource name of the excluded YouTube video.

Return values:

TypeDescription
String The resource name of the excluded YouTube video.

getVideoId()

Returns the YouTube video ID.

Return values:

TypeDescription
String The YouTube video ID.

remove()

Removes the excluded YouTube video.

Returns nothing.