Automate Pausing Sub-1.10 POAS Google Shopping Products
Learn how to build a Google Ads script to automatically pause unprofitable Shopping product groups with sub-1.10 POAS. Protect your margins now.
By AdTurbo Team · 2026-11-28
Top-line revenue is vanity, but profit is sanity. If you have spent any significant budget running Standard Google Shopping or Performance Max retail campaigns, you have likely encountered this painful reality: an account showing a healthy 400% Return on Ad Spend (ROAS) can simultaneously burn net cash. Why? Because ROAS entirely ignores your cost of goods sold (COGS), shipping expenses, payment processing fees, and variable return rates.
To run an ecommerce business sustainably, leading practitioners look at POAS—Profit on Ad Spend.
When your POAS dips below 1.0, you are losing money on gross margin alone before factoring in fixed overhead. When it sits below 1.10, net margins are usually evaporated by shipping overages, chargebacks, and warehouse picking fees. In this technical walkthrough, you will learn how to write, implement, and schedule a custom Google Ads script that audits your Shopping campaigns, calculates true POAS at the product group level, and automatically excludes or pauses any SKU or subdivision yielding a POAS below 1.10.
---
Why ROAS Fails Retailers: The Mathematical Shift to POAS
Traditional PPC bid strategies optimize toward ROAS, calculated as Conversion Value / Cost. The fatal flaw of ROAS is that it treats all revenue equally. Selling a $1,000 product with a 10% gross margin generates the exact same reported ROAS in Google Ads as selling a $1,000 product with an 85% gross margin, provided ad spend is identical.
The Mechanics of POAS
POAS introduces unit economics directly into your advertising math:
$\text{POAS} = \frac{\text{Gross Profit Generated by Ads}},{\text{Ad Spend}}$
Where:
$\text{Gross Profit} = \text{Gross Revenue} - (\text{COGS} + \text{Variable Fulfillment} + \text{Transaction Fees})$
Consider this real-world breakdown across two competing product groups in a typical store:
| Metric | Product Group A (Consumer Tech) | Product Group B (Apparel Accessories) |
| :--- | :--- | :--- |
| Ad Spend | $1,000 | $1,000 |
| Gross Revenue | $4,500 | $2,800 |
| Reported ROAS | 4.50 (450%) | 2.80 (280%) |
| Cost of Goods Sold (COGS) | $3,600 (80%) | $700 (25%) |
| Fulfillment & Fees | $250 | $150 |
| Net Gross Profit | $650 | $1,950 |
| True POAS | 0.65 | 1.95 |
| Actual Commercial Outcome | -$350 Net Loss | +$950 Net Gain |
Under automated Smart Bidding without profit data, the bid engine naturally shifts budget toward Product Group A because its ROAS is 450%. Yet every single transaction on Product Group A actively destroys equity. Without a safety net like an automated script or a dedicated Google Ads automation platform, these margin leaks can drain thousands before your monthly financial close reveals them.
Why 1.10 POAS is the Danger Threshold
A POAS of 1.0 means you make exactly $1.00 in gross profit for every $1.00 paid to Google. It is dead breakeven on variable gross margin. Setting your automated exclusion threshold at 1.10 leaves a necessary 10% margin buffer to absorb customer returns, platform cancellation lags, and unallocated software or agency overhead. Anything falling under 1.10 is functionally unprofitable for nearly all retail enterprises.
---
The Problem with Performance Max and Black-Box Automation
Modern Google Ads accounts rely heavily on Performance Max (PMax). While PMax offers immense reach across Search, Shopping, YouTube, Display, and Discover, it compounds the profit-visibility problem.
PMax Hides Granular Bidding Levers
Performance Max bundles your shopping feeds into asset groups and listing groups. Unlike legacy Standard Shopping campaigns where you could bid at the individual ID level, PMax relies almost entirely on campaign-wide target ROAS (tROAS) constraints.
Industry veterans like Davey Stokkers and Andrew Lolk have long observed that Google's algorithmic incentives are fundamentally misaligned with merchant profitability. Google aims to maximize clearing price efficiency and inventory consumption across its network, whereas a merchant must maximize bottom-line profit dollars. Jack Felstead has frequently detailed how PMax uses high-margin, easy-converting brand search queries to subsidize money-losing generic Shopping placements, artificially inflating the aggregate campaign ROAS.
The Zombie SKU Phenomenon
In a catalog of 10,000 SKUs, Smart Bidding typically selects 500 to 1,000 "hero" items, allocating 80% of your budget to them. The remaining 9,000 items become "Zombie SKUs" that either get zero traffic or consume sporadic clicks with no statistical conversion significance.
When a few of these products finally accumulate 50 clicks and convert once with high COGS, Smart Bidding may take weeks to lower bids because it operates on a portfolio-wide distribution. By implementing a shopping campaign automated margin script, you reclaim deterministic control, forcing Google to pause bleeding product nodes the second their calculated POAS fails the viability test.
---
Prerequisites: Ingesting Margin Data into Google Ads
To run an auto pause low POAS shopping products script, Google Ads must either natively read your profit data or access an external database containing your profit-per-product metrics. You have two primary architectural approaches.
Option A: The Conversion Adjustment API (Cart-Level Profit)
This is the most technically robust solution. Whenever a transaction fires on your store (Shopify, BigCommerce, Magento, or WooCommerce), your backend calculates the true gross margin of that specific order basket. Using Google Ads Offline Conversion Adjustments, you send back the calculated profit as the conversion value instead of top-line revenue.
Advantage: Standard Google Ads columns like Conv. value / cost automatically become POAS out of the box.
Disadvantage: Requires backend engineering or specialized middleware.
Option B: Custom Label Margins via Google Merchant Center (GMC)
If you cannot pass cart-level profit, you can categorize products into margin tiers inside your Google Merchant Center supplemental feed using customlabel0 through customlabel4.
• customlabel0: MarginTierA (60%+ Gross Margin)
• customlabel0: MarginTierB (40%-59% Gross Margin)
• customlabel0: MarginTierC (20%-39% Gross Margin)
• customlabel0: MarginTierD (<20% Gross Margin)
This method allows you to subdivide your product groups by margin bracket. However, if your script needs to evaluate raw SKU-level performance across fluctuating seasonal discounts, pulling from a live Google Sheet that maps Item ID - Margin % is the most versatile setup for custom scripts.
Before running complex scripts, make sure your basic account health is sound by running through a systematic PPC audit checklist.
---
Step-by-Step Architecture: The POAS Auditing Script
Let us design the logic for our Google Ads script. The objective is to identify product groups or product partition nodes inside Standard Shopping campaigns that have accumulated significant spend without hitting our target profit thresholds.
+--------------------------------------------------------------+
| Google Ads Script Scheduler |
| (Runs Daily at 01:00 AM) |
+--------------------------------------------------------------+
|
v
+--------------------------------------------------------------+
| Query Product Groups: Cost, Conversion Value, Impressions |
| (Date Range: LAST30DAYS / 60DAYS) |
+--------------------------------------------------------------+
|
v
+--------------------------------------------------------------+
| Fetch Margin % from Config Map / Google Sheet by Product ID |
+--------------------------------------------------------------+
|
v
+--------------------------------------------------------------+
| Calculate POAS: (Conversion Value Gross Margin %) / Cost |
+--------------------------------------------------------------+
|
+------------------+------------------+
| |
POAS < 1.10 POAS = 1.10
AND Cost $Threshold OR Cost < $Threshold
| |
v v
+-----------------------+ +-----------------------+
| Exclude Product Group | | Retain Active Bid |
| (Set to Excluded) | | (Take No Action) |
+-----------------------+ +-----------------------+
| |
v v
+--------------------------------------------------------------+
| Output Actions to Google Sheets Audit Log + Email Alert |
+--------------------------------------------------------------+
Statistical Significance Safeguards
Never pause a product simply because it spent $8 without a sale. A sudden burst of traffic could falsely flag an otherwise profitable product. You must impose two foundational gates before the script can exclude a product group:
1. Spend Floor: The product must have spent at least 1.5x to 2x your target Cost Per Acquisition (e.g., spent $60).
2. Lookback Horizon: Use at least a 30-day or 60-day window to smooth out intra-week volatility and conversion latency (lag between click and purchase).
For accounts that need autonomous optimization without maintaining brittle script code, deploying a modern Google Ads AI agent like AdTurbo provides an automated infrastructure layer that natively balances margins and protects spend.
---
The Complete Script: Auto-Pause Low POAS Product Groups
Below is the complete, production-ready Google Ads JavaScript snippet designed for the current Google Ads Scripts engine (which supports ECMAScript 6+).
This script runs against your Standard Shopping Campaigns, evaluates child product groups subdivided by Item ID, calculates POAS using an external margin reference table or global default margin, logs unprofitable units, and sets their bid to exclude.
javascript
/
• Auto-Pause / Exclude Sub-1.10 POAS Shopping Product Groups
• Author: AdTurbo Engineering
• Purpose: Evaluates Shopping Product Group subdivisions and excludes those below 1.10 POAS
/
const CONFIG = {
MINCOST: 50.0, // Minimum spend before POAS evaluation kicks in
POASTHRESHOLD: 1.10, // Cutoff threshold: Pause anything under this number
DEFAULTMARGIN: 0.40, // Fallback gross margin (40%) if product margin not found
DATERANGE: 'LAST30DAYS', // Lookback window: 'LAST30DAYS' or 'LAST60DAYS'
CAMPAIGNNAMECONTAINS: 'Shopping', // Filter campaigns containing this string
NOTIFYEMAIL: '[email protected]',
SPREADSHEETURL: 'https://docs.google.com/spreadsheets/d/YOURSHEETIDHERE/edit',
DRYRUN: true // Set to FALSE to actually exclude product groups
};
function main() {
Logger.log('Starting Sub-1.10 POAS Shopping Audit...');
const marginMap = loadMarginData(CONFIG.SPREADSHEETURL);
const campaignIterator = AdsApp.shoppingCampaigns()
.withCondition(Name CONTAINSIGNORECASE "${CONFIG.CAMPAIGNNAMECONTAINS}")
.withCondition('Status = ENABLED')
.get();
const exclusions = [];
while (campaignIterator.hasNext()) {
const campaign = campaignIterator.next();
Logger.log(Evaluating Campaign: ${campaign.getName()});
const adGroupIterator = campaign.adGroups()
.withCondition('Status = ENABLED')
.get();
while (adGroupIterator.hasNext()) {
const adGroup = adGroupIterator.next();
const productGroupIterator = adGroup.productGroups()
.withCondition('IsExcluded = false')
.get();
while (productGroupIterator.hasNext()) {
const pg = productGroupIterator.next();
// Only evaluate leaf nodes with an Offer ID (Product Item ID)
if (pg.isOtherSubdivision() || !pg.getValue()) {
continue;
}
const stats = pg.getStatsFor(CONFIG.DATERANGE);
const cost = stats.getCost();
if (cost = CONFIG.MINCOST) {
const revenue = stats.getConversionValue();
const itemId = pg.getValue();
const marginRate = marginMap[itemId] || CONFIG.DEFAULTMARGIN;
const grossProfit = revenue marginRate;
const calculatedPoas = cost 0 ? (grossProfit / cost) : 0;
if (calculatedPoas < CONFIG.POASTHRESHOLD) {
exclusions.push({
campaign: campaign.getName(),
adGroup: adGroup.getName(),
itemId: itemId,
cost: cost.toFixed(2),
revenue: revenue.toFixed(2),
margin: (marginRate 100).toFixed(1) + '%',
poas: calculatedPoas.toFixed(2)
});
if (!CONFIG.DRYRUN) {
pg.exclude();
Logger.log([ACTION] Excluded Product ID: ${itemId} (POAS: ${calculatedPoas.toFixed(2)}));
} else {
Logger.log([DRY RUN] Would exclude Product ID: ${itemId} (POAS: ${calculatedPoas.toFixed(2)}));
}
}
}
}
}
}
logToSpreadsheet(exclusions);
sendAlertEmail(exclusions);
Logger.log('POAS Audit script completed.');
}
function loadMarginData(sheetUrl) {
const map = {};
if (!sheetUrl || sheetUrl.indexOf('YOURSHEETIDHERE') !== -1) {
Logger.log('Spreadsheet URL not configured. Relying on DEFAULTMARGIN.');
return map;
}
try {
const sheet = SpreadsheetApp.openByUrl(sheetUrl).getSheetByName('Margins');
const data = sheet.getDataRange().getValues();
// Assumes Col A = Item ID, Col B = Margin Decimal (e.g., 0.45 for 45%)
for (let i = 1; i < data.length; i++) {
const id = String(data[i],[0]).trim();
const margin = parseFloat(data[i],[1]);
if (id && !isNaN(margin)) {
map[id] = margin;
}
}
Logger.log(Loaded ${Object.keys(map).length} margin rows from sheet.);
} catch (e) {
Logger.log(Error reading margin sheet: ${e.message}. Using DEFAULTMARGIN.);
}
return map;
}
function logToSpreadsheet(exclusions) {
if (exclusions.length === 0 || CONFIG.SPREADSHEETURL.indexOf('YOURSHEETIDHERE') !== -1) return;
try {
const sheet = SpreadsheetApp.openByUrl(CONFIG.SPREADSHEETURL).getSheetByName('ExclusionLog');
if (!sheet) return;
const timestamp = new Date();
exclusions.forEach(item = {
sheet.appendRow([timestamp, item.campaign, item.adGroup, item.itemId, item.cost, item.revenue, item.margin, item.poas]);
});
} catch (e) {
Logger.log(Error writing log: ${e.message});
}
}
function sendAlertEmail(exclusions) {
if (exclusions.length === 0 || !CONFIG.NOTIFYEMAIL || CONFIG.NOTIFYEMAIL.indexOf('yourdomain') !== -1) return;
let body = The POAS optimization script identified ${exclusions.length} unprofitable product group(s).\n\n;
body += Dry Run Mode: ${CONFIG.DRYRUN}\n\n;
exclusions.slice(0, 50).forEach(e = {
body += Item ID: ${e.itemId} | POAS: ${e.poas} | Spend: ${e.cost} | Rev: ${e.revenue} | Margin: ${e.margin}\n;
});
if (exclusions.length 50) {
body += \n...and ${exclusions.length - 50} more. Check your sheet log.;
}
MailApp.sendEmail(CONFIG.NOTIFYEMAIL, [Google Ads Script] Sub-1.10 POAS Products Report, body);
}
---
Implementation & Deployment Guide
To ensure this script works without breaking your campaign structure, follow this installation roadmap.
Step 1: Set Up the Margin Mapping Google Sheet
Create a new Google Sheet. Set up two tabs:
1. Margins: Column A = Item ID, Column B = Margin (formatted as a decimal, e.g., 0.35 for 35%).
2. ExclusionLog: Leave blank; add headers in row 1: Timestamp, Campaign, Ad Group, Item ID, Cost, Revenue, Margin, POAS.
Ensure the Google account running the script has edit access to this Sheet.
Step 2: Paste and Authorize in Google Ads
1. Open your Google Ads dashboard.
2. Navigate to Tools and Settings Bulk Actions Scripts.
3. Click the blue + button to create a new script.
4. Replace the template code entirely with the code above.
5. Populate the CONFIG values:
• Set CONFIG.SPREADSHEETURL to your Sheet's full URL.
• Set CONFIG.NOTIFYEMAIL to your team alert address.
• Ensure CONFIG.DRYRUN = true for initial testing.
6. Click Authorize to grant the script access to Google Ads, Google Sheets, and MailApp.
Step 3: Run a Preview Audit
Click Preview in the bottom right corner. Check the script logs at the bottom. The output will show you every product evaluated, its calculated POAS, and whether it would have been excluded. Verify that the calculations match your internal accounting figures.
If you discover widespread attribution discrepancies, review your search term health using our guide on the Google Ads search terms report.
Step 4: Schedule the Script
Once satisfied with the test results:
1. Change CONFIG.DRYRUN = false.
2. Save the script.
3. In the Scripts overview list, find your new script and set the Frequency to Weekly (e.g., Mondays at 02:00 AM) or Daily if your catalog has high daily volume.
---
Advanced Strategy: Structuring Campaigns for Profit-Driven Bidding
Excluding sub-1.10 POAS items stops immediate losses, but what do you do with those products afterward? If an item generated $1,000 in revenue with $800 in spend at a 30% margin, its POAS was $300 / $800 = 0.37. It failed because the CPC was simply too high, not necessarily because the product has no commercial demand.
The Tiered Liquidation Strategy
Instead of abandoning excluded items forever, build a structured multi-tier funnel:
+-------------------------------------------------------------+
| Tier 1: High Margin / High POAS PMax |
| Target POAS 2.00 | Aggressive Smart Bidding |
+-------------------------------------------------------------+
|
(Fails POAS / Depleted Efficiency)
v
+-------------------------------------------------------------+
| Tier 2: Standard Shopping Catch-All |
| Target POAS 1.10 - 1.99 | Moderate Manual CPC |
+-------------------------------------------------------------+
|
(Script Excludes: POAS < 1.10)
v
+-------------------------------------------------------------+
| Tier 3: Low-Bid Liquidation Campaign |
| Max CPC: $0.05 - $0.15 | Excluded from Main PMax |
+-------------------------------------------------------------+
1. Core Champions (PMax / Standard Shopping): Products executing at POAS 1.50 receive priority budget allocation.
2. Low-Bid Clearing House: Products excluded by the script are automatically re-routed via Custom Labels (customlabel1 = 'clearance') into a manual CPC campaign with floor-level bids ($0.05 to $0.15). This captures cheap incremental intent without allowing Google's algorithms to overbid.
If your marketing team struggles with the engineering overhead of building and maintaining custom inventory scripts, modern solutions simplify the workload. With specialized PPC management software, profit-driven bid limits can be enforced natively without scripting or broken API endpoints.
---
Troubleshooting Common Script Pitfalls
When executing shopping scripts at scale, you may encounter specific platform edge cases. Here is how to fix them.
1. Script Execution Timeouts
Google Ads Scripts enforce a strict 30-minute runtime execution limit. If your account features 500,000 individual SKU product subdivisions across dozens of campaigns, the script will time out before completing the crawl.
The Fix: Batch your runs by campaign name. Change CONFIG.CAMPAIGNNAMECONTAINS to run separate copies of the script on different schedules (e.g., Script 1 handles Campaign Names with "Electronics", Script 2 handles "Apparel").
2. The Other/Everything Else Sub-Division Trap
In Standard Shopping, when you subdivide an ad group by Item ID, Google automatically generates an Everything else in 'All products' partition. If your script accidentally analyzes the "Everything else" node and excludes it, you will turn off traffic to new products that haven't gathered data yet.
The Fix: Notice our inclusion check in the code:
javascript
if (pg.isOtherSubdivision() || !pg.getValue()) {
continue;
}
This ensures the script completely ignores wildcard root nodes.
3. Revenue Lag and Delayed Attribution
E-commerce purchases rarely happen instantly on the first click. A customer may click an ad on Tuesday, browse, and return on Sunday via direct bookmark to finish the order. If your script runs daily on a strict LAST7DAYS window, it will penalize items that have clicks whose conversions have not yet been attributed.
The Fix: Never set your lookback window shorter than 30 days unless your catalog operates purely on impulsive low-ticket sales with a verified 24-hour conversion path. For broader advice on fixing lagging campaigns, check out our diagnostic guide on Google Ads not working.
4. Merchant Center Re-Sync Overwrites
If you structure product subdivisions manually in the interface, modifying feeds or changing your Merchant Center feed rule structures can occasionally reset ad group product group node IDs, causing script errors.
The Fix: Ensure your item identifiers (OfferId) match the exact alphanumeric string in your primary GMC feed, including capitalizations and prefix dashes.
---
Moving Beyond Scripts to Intelligent Automation
Custom JavaScript automation provides an effective, low-cost mechanism to guard against massive margin erosion. However, custom scripts have structural limitations:
• They are reactive, looking back at historical averages rather than dynamically forecasting conversion value.
• They struggle with cross-channel attribution, missing whether a Shopping click drove an offline store visit, lead form, or multi-device purchase.
• They require constant code maintenance as Google updates the Ads Script infrastructure and API versions.
This is where an automated optimization layer comes in. AdTurbo ($149/mo, 7-day trial) continuously monitors your campaign economics, tracking performance across all asset classes and making proactive, profit-first bidding adjustments. Rather than waiting for a monthly script run to exclude money-losing products, AdTurbo automates performance guardrails across Search, Shopping, and PMax campaigns, keeping spend focused on products that actually expand your bottom line.
---
Related Guides
• PPC Audit Checklist: 12 Steps to Fix a Leaking Google Ads Account
• How to Use the Google Ads Search Terms Report to Cut Wasted Spend
• Google Ads Not Working? 11 Things to Check Before You Panic
---
Frequently Asked Questions
Can this script be used directly inside Performance Max campaigns?
No, because Google Ads Scripts do not currently permit setting bid exclusions on individual Listing Group nodes inside Performance Max asset groups via the standard shoppingCampaigns() selector. For PMax campaigns, you must filter low-POAS products out at the Merchant Center feed level using Supplemental Feeds with custom labels (excludeddestination = Shoppingads).
Why set the threshold to 1.10 POAS instead of a flat 1.0?
A POAS of 1.0 represents nominal breakeven on gross profit alone, which fails to account for overhead, payment processor fees (like Stripe's 2.9% + $0.30), returns, and packaging materials. Establishing a minimum threshold of 1.10 provides an essential 10% cash buffer, ensuring that your advertising volume consistently supports broader operating profitability.
How often should I schedule this script to run?
For mid-sized catalogs with steady click volume, scheduling the script to run once a week on Sunday or Monday morning is ideal. Running it daily can lead to premature exclusions on lower-traffic products due to normal conversion lag, while running it only once a month leaves too much room for unprofitable ad spend to accumulate.