Script: Pause Non Converting Search Keywords at $210

Learn how to deploy a Google Ads script to pause non converting search keywords after $210 spend. Copy the tested JavaScript code and stop wasted spend.

By AdTurbo Team · 2026-12-04

Bleeding ad spend on search terms that rack up clicks without a single transaction is one of the most common ways Google Ads budgets get quietly drained. Whether you manage lead generation or ecommerce accounts, every advertiser eventually encounters keywords that absorb significant budget without generating results.

Setting a definitive threshold—such as pausing a search keyword after $210 in spend with zero conversions—protects your budget from runaway waste. While manual reviews in the search terms report guide are essential for broader strategy, manual monitoring cannot keep pace across hundreds of ad groups 24/7.

This guide provides a production-ready, fully configurable Google Ads script designed to inspect your search keywords, evaluate historical spend and conversion volume over a custom attribution window, apply clear labels, and pause underperformers automatically.

---

Why Automate Pausing Keywords at a Specific Spend Limit?

Google Ads relies heavily on automated Smart Bidding strategies like Target CPA and Target ROAS. While machine learning works well across broad datasets, it can sometimes allocate significant budget to low-intent variations before adjusting bids downward.

When a specific keyword crosses your target cost-per-acquisition (CPA) multiple without yielding a purchase, waiting for the algorithm to self-correct often wastes hundreds of dollars. Automating this rule using a script gives you deterministic guardrails.

The Math Behind the $210 Threshold

Why choose $210 as a cutoff? In PPC management, keyword evaluation thresholds should reflect statistical significance tied to your allowable CPA or average order value (AOV).

1. Target CPA Multiples: If your target CPA is $70, spending $210 represents exactly $3 \times \text{Target CPA}$. If an ad delivers zero conversions after three times your target cost, the likelihood of that keyword hitting your portfolio efficiency goal drops significantly.

2. Break-Even Margins: For an ecommerce store with an average order value of $150 and a 40% margin ($60 gross profit), a $210 loss on a single non-converting query wipes out the profit from nearly four successful sales.

3. Click Volume Statistical Confidence: At an average cost-per-click (CPC) of $3.50, a $210 spend limit yields 60 clicks. If your account baseline conversion rate is 3%, you would expect 1.8 conversions from 60 clicks. Zero conversions over 60 clicks suggests the keyword's actual conversion rate is likely well below 1% at a 90% confidence level.

If you are wondering why is Google Ads so expensive, leaving these bleeding terms unchecked is frequently the root cause.

---

The Complete JavaScript Code: Google Ads Script to Pause Zero-Purchase Keywords

Below is the complete Google Ads script. It uses the modern Google Ads Scripts API (AdsApp), runs safely within standard script execution quotas, applies an audit label before pausing, and provides execution logs.

javascript

/

• Google Ads Script: Pause Search Keywords After Specific Spend with Zero Purchases

• Description:

• Scans all enabled keywords in enabled Search campaigns. If cost exceeds

• the defined SPENDTHRESHOLD and conversions equal 0 over the specified

• DATERANGE, the script logs the keyword, applies an audit label, and pauses it.

/

var CONFIG = {

SPENDTHRESHOLD: 210.00, // Spend limit in your account currency

DATERANGE: 'ALLTIME', // Options: 'ALLTIME', 'LAST30DAYS', 'LAST90DAYS'

LABELNAME: 'Auto-Paused: $210 No Conv',

APPLYCHANGES: true, // Set to false for a Dry Run (safe testing)

CAMPAIGNNAMECONTAINS: '', // Optional: Filter for specific campaigns (leave empty for all)

CAMPAIGNTYPE: 'SEARCH' // Focus solely on Search campaigns

};

function main() {

ensureLabelExists(CONFIG.LABELNAME);

var keywordSelector = AdsApp.keywords()

.withCondition('Status = ENABLED')

.withCondition('CampaignStatus = ENABLED')

.withCondition('AdGroupStatus = ENABLED')

.withCondition('Cost ' + CONFIG.SPENDTHRESHOLD)

.withCondition('Conversions = 0');

if (CONFIG.DATERANGE !== 'ALLTIME') {

keywordSelector = keywordSelector.forDateRange(CONFIG.DATERANGE);

}

if (CONFIG.CAMPAIGNNAMECONTAINS !== '') {

keywordSelector = keywordSelector.withCondition(

"CampaignName CONTAINSIGNORECASE '" + CONFIG.CAMPAIGNNAMECONTAINS + "'"

);

}

var keywordIterator = keywordSelector.get();

var pausedCount = 0;

var totalWastedSpend = 0;

Logger.log('Starting scan for non-converting search keywords over

+ CONFIG.SPENDTHRESHOLD + '...');

while (keywordIterator.hasNext()) {

var keyword = keywordIterator.next();

var stats = (CONFIG.DATERANGE === 'ALLTIME') ? keyword.getStatsFor('ALLTIME') : keyword.getStatsFor(CONFIG.DATERANGE);

var cost = stats.getCost();

var clicks = stats.getClicks();

var campaignName = keyword.getCampaign().getName();

var adGroupName = keyword.getAdGroup().getName();

var keywordText = keyword.getText();

Logger.log(

'MATCH FOUND: [' + keywordText + '] in ' + campaignName + ' ' + adGroupName +

' | Spend:

Google Verified Fully Automated

Get More Leads & Sales From Google Ads — On Autopilot

AdTurbo is your AI Google Ads agent, built by top Google Ads agency owners. AdTurbo works tirelessly in the background managing your Google Ads to get more leads and sales, while you focus on running your business.

Sign up with Google

7-day free trial. No contracts. Cancel anytime.

+ cost.toFixed(2) + ' | Clicks: ' + clicks + ' | Conversions: 0'

);

totalWastedSpend += cost;

pausedCount++;

if (CONFIG.APPLYCHANGES) {

keyword.applyLabel(CONFIG.LABELNAME);

keyword.pause();

Logger.log('ACTION: Paused [' + keywordText + '] and applied label "' + CONFIG.LABELNAME + '".');

} else {

Logger.log('DRY RUN: Keyword [' + keywordText + '] qualified for pausing. No changes made.');

}

}

Logger.log('--- EXECUTION SUMMARY ---');

Logger.log('Keywords evaluated for pausing: ' + pausedCount);

Logger.log('Total non-converting spend flagged:

Google Verified Fully Automated

Get More Leads & Sales From Google Ads — On Autopilot

AdTurbo is your AI Google Ads agent, built by top Google Ads agency owners. AdTurbo works tirelessly in the background managing your Google Ads to get more leads and sales, while you focus on running your business.

Sign up with Google

7-day free trial. No contracts. Cancel anytime.

+ totalWastedSpend.toFixed(2));

if (!CONFIG.APPLYCHANGES) {

Logger.log('NOTE: Dry Run mode was active. Set APPLYCHANGES: true in CONFIG to apply updates.');

}

}

function ensureLabelExists(labelName) {

var labelIterator = AdsApp.labels().withCondition("Name = '" + labelName + "'").get();

if (!labelIterator.hasNext()) {

if (CONFIG.APPLYCHANGES) {

AdsApp.createLabel(labelName, 'Keywords auto-paused due to spending over cutoff with 0 conversions', 'E74C3C');

Logger.log('Created new label: ' + labelName);

} else {

Logger.log('Dry Run: Label "' + labelName + '" would be created.');

}

}

}

---

Step-by-Step Implementation Guide in Google Ads

Deploying custom JavaScript inside your Google Ads account takes less than five minutes. Follow these exact steps to load, test, and schedule the script:

Step 1: Access the Scripts Management Panel

1. Sign in to your Google Ads account.

2. In the top navigation bar or left sidebar (depending on your view), click on Tools and Settings (wrench icon) or Tools.

3. Under the Bulk Actions menu, select Scripts.

Step 2: Create and Name the Script

1. Click the blue + button to create a new script.

2. In the top-left title field, replace "Untitled Script" with a descriptive name, such as [Safety] Pause Keywords $210 No Conversions.

Step 3: Authorize the Script Environment

1. Google requires explicit OAuth permissions for scripts to review and adjust keyword statuses.

2. Click the Authorize button located in the bottom right corner.

3. Select your Google Ads account manager identity and click Allow when prompted.

Step 4: Paste and Configure the Code

1. Erase all default boilerplate code from the editor.

2. Copy the JavaScript provided in the section above and paste it directly into the editor.

3. Set APPLYCHANGES: false initially so you can run a dry run.

4. Confirm your SPENDTHRESHOLD (set to 210.00 by default).

Step 5: Run a Preview (Dry Run)

1. Click the Preview button at the bottom right of the screen.

2. Navigate to the Logs tab at the bottom to see what terms match your criteria.

3. Review the output to confirm you aren't unintentionally flagging keywords you want to keep running.

MATCH FOUND: [custom industrial widgets] in CoreSearch WidgetsExact | Spend: $243.18 | Clicks: 52 | Conversions: 0

DRY RUN: Keyword [custom industrial widgets] qualified for pausing. No changes made.

--- EXECUTION SUMMARY ---

Keywords evaluated for pausing: 3

Total non-converting spend flagged: $712.40

Step 6: Enable Live Changes and Schedule

1. Once you are comfortable with the preview logs, change APPLYCHANGES: false to APPLYCHANGES: true.

2. Click Save.

3. Return to the main Scripts dashboard list.

4. In the Frequency column, choose how often the script should run (e.g., Daily at 04:00 or Weekly every Monday morning).

---

Configuration Parameters and Customization Options

Every Google Ads account has different conversion volumes, attribution lag, and campaign naming conventions. You can adjust the CONFIG object to match your specific setup.

| Parameter | Default Value | Available Options | Purpose |

| :--- | :--- | :--- | :--- |

| SPENDTHRESHOLD | 210.00 | Any positive float | Maximum cumulative spend allowed with 0 conversions before the keyword is paused. |

| DATERANGE | 'ALLTIME' | 'LAST30DAYS', 'LAST90DAYS', 'ALLTIME' | The lookback window over which cost and conversion totals are calculated. |

| LABELNAME | 'Auto-Paused: $210 No Conv' | Custom string | The label assigned to keywords the script pauses, allowing easy filtering and review. |

| APPLYCHANGES | true | true, false | When set to false, the script simulates updates in dry run mode without modifying keyword statuses. |

| CAMPAIGNNAMECONTAINS| '' | Any campaign substring | Limits the script execution to campaigns whose names contain this text. |

Handling Date Ranges and Attribution Lag

One common risk with strict spend rules is ignoring conversion lag. If your sales cycle takes seven to ten days from initial ad click to checkout, using LAST7DAYS or LAST14DAYS can cause you to pause keywords that actually drove conversions that simply haven't registered yet.

For most search campaigns:

• Use ALLTIME if you want to eliminate chronically unprofitable terms across the entire account lifecycle.

• Use LAST90DAYS if you frequently refresh landing pages, pricing, or checkout funnels, giving previously paused keywords a fresh evaluation window.

If you want a broader look at weekly maintenance beyond spend thresholds, review our Google Ads optimization checklist.

---

Keywords vs. Search Terms: A Critical Script Distinction

When writing automation rules, it is vital to distinguish between Keywords and Search Terms.

+-------------------------------------------------------------+

| Search Account |

| |

| +-----------------------+ +-----------------------+ |

| | Keyword Level | | Search Term Level | |

| | (Targeting rules you | | (Actual user queries | |

| | add to ad groups) | | typed into Google) | |

| +-----------+-----------+ +-----------+-----------+ |

| | | |

| Can be: v Can be: v |

| - Enabled - Added as negative |

| - Paused (Script action) - Kept in review |

| - Removed - Monitored |

+-------------------------------------------------------------+

• Keywords are the targeting targets you manage inside ad groups (e.g., broad match leather boots, phrase match "leather work boots", or exact match [mens leather boots]).

• Search Terms are the actual queries typed into Google by real users that matched your keywords.

Why This Script Targets Keyword Entities

The script provided above changes the status of the Keyword entity (keyword.pause()). This completely stops the ad group from triggering ads for that specific target keyword.

If a single search term under a broad match keyword is responsible for the $210 waste while other queries matching that keyword convert profitably, you may want to add that specific search term as a negative keyword instead of pausing the entire keyword entity. For a step-by-step breakdown on identifying and isolating individual poor queries, see our tutorial on how to find negative keywords.

If you find yourself running extensive script networks across multiple accounts or clients, pairing scripts with comprehensive PPC management software helps maintain centralized visibility over all your rules.

---

Monitoring, Edge Cases, and Troubleshooting

Before running the script continuously on an automated daily schedule, account for these edge cases:

1. View-Through or Soft Secondary Conversions

The script evaluates the default Conversions column. If your account tracks low-intent actions as primary conversions (e.g., page views or newsletter signups), the script will see those as conversions and will not pause the keyword, even if it produced zero purchases.

• Solution: Verify your conversion actions under Goals Conversions Summary. Ensure only bottom-funnel purchases or verified leads are designated as Primary actions. Any secondary goals should be marked as Secondary so they do not artificially inflate the conversion metric.

2. High-Intent Brand or Core Terms

You may have core high-volume terms (such as your company brand name or flagship product name) where you want to maintain impression share regardless of temporary conversion dips.

• Solution: Exclude these campaigns using the CAMPAIGNNAMECONTAINS parameter, or add a condition to skip keywords tagged with an exclusion label:

javascript

// Add this condition to skip protected brand keywords

.withCondition("LabelNames CONTAINSNONE ['ProtectedCore']")

3. Execution Timeouts on Large Accounts

Google Ads Scripts enforce a strict 30-minute execution limit per run. If your account contains over 50,000 keywords, fetching all entities with ALLTIME date ranges can occasionally cause a timeout error.

• Solution: Narrow your filter by checking only active campaigns using specific naming structures, or split script runs by campaign groups.

---

Beyond Basic Scripts: Autonomous PPC Management

Google Ads scripts are powerful tools for basic binary logic: if cost $X and conversions = 0, pause keyword. However, modern campaign management often requires more nuanced decisions:

• What if a keyword drove 0 direct purchases, but assisted in 4 conversions across another campaign via first-click attribution?

• What if a broad match keyword generated zero sales this month, but 85% of its spend went to one irrelevant query that could simply be added to your negative keywords list?

• What if a keyword converts profitably during specific days of the week, but bleeds spend during off-hours?

While scripts execute static rules, tools like AdTurbo evaluate broader account context. AdTurbo reviews search intent, attribution paths, and cross-campaign performance before making bid adjustments or pausing queries. You can run automated audits and apply guardrails that prevent budget waste without accidentally turning off high-potential terms.

---

Related Guides

• How to Use the Google Ads Search Terms Report to Cut Wasted Spend

• How to Find Negative Keywords in Google Ads (Step by Step)

• Negative Keywords: 100+ Examples and Lists for Google Ads

---

Frequently Asked Questions

What happens to a keyword's historical quality score when paused by a script?

Pausing a keyword preserves all historical performance data, including impression history and Quality Score. If you choose to unpause the keyword later, its Quality Score will resume at the same baseline it held prior to being paused.

Can this script be adjusted for different spend limits per campaign?

Yes. You can modify the script to evaluate campaign names and set dynamic thresholds (e.g., $100 for discovery campaigns and $300 for high-AOV product campaigns). Alternatively, you can duplicate the script and assign unique campaign filters and spend thresholds to each version.

Will this script pause non-converting search terms inside Performance Max campaigns?

No. Performance Max campaigns do not use traditional keyword entities, so standard AdsApp.keywords() selectors cannot pause queries inside them. To manage search term waste in Performance Max, you must apply account-level negative keyword lists or campaign-level exclusions via Google support or account settings.

How do I undo the actions taken by the script if I paused keywords accidentally?

Because the script applies a dedicated label (such as Auto-Paused: $210 No Conv), you can easily filter your keywords by that label in the Google Ads UI. Select all filtered keywords, click Edit, choose Enable, and remove the label to restore their previous active status.

Google Verified Fully Automated

Get More Leads & Sales From Google Ads — On Autopilot

AdTurbo is your AI Google Ads agent, built by top Google Ads agency owners. AdTurbo works tirelessly in the background managing your Google Ads to get more leads and sales, while you focus on running your business.

Sign up with Google

7-day free trial. No contracts. Cancel anytime.