Automate Pausing Non-Converting Keywords at Spend Limits
Learn how to build a custom GAQL script to automate pausing non-converting keywords at a $190 spend threshold in Google Ads. Cut wasted budget today.
By AdTurbo Team · 2026-12-02
Every dollar spent on clicks that fail to generate leads, bookings, or sales cuts directly into your campaign profitability. When managing medium to large Google Ads accounts, manually sifting through hundreds of ad groups to locate terms burning budget without converting is unsustainable. A single unchecked keyword spending $15 a day can quietly consume hundreds of dollars a month before someone notices.
Automating your account guardrails using Google Ads scripts powered by Google Ads Query Language (GAQL) eliminates this manual friction. Setting a strict rule—such as pausing keywords once they cross a $190 spend threshold with zero conversions—keeps ad spend disciplined and preserves capital for your top-performing targets.
In this technical guide, you will learn why specific spend thresholds matter, how modern GAQL scripts operate, how to implement production-ready JavaScript code inside your Google Ads account, and how advanced account operators handle automated account management without breaking smart bidding algorithms.
---
The Real Cost of Unchecked Keywords in Search Campaigns
Search intent shifts, auction dynamics fluctuate, and broad match expansion frequently pairs your ads with queries that generate clicks without yielding conversions. If you rely solely on monthly or bi-weekly manual reviews, wasteful spend compounds rapidly.
The Math Behind Runaway Search Terms
Consider an account with 40 active ad groups. Across those ad groups, say 15 experimental broad or phrase match keywords accumulate an average of 4 clicks per day at a cost-per-click (CPC) of $3.50:
• Daily spend per non-converting keyword: $14.00
• Total daily leakage across 15 keywords: $210.00
• Unchecked spend after 14 days: $2,940.00
If your target CPA is $60, that leak represents nearly 50 lost conversions. The problem is not that you targeted an ineffective term; testing keywords is an essential component of PPC discovery. The failure lies in the latency between when the keyword proved unprofitable and when a human manually intervened to pause it.
Why Broad Match Amplifies the Need for Automated Cutoffs
Google continues to push broad match paired with Smart Bidding as a default best practice. While this combination can discover valuable search volume, it also tests long-tail variations that may trigger high CPCs without landing page alignment.
Without an automated safety net to pause wasteful keywords script Google Ads workflows, these terms linger, eroding margins before machine learning algorithms recalibrate your bid distributions.
---
Why a $190 Spend Threshold? Determining Your Cutoff Point
Setting a hard cutoff threshold like $190 should never be arbitrary. It requires understanding your account's target Cost Per Acquisition (tCPA), your typical sales cycle, and your historical conversion rates.
| Business Model | Average Order / Deal Size | Target CPA (tCPA) | Recommended Non-Converting Threshold (2x–3x tCPA) | Threshold Rationale |
| :--- | :--- | :--- | :--- | :--- |
| B2B SaaS / Mid-Market | $1,200/yr ACV | $90.00 | $180.00 – $220.00 | Allows ~2x target CPA for statistical significance before pausing. |
| Local Home Services | $450.00 | $60.00 | $120.00 – $180.00 | Fast conversion turnaround; spending over $180 indicates strong intent mismatch. |
| Direct-to-Consumer E-commerce | $75.00 | $25.00 | $50.00 – $75.00 | Fast purchasing decisions; high click volume requires lower cutoff boundaries. |
| High-Ticket Consulting / Legal | $5,000+ | $350.00 | $700.00 – $1,050.00 | High CPCs ($30–$80/click) require larger absolute spend to evaluate 15–20 clicks. |
The 2x–3x Target CPA Multiplier
In standard statistical testing for paid search, a keyword should generally be allowed to spend 2x to 3x your target CPA before you declare it ineffective. If your target CPA is $65 to $80, a $190 spend threshold sits right in that sweet spot (approximately 2.4x to 2.9x tCPA).
If a keyword with a 5% expected conversion rate spends $190 at an average CPC of $3.80, it has accumulated 50 clicks without a single conversion:
$\text{Probability of 0 conversions} = (1 - 0.05)^{50} = (0.95)^{50} \approx 0.0769 \text{ (7.7% chance)}$
There is over a 92% statistical confidence that this keyword is converting below your baseline expectation. Letting it spend further without structural changes is mathematically irresponsible.
Factoring in Conversion Lag
Before you automate keyword pauses spend threshold script logic, evaluate your conversion delay. If your prospective customers take 14 days from their first click to submit a form or complete a checkout, setting a script to look at the last 7 days will pause viable keywords prematurely. Ensure your query window (e.g., LAST30DAYS or ALLTIME) accounts for your standard attribution sales window.
---
How GAQL Replaced Legacy AWQL in Modern Google Ads Scripts
When Google deprecated the legacy AdWords API and AdWords Query Language (AWQL) in favor of the Google Ads API, the scripting engine transitioned to Google Ads Query Language (GAQL). GAQL queries interact with the modern resource-based schema rather than older flat reports.
Key Differences Between AWQL and GAQL
• Resource-Attribute Syntax: Instead of querying Criteria and Cost from KEYWORDSPERFORMANCEREPORT, you now query keywordview and metrics.costmicros joined with adgroupcriterion.
• Micros Formatting: Cost data in GAQL is returned in micros ($1.00 = 1,000,000 micros). A threshold of $190 translates to 190000000 micros in raw API responses.
• Standardized Status Attributes: Criteria status attributes use explicit enum strings such as adgroupcriterion.status = 'ENABLED'.
Using a modern AdsApp.search() call executing a GAQL query is substantially faster than iterating through legacy script objects via AdsApp.keywords().withCondition(). It consumes fewer execution units, reducing script timeouts on large accounts.
For teams managing complex setups across multiple ad networks, understanding how these automated parameters interact with account structure is critical, as detailed in our guide on ppc campaign management.
---
The Complete GAQL Script to Pause Non-Converting Keywords at $190
Below is the production-ready Google Ads script. It queries all enabled keywords across search campaigns, identifies those with spend exceeding $190 (metrics.costmicros 190000000) and zero conversions within the specified timeframe, pauses them, applies a descriptive label, and logs the changes.
The Script Code
javascript
/
• Google Ads Script: Pause Non-Converting Keywords Over Spend Limit
• Engine: GAQL (Google Ads Query Language)
• Threshold: $190.00 (190,000,000 micros)
/
const CONFIG = {
SPENDTHRESHOLDDOLLARS: 190,
DATERANGE: 'LAST30DAYS', // Options: LAST30DAYS, LAST14DAYS, ALLTIME
LABELNAME: 'Paused by Script: $190 No Conv',
DRYRUN: false // Set to true to test without making actual changes
};
function main() {
ensureLabelExists(CONFIG.LABELNAME);
const spendThresholdMicros = CONFIG.SPENDTHRESHOLDDOLLARS 1000000;
// Construct the GAQL query
const query =
SELECT
adgroupcriterion.criterionid,
adgroupcriterion.keyword.text,
adgroupcriterion.keyword.matchtype,
adgroup.id,
adgroup.name,
campaign.id,
campaign.name,
metrics.costmicros,
metrics.clicks,
metrics.conversions
FROM keywordview
WHERE
campaign.status = 'ENABLED'
AND adgroup.status = 'ENABLED'
AND adgroupcriterion.status = 'ENABLED'
AND metrics.costmicros = ${spendThresholdMicros}
AND metrics.conversions = 0
AND segments.date DURING ${CONFIG.DATERANGE}
;
Logger.log(Executing GAQL Query for spend = ${CONFIG.SPENDTHRESHOLDDOLLARS} with 0 conversions...);
const searchResults = AdsApp.search(query);
let matchedCount = 0;
let pausedCount = 0;
while (searchResults.hasNext()) {
const row = searchResults.next();
const keywordId = row.adGroupCriterion.criterionId;
const keywordText = row.adGroupCriterion.keyword.text;
const matchType = row.adGroupCriterion.keyword.matchType;
const adGroupId = row.adGroup.id;
const campaignName = row.campaign.name;
const cost = (row.metrics.costMicros / 1000000).toFixed(2);
const clicks = row.metrics.clicks;
matchedCount++;
Logger.log(Found: "${keywordText}" (${matchType}) | Campaign: "${campaignName}" | Spend: ${cost} | Clicks: ${clicks});
if (!CONFIG.DRYRUN) {
// Locate the native Keyword object to apply mutations
const keywordIterator = AdsApp.keywords()
.withIds([[adGroupId, keywordId]])
.get();
if (keywordIterator.hasNext()) {
const keyword = keywordIterator.next();
keyword.pause();
keyword.applyLabel(CONFIG.LABELNAME);
pausedCount++;
Logger.log(-- PAUSED and LABELED: "${keywordText}");
}
} else {
Logger.log(-- [DRY RUN ACTIVE] Would have paused: "${keywordText}");
}
}
Logger.log('--------------------------------------------------');
Logger.log(Summary: ${matchedCount} keywords matched criteria.);
if (!CONFIG.DRYRUN) {
Logger.log(Successfully paused ${pausedCount} keywords.);
} else {
Logger.log('Dry run complete. No modifications were made.');
}
}
function ensureLabelExists(labelName) {
const labelIterator = AdsApp.labels()
.withCondition(name = '${labelName}')
.get();
if (!labelIterator.hasNext()) {
Logger.log(Creating label: "${labelName}"...);
AdsApp.createLabel(labelName, 'Keywords paused automatically due to zero conversions at spend threshold.', 'FF4444');
}
}
---
Step-by-Step Implementation Guide in Google Ads
To run this gaql script pause non converting keywords workflow, follow these exact setup steps inside your Google Ads dashboard.
Step 1: Navigate to the Scripts Dashboard
1. Sign in to your Google Ads account.
2. In the top navigation menu, select Tools and Settings (the wrench icon) or navigate to Admin / Tools in the left sidebar under the new UI.
3. Under Bulk Actions, click Scripts.
Step 2: Create and Authorize the Script
1. Click the blue + button to create a new script.
2. Name the script: Automation - Pause Non-Converting Keywords ($190 Threshold).
3. Paste the code snippet provided above into the central code editor pane, replacing any default placeholder text.
4. Click Authorize at the bottom right. A Google OAuth prompt will appear. Log in with the Google Ads manager account containing administrative privileges and grant the script permissions to view and modify your campaigns.
Step 3: Run a Preview (Dry Run)
1. Before running live changes, ensure DRYRUN: true is set in the CONFIG object.
2. Click Preview (located next to Save).
3. Check the Logs tab at the bottom of the screen. Review every keyword identified by the GAQL statement.
4. Verify that none of your essential brand names or core high-value keywords are misidentified due to temporary conversion tracking latency.
Step 4: Schedule the Execution Frequency
1. Once you confirm the logged output is accurate, set DRYRUN: false and click Save.
2. Return to the main Scripts dashboard list.
3. Under the Frequency column, set the schedule to Weekly (e.g., Mondays at 3:00 AM) or Daily, depending on your account velocity. For accounts spending under $50,000 monthly, a weekly cadence provides the ideal balance between safety and statistical significance.
Running regular scripts is a standard task outlined in our comprehensive google ads optimization checklist.
---
Advanced Configurations, Safety Guardrails, and Edge Cases
Executing blunt pause actions across an active ad account can occasionally yield unintended consequences if edge cases are ignored. Here is how to refine your automated keyword pauses spend threshold script to avoid disrupting high-value assets.
1. Brand Campaign Exclusions
Never automatically pause branded terms with generic scripts. If your brand campaign has a technical tracking outage or seasonal dip, you do not want your brand keyword switched off.
Add a campaign exclusion clause directly to your GAQL query string:
sql
AND campaign.name DOESNOTCONTAINIGNORECASE 'Brand'
2. Safeguarding Top-of-Funnel Assist Keywords
Some high-intent keywords drive substantial assisted conversion value through micro-conversions (e.g., downloading an ebook, signing up for a webinar) that ultimately close offline or via nurture sequences.
Before pausing terms that cross $190 without a macro-conversion, inspect multi-touch attribution. If you wish to exclude keywords that generated significant micro-actions, integrate secondary metric filters into your script:
sql
AND metrics.allconversions = 0
Using metrics.allconversions instead of metrics.conversions guarantees you will not pause keywords contributing indirect value.
3. Creating Automated Email Alerts Instead of Direct Pauses
If your marketing team prefers a review process before making hard account changes, swap the mutation call (keyword.pause()) with a reporting payload using MailApp.sendEmail():
javascript
const emailBody = The following keywords crossed $190 without converting:\n\n + alertList.join('\n');
MailApp.sendEmail('[email protected]', 'Alert: Non-Converting Keywords Over Threshold', emailBody);
4. Handling Target Impression Share and Smart Bidding Constraints
If your ad group runs on Target CPA or Maximize Conversions, pauses affect the bid algorithm's training sample. Pausing 30 keywords simultaneously within a single ad group can shock the Smart Bidding learning model, causing a temporary performance dip.
If you have numerous underperforming targets, stagger the script's execution or set a cap in the script to process no more than 5 keywords per ad group per run.
---
Beyond Scripting: Native Rules vs. GAQL vs. AI Management
Google Ads provides multiple paths to automate repetitive optimization tasks. Choosing between native Automated Rules, custom JavaScript scripts, or specialized machine learning engines depends on your scale and technical bandwidth.
| Capability / Feature | Google Ads Automated Rules | Custom GAQL Scripts | Modern AI PPC Platforms |
| :--- | :--- | :--- | :--- | :--- |
| Setup Difficulty | Low (No-code UI dropdowns) | Moderate (Requires JS & GAQL syntax) | Instant (Pre-configured models) |
| Lookback Flexibility | Limited presets (7, 14, 30 days) | Custom date segmentation via GAQL | Continuous real-time lookback |
| Query Granularity | Basic metrics only | Deep API access, segment filters | Multi-metric cross-factor intelligence |
| Maintenance Overhead | Low (Breaks rarely, but inflexible) | Moderate (Requires API version updates) | Zero (Maintained automatically) |
| Cross-Entity Awareness | Operates in isolation | Can label and email log changes | Coordinates keywords with copy & search terms |
For accounts requiring advanced multivariate optimization beyond what static scripts achieve, purpose-built tools provide dynamic oversight. For instance, AdTurbo runs non-stop budget and query evaluations across Search and Performance Max campaigns, pausing wasteful spend while adjusting for conversion latency automatically ($149/mo with a 7-day trial; a card is required for the trial).
If your agency manages multiple client accounts with distinct threshold requirements, scaling individual scripts across separate MCC containers often turns into an engineering burden. In those environments, implementing dedicated ppc management software ensures standard compliance across every ad account without breaking on script updates.
---
What to Do with Paused Keywords: Optimization and Next Steps
Pausing non-converting keywords protects your budget, but it does not fix underlying structural problems. Once the script has isolated these terms, execute a diagnostic post-mortem.
1. Audit the Search Terms Report
A keyword does not fail in a vacuum; the search queries it matched with caused the failure. Pull the underlying search queries for every keyword paused by the script. If a phrase match keyword spent $190 with zero conversions, you will often find that 80% of the spend went to 2 or 3 irrelevant sub-queries.
Add those specific queries as negative keywords, adjust the match type from Phrase to Exact, and unpause the keyword to test it under tighter query controls. For a complete blueprint on identifying wasted queries, read our search terms report guide.
2. Inspect Landing Page Experience and Mobile Speed
If high-intent Exact Match keywords spend $190 without converting, the root cause is rarely the keyword itself. Inspect your post-click journey:
• Landing Page Continuity: Does the headline match the search query's specific promise?
• Form Friction: Are you asking for too much information upfront?
• Technical Errors: Did an analytics tag drop, or is the page throwing 404/500 errors on mobile browsers?
If your conversion tracking broke, you risk pausing your most valuable revenue drivers. Run a comprehensive ppc audit checklist before writing off historically proven terms.
3. Build a Systemic Negative Keyword Library
When multiple non-converting keywords reveal a shared pattern (for example, queries containing "free", "cheap", "review", or "jobs"), harvest those stems immediately and deploy them across your shared account-level lists. Reviewing our curated negative keywords examples will give you a head start on terms to eliminate globally.
---
Related Guides
• How to Use the Google Ads Search Terms Report to Cut Wasted Spend
• Google Ads Optimization Checklist: 15 Things to Check Every Week
• PPC Audit Checklist: 12 Steps to Fix a Leaking Google Ads Account
---
Frequently Asked Questions
Why am I getting clicks but no conversions?
Clicks without conversions typically stem from poor search intent matching, landing page disconnects, or technical tracking failures. When your ad copy attracts broad queries that your page does not answer directly, users bounce quickly after consuming ad spend. Additionally, always verify that your conversion tracking tags are firing correctly inside Google Tag Manager before pausing campaigns.
How do I pause an ad campaign in Google Ads?
To pause an entire campaign, navigate to the Campaigns tab in your Google Ads dashboard, click the colored status circle directly next to the campaign name, and select Paused from the dropdown menu. You can also automate campaign-level pauses using Google Ads automated rules or GAQL scripts when total daily or monthly budget thresholds are breached.
Is Pmax or Search better for controlling wasted ad spend?
Standard Search campaigns offer far greater control over wasted spend because they allow precise match types, immediate search term negative additions, and custom GAQL scripting at the keyword level. While Performance Max leverages automated machine learning across all Google inventories, it provides less transparent search query reporting and does not support direct keyword-level pausing scripts.
How can I remove redundant keywords in Google Ads?
To clean up redundant keywords, sort your ad group keywords by match type and search query overlap, removing exact duplicates and broad terms that compete with existing exact match targets. Using Google Ads Recommendations can highlight duplicate keywords, but manually auditing internal competition or running automated deduplication scripts guarantees that you retain the keyword variations with the highest historical Quality Scores.