AdsApp.​ExcludedYouTubeVideo

  • Represents an excluded YouTube video within Google Ads, providing methods to manage its association with ad groups and campaigns.

  • Allows retrieval of essential information such as the video ID, ad group, and campaign details through dedicated methods like getId(), getAdGroup(), and getCampaign().

  • Enables the removal of the excluded YouTube video using the remove() method.

  • Offers access to both base and regular ad group and campaign information through methods like getBaseAdGroup() and getCampaign(), respectively.

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.