Google Ads: remove account-level negative keywords
remove_account_negativesTakes account-level negative keywords back out.
The inverse of add_account_negatives: pass the same text and match
type. Every campaign in the account can show for those searches again
at once, running ones included, which can raise what they spend. Only
keywords are taken out of the account-level list; the list and its link
to the account stay, even when it is left empty. An account with no
account-level list has nothing to take out: every keyword is reported
in not_found and nothing is created or sent.
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.
Args:
customer_id: The Google Ads customer ID (numbers only, no hyphens).
keywords: List of keyword objects, each with:
- text: The keyword text (e.g., "free").
- match_type: One of: EXACT, PHRASE, BROAD. Default: BROAD,
as in add_account_negatives.
Returns:
Dictionary with the account-level list's shared_set_id (null when
the account has none), removed (text, match_type and resource_name
of each keyword taken out), not_found and keywords_removed.Tools revision: 5c9bea8f.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keywords | Yes | ||
| customer_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |