AdsApp.NegativeKeywordStay organized with collectionsSave and categorize content based on your preferences.
Page Summary
The content describes a Google Ads negative keyword, which can exist at either the ad group or campaign level.
Methods are provided to retrieve information about the negative keyword, including its associated ad group, base ad group, base campaign, campaign, campaign type, entity type, match type, shopping ad group, shopping campaign, and text.
There is also a method to remove the negative keyword.
Some methods, likegetAdGroup(),getBaseAdGroup(),getBaseCampaign(),getCampaign(),getShoppingAdGroup(), andgetShoppingCampaign(), returnnullunder specific conditions.
Represents a Google Ads negative keyword.
Negative keywords can exist either at the ad group level or the campaign
level.
Returns theAdGroupto which the negative
keyword belongs. This will returnnullfor campaign-level
negative keywords and negative keywords which do not belong to a search or
display ad group.
Returns the baseAdGroupto which the
negative keyword belongs. This will returnnullfor
campaign-level negative keywords and negative keywords which do not belong
to a search or display ad group.
The campaign to which this negative keyword belongs ornullif it does
not belong to a search or display campaign.
getCampaignType()
Returns the campaign type. Possible return values:
SEARCH_OR_DISPLAY, VIDEO, SHOPPING
Return values:
Type
Description
String
Video campaign type.
getEntityType()
Returns the type of this entity as aString, in this case,"NegativeKeyword".
Return values:
Type
Description
String
Type of this entity:"NegativeKeyword".
getMatchType()
Returns the match type of the negative keyword. Possible values:BROAD, PHRASE, EXACT.
Return values:
Type
Description
String
The match type of the negative keyword.
getShoppingAdGroup()
Returns theShoppingAdGroupto
which the negative keyword belongs. This will returnnullfor
campaign-level negative keywords and negative keywords which do not belong
to a shopping ad group.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-12-03 UTC."],[],[]]