AdsApp.NegativeKeyword
Stay organized with collections
Save and categorize content based on your preferences.
AI-generated Key Takeaways
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, like getAdGroup(), getBaseAdGroup(), getBaseCampaign(), getCampaign(), getShoppingAdGroup(), and getShoppingCampaign(), return null under specific conditions.
Represents a Google Ads negative keyword.
Negative keywords can exist either at the ad group level or the campaign
level.
Returns the AdGroup to which the negative
keyword belongs. This will return null for campaign-level
negative keywords and negative keywords which do not belong to a search or
display ad group.
The AdGroup to which the negative
keyword belongs.
getBaseAdGroup()
Returns the base AdGroup to which the
negative keyword belongs. This will return null for
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 or
null if 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 a String, 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 the ShoppingAdGroup to
which the negative keyword belongs. This will return null for
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-10-16 UTC."],[],[]]