Google Ads: remove negative keywords
remove_negative_keywordsTakes negative keywords back out of a campaign.
The inverse of add_negative_keywords: pass the same keywords (text and
match type). The campaign can show for those searches again at once,
which can raise what a running campaign spends. Only the campaign's
negative keywords are looked at: a keyword it bids on, an excluded
location or any other setting is never changed.
Text is matched ignoring case and extra spaces, and the match type must
match too. A keyword the campaign does not have as a negative is
reported in not_found and nothing is done for it; when none is found,
nothing is sent.
Args:
customer_id: The Google Ads customer ID (numbers only, no hyphens).
campaign_id: The ID of the campaign (digits only).
keywords: List of keyword objects, each with:
- text: The keyword text (e.g., "free LMS").
- match_type: One of: EXACT, PHRASE, BROAD. Default: BROAD,
as in add_negative_keywords.
Returns:
Dictionary with removed (text, match_type and resource_name of each
negative keyword taken out), not_found (each keyword the campaign
did not have) and keywords_removed.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 |