Google Ads: add negative keywords
add_negative_keywordsAdds negative keywords to a campaign to block irrelevant traffic.
Negative keywords prevent your ads from showing for specific search terms.
remove_negative_keywords takes them back out, given the same keywords.
Args:
customer_id: The Google Ads customer ID (numbers only, no hyphens).
campaign_id: The ID of the campaign to add negative keywords to.
keywords: List of keyword objects, each with:
- text: The keyword text (e.g., "free LMS").
- match_type: One of: EXACT, PHRASE, BROAD. Default: BROAD.
Returns:
Dictionary with created negative keyword resource names.Tools revision: 5c9bea8f.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keywords | Yes | ||
| campaign_id | Yes | ||
| customer_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |