AdsApp.​ExcludedVideoKeyword

  • Represents an excluded keyword within Google Ads Video Campaigns, preventing ads from showing on content related to that keyword.

  • Provides methods to access and manage the excluded keyword, including retrieving its ID, text, and associated campaign or ad group.

  • Allows for retrieval of the keyword's entity type and resource name for identification and management purposes.

  • Enables removal of the excluded keyword from the campaign or ad group using the remove() method.

Represents a Google Ads excluded Keyword in a Video Campaign.

Methods:

MemberTypeDescription
getEntityType() String Returns the type of this entity as a String, in this case, "ExcludedVideoKeyword".
getId() String Returns the ID of the excluded video keyword.
getResourceName() String Returns the resource name of the excluded video keyword.
getText() String Returns the text of the excluded video keyword.
getVideoAdGroup() AdsApp.VideoAdGroup Returns the ad group to which this excluded video keyword belongs, or null if the excluded video keyword is excluded at the campaign level.
getVideoCampaign() AdsApp.VideoCampaign Returns the campaign to which this excluded video keyword belongs.
remove() void Removes the excluded video keyword.

getEntityType()

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

Return values:

TypeDescription
String Type of this entity: "ExcludedVideoKeyword".

getId()

Returns the ID of the excluded video keyword.

Return values:

TypeDescription
String The ID of the excluded video keyword.

getResourceName()

Returns the resource name of the excluded video keyword.

Return values:

TypeDescription
String The resource name of the excluded video keyword.

getText()

Returns the text of the excluded video keyword.

Return values:

TypeDescription
String The text of the excluded video keyword.

getVideoAdGroup()

Returns the ad group to which this excluded video keyword belongs, or null if the excluded video keyword is excluded at the campaign level.

Return values:

TypeDescription
AdsApp.VideoAdGroup The ad group to which this excluded video keyword belongs or null.

getVideoCampaign()

Returns the campaign to which this excluded video keyword belongs.

Return values:

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

remove()

Removes the excluded video keyword.

Returns nothing.