AdsApp.​ExcludedDisplayKeyword

  • Represents an excluded display keyword within Google Ads, preventing ads from showing on specific websites or topics.

  • Provides methods to access and manage the excluded display keyword, such as retrieving its ID, text, and associated ad groups or campaigns.

  • Enables retrieval of the base ad group and base campaign associated with the excluded display keyword.

  • Includes a method to remove the excluded display keyword from your Google Ads account.

  • Offers functionality to get the resource name of the excluded display keyword for use in other Google Ads API calls.

Represents a Google Ads excluded display keyword.

Methods:

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

getAdGroup()

Returns the ad group to which this excluded display keyword belongs.

Return values:

TypeDescription
AdsApp.AdGroup The ad group to which this excluded display keyword belongs.

getBaseAdGroup()

Returns the base ad group to which this excluded display keyword belongs.

Return values:

TypeDescription
AdsApp.AdGroup The base ad group to which this excluded display keyword belongs.

getBaseCampaign()

Returns the base campaign to which this excluded display keyword belongs.

Return values:

TypeDescription
AdsApp.Campaign The base campaign to which this excluded display keyword belongs.

getCampaign()

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

getId()

Returns the ID of the excluded display keyword.

Return values:

TypeDescription
String The ID of the excluded display keyword.

getResourceName()

Returns the resource name of the excluded display keyword.

Return values:

TypeDescription
String The resource name of the excluded display keyword.

getText()

Returns the text of the excluded display keyword.

Return values:

TypeDescription
String The text of the excluded display keyword.

remove()

Removes the excluded display keyword.

Returns nothing.