Google Ads: remove from negative keyword list
remove_from_negative_keyword_listTakes negative keywords back out of a shared negative keyword list.
The inverse of add_to_negative_keyword_list (and of the keywords
create_negative_keyword_list was given): pass the same text and match
type. Every campaign the list is attached to can show for those
searches again at once, which can raise what a running campaign spends.
Only a list of type NEGATIVE_KEYWORDS is accepted; the account-level
list is changed with remove_account_negatives. The list itself, and its
links to campaigns, are never removed.
Text is matched ignoring case and extra spaces, and the match type must
match too. A keyword the list does not hold 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).
shared_set_id: The ID of the negative keyword list (digits only).
keywords: List of keyword objects, each with:
- text: The keyword text (e.g., "jobs").
- match_type: One of: EXACT, PHRASE, BROAD. Default: BROAD,
as in add_to_negative_keyword_list.
Returns:
Dictionary with removed (text, match_type and resource_name of each
keyword taken out), not_found (each keyword the list did not hold)
and keywords_removed.Tools revision: 5c9bea8f.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keywords | Yes | ||
| customer_id | Yes | ||
| shared_set_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |