- Checks three levels of negative keywords in enabled Search campaigns
- Deduplicates repeated conflicts and keeps the first 20 Preview rows in private logs
- Can email only newly detected conflicts in batches after explicit opt-in
- Optional Sheet output creates a new snapshot tab without clearing an existing tab
- Does not remove or change negatives
Free Google Ads script · Keywords
Negative conflicts
Find campaign, ad group and shared-list negatives that may block active positive keywords.
What it is for
A faster check.
Not automatic judgement.
Negative keywords can quietly block the traffic an account is meant to capture. This script compares active positive keywords with campaign, ad-group and shared-list negatives, separates likely conflicts from low-risk exact cases and can remember successfully reported conflicts. Its default run logs a bounded review without email, Sheet or state writes.
- 01Keep DRY_RUN true and both output switches false for the first Google Ads Preview
- 02Confirm the intended single advertiser account, review the private logs and check that LockService is available before any live output
- 03Only after recipient approval, set a real recipient and deliberately enable email; a configured address alone does not send
- 04For Sheet output, supply a dedicated Google Sheet URL and enable it deliberately
- 05Review the conflict count, low-risk exact cases and any deferred email rows before scheduling
Preview and dry run suppress MailApp, SpreadsheetApp and PropertiesService writes; Google's Preview alone does not suppress those services. Live output requires LockService and fails closed if it is unavailable. Account-scoped history begins a fresh namespace, so the first opted-in email may report existing conflicts. Email delivery and state persistence are not atomic; a storage failure after a send can cause a duplicate on retry. The 6,000-conflict safety bound stops output in larger accounts. Match-type checks are literal-text heuristics, not a simulation of every served search. Verify the exact keyword, negative and query behaviour before removing anything.
Use this script at your own risk. Google Ads interfaces and reporting fields change. Always run Preview in the intended account and read the logs before enabling or scheduling it.
Loading script…How to install a Google Ads script
Copy. Configure.
Preview. Schedule.
- Open the correct Google Ads account and go to Tools → Bulk actions → Scripts.
- Create a new script, remove the example code and paste this script.
- Edit the CONFIG block. Never leave placeholder emails, budgets or thresholds unchanged.
- Authorize the script, select Preview and inspect its logs or report.
- Only schedule it after the preview matches the intended account and scope.
Read the output
What should you check before acting?
Keyword and search-term scripts are review aids, not instructions to add or remove terms automatically. The query someone typed, the matched keyword and a negative keyword can behave differently, especially with close variants and changes to Google Ads matching. Read the exact search intent and the landing page before making a decision. A search term with one conversion might be an opportunity, an accidental attribution or a poor-quality enquiry; a keyword with no recent conversions may still have an important role in a longer sales cycle. Confirm the account and campaign scope, inspect the proposed rows in Preview and compare them with the live keyword and negative lists. Record any approved changes and revisit the search terms afterward to ensure valuable traffic was not blocked. Where the script can write changes, retain the dry-run and change limits until the results have been reviewed by a person.
The suggested cadence for this script is manual preview first; schedule only after account validation. Treat that as a review starting point, then adapt it to the account's volume and the person available to check the output. Keep a note of the account, date window, first Preview result and the decision made from it. If the output is incomplete or the account cannot be confirmed, stop at review; do not infer that a missing warning means there is no problem. Compare any alert or export with the native Google Ads view before making an account change, and record who reviewed the result.
What is a likely conflict?
A negative at campaign, ad-group or shared-list level may prevent a positive keyword from serving for some searches. The script uses literal-text heuristics, so a flagged pair is not a complete simulation of Google's matching behaviour. Inspect the exact positive, negative, match type and query context in the intended account before removing anything. Some apparent overlaps are deliberate, such as routing a query to another campaign. The output separates lower-risk cases to help a reviewer prioritize, but no negative is changed automatically.
Why are the output switches important?
The default run logs a bounded dry-run review without sending email, creating a Sheet or writing history. A real recipient or Sheet URL should only be configured after a correct-account Preview has been checked. Optional email and snapshot output each require deliberate enablement; a first opted-in report can include old conflicts because its account-scoped history starts fresh. Keep the report private, inspect any deferred rows and remember that an email sent before a storage failure could be repeated on retry.