Free Google Ads script · Keywords

Keyword isolation

Create exact-match negatives that reduce overlap between Search campaigns and ad groups, with a manifest and dry-run safeguards.

ModeDry run by default; can add and remove managed negatives
Suggested frequencyAfter structural changes, then weekly

What it is for

A faster check.
Not automatic judgement.

Keyword overlap can make closely related campaigns and ad groups compete for the same query. This script builds exact-match isolation negatives, records what it created in a manifest and can safely remove only its own obsolete entries on later runs.

What the script does
  • Builds campaign-level and ad-group-level exact negatives
  • Skips a negative when the target already contains the positive keyword
  • Tracks script-managed negatives in a Google Sheet manifest
  • Starts in dry-run mode and limits changes per run
Before the first run
  1. 01Keep DRY_RUN enabled for the first run
  2. 02Choose campaign and status filters
  3. 03Review the proposed additions and safety skips
  4. 04Use a dedicated manifest Sheet before live sync
Important

Isolation is not appropriate for every account structure. Review close variants, match behaviour and intentional overlap before switching off dry run.

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.

Copyable source

Keyword isolation

Download .js ↓
Loading script…

How to install a Google Ads script

Copy. Configure.
Preview. Schedule.

  1. Open the correct Google Ads account and go to Tools → Bulk actions → Scripts.
  2. Create a new script, remove the example code and paste this script.
  3. Edit the CONFIG block. Never leave placeholder emails, budgets or thresholds unchanged.
  4. Authorize the script, select Preview and inspect its logs or report.
  5. 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 after structural changes, then weekly. 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.

When can exact-match isolation help?

It can help when a deliberate account structure assigns distinct search themes to different campaigns or ad groups and overlap makes reporting or routing unclear. It can also harm delivery if the proposed negative blocks a legitimate query from the best landing page. Review close variants, existing positives, shared negatives and intentional overlap before approving any proposed addition. A neat structure is not an end in itself; the question is whether a buyer reaches the most relevant ad and page.

Why keep the manifest and dry run?

The manifest records negatives created by this script so a later run can identify and remove only its own obsolete entries. Without that ownership record, a cleanup could touch a human-managed exclusion. The first run should show proposed additions and safety skips while DRY_RUN remains enabled. Check campaign filters, row counts and the dedicated Sheet before enabling writes. After any live change, inspect the native negative list and search-term traffic to make sure the account still covers valuable demand.

WhatsApp us