AdsApp.​ExcludedVideoYouTubeVideo

Represents a Google Ads excluded YouTube Video in a Video Campaign.

Methods:

MemberTypeDescription
getEntityType String Returns the type of this entity as a String, in this case, "ExcludedVideoYouTubeVideo".
getId long Returns the ID of the excluded video YouTube video.
getVideoAdGroup AdsApp.VideoAdGroup Returns the ad group to which this excluded video YouTube video belongs.
getVideoCampaign AdsApp.VideoCampaign Returns the campaign to which this excluded video YouTube video belongs.
getVideoId String Returns the YouTube video ID.
remove void Removes the excluded video YouTube video.

getEntityType()

Returns the type of this entity as a String, in this case, "ExcludedVideoYouTubeVideo".

Return values:

TypeDescription
String Type of this entity: "ExcludedVideoYouTubeVideo".

getId()

Returns the ID of the excluded video YouTube video.

Return values:

TypeDescription
long The ID of the excluded video YouTube video.

getVideoAdGroup()

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

Return values:

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

getVideoCampaign()

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

Return values:

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

getVideoId()

Returns the YouTube video ID.

Return values:

TypeDescription
String The YouTube video ID.

remove()

Removes the excluded video YouTube video.

Returns nothing.

Send feedback about...

Google Ads scripts
Google Ads scripts
Need help? Visit our support page.