Suppress Low Margin Query Spend via GAQL: Automated Guide
Learn how to suppress low margin query spend using GAQL. Automate gross margin bid cuts, build profit-driven negative keyword scripts, and cut wasted ad spend.
By AdTurbo Team · 2026-09-02
Top-line Return on Ad Spend (ROAS) is one of the most deceptive metrics in digital advertising. A Google Ads campaign reporting a 450% ROAS looks exceptional on a weekly executive dashboard, yet it can quietly incinerate business cash flow if the search queries driving those conversions convert disproportionately on products with razor-thin gross margins.
Standard Google Ads bidding algorithms optimize for conversion value (revenue) or conversion volume by default. They have zero native context regarding your Cost of Goods Sold (COGS), payment processing fees, pick-and-pack fulfillment expenses, or variable supplier costs unless explicitly fed that data. When broad match keywords or Shopping/Performance Max assets match customer intent to low-margin catalog items, your ad spend continues pacing at target ROAS targets that produce net-negative contribution margins.
To solve this, advanced performance marketers leverage the Google Ads Query Language (GAQL) via Google Ads Scripts or the Google Ads API to programmatically extract search query performance, calculate real-time gross profit per search term, and automatically suppress spend on low-margin queries. This guide provides an end-to-end blueprint to suppress low margin query spend gaql workflows, automate negative exclusions, and protect bottom-line profitability.
---
Why ROAS Blinds You to Low Gross-Margin Search Queries
Standard revenue-based optimization assumes that a dollar of revenue generated from Product A has the same enterprise value as a dollar of revenue generated from Product B. In enterprise ecommerce, direct-to-consumer (DTC), and wholesale lead generation, this assumption is fundamentally broken.
The Fundamental Flaw of Top-Line Revenue Metrics
Consider an ecommerce retailer selling two types of power equipment accessories:
• Product A (Replacement Carbide Blades): Sells for $100. COGS and shipping are $80. Gross margin is 20% ($20 gross profit).
• Product B (Synthetic Lubricant Kits): Sells for $100. COGS and shipping are $25. Gross margin is 75% ($75 gross profit).
If a broad search query such as "heavy duty cutting maintenance kit" costs $30 in ad spend across 15 clicks and generates one sale of Product A ($100 conversion value), Google Ads reports:
$\text{ROAS} = \frac{\$100},{\$30} = 333\%$
If the account target is 300% ROAS, Google's Smart Bidding treats this search query as a success and increases bids. However, the unit economics reveal a significant loss:
$\text{Gross Profit} = \$100 - \$80 = \$20$
$\text{Net Contribution Margin} = \$20 - \$30 = -\$10$
Every time this search query converts on Product A, the business loses $10. If the exact same $30 ad spend resulted in a sale of Product B, gross profit would be $75, resulting in a net positive contribution of $+45 (a real profit margin of 45% after ad spend). By relying purely on Google Ads top-line reporting, you end up subsidizing volume traps. If you are struggling with escalating costs despite positive dashboard numbers, understanding why Google Ads is so expensive often starts with auditing this disconnect between margin and ROAS.
Volume Traps: High GMV, Negative Net Profit
Volume traps occur when an algorithm identifies high click volume and high conversion rates on products that carry aggressive market pricing precisely because they have no profit margin left. Competitors often price low-margin commodities aggressively to clear inventory or capture market share. When Smart Bidding detects high conversion rates on these low-margin queries, it funnels your budget toward them, cannibalizing budget that should have backed high-margin inventory.
How Cost of Goods Sold (COGS) Inverts Query Economics
When calculating true search term efficiency, gross profit contribution must replace conversion value. The core metric shifts to POAS (Profit on Ad Spend) or Gross Margin Return on Ad Spend (GMROAS):
$\text{GMROAS} = \frac{\text{Gross Margin Dollar Value}},{\text{Ad Spend}}$
If GMROAS is under $1.00$ ($100\%$), the query burns cash on every converted order. Automating the identification and suppression of these queries prevents Smart Bidding from spending on terms that hurt your balance sheet.
---
Understanding GAQL: The Engine for Search Query Data Extraction
To automate bid suppression and search term hygiene based on margins, you must interact directly with the Google Ads reporting layer using GAQL (Google Ads Query Language). GAQL is an SQL-like query language designed specifically for the Google Ads API and Google Ads Scripts.
+-------------------------------------------------------------------------+
| GAQL QUERY PIPELINE |
| |
| +-----------------------+ +--------------------------------+ |
| | searchtermview | | shoppingperformanceview | |
| | - Metrics (Spend) | | - Metrics (Revenue) | |
| | - Segments (Query) | | - Custom Labels (Margin Tier) | |
| +-----------+-----------+ +---------------+----------------+ |
| | | |
| +-----------------+------------------+ |
| | |
| v |
| +------------------------------+ |
| | Script Profit Calculation | |
| | GMROAS = (Rev Margin) / Ad | |
| +--------------+---------------+ |
| | |
| v |
| +------------------------------+ |
| | Suppression Engine | |
| | (Negative Keyword Creation) | |
| +------------------------------+ |
+-------------------------------------------------------------------------+
Core GAQL Grammar, Select Fields, and Clauses
GAQL structures queries around resource entities. Unlike relational databases that support arbitrary JOIN operations, GAQL operates on predefined views where related resource attributes are accessible directly within the select scope.
A typical GAQL query follows this fundamental syntax:
sql
SELECT
searchtermview.searchterm,
metrics.clicks,
metrics.costmicros,
metrics.conversions,
metrics.conversionsvalue
FROM searchtermview
WHERE segments.date DURING LAST30DAYS
AND metrics.costmicros 20000000
ORDER BY metrics.costmicros DESC
Key structural rules in GAQL:
• Resource Names: The FROM clause defines the main entity (e.g., searchtermview, shoppingperformanceview, campaign).
• Micros Conversion: Currency values such as metrics.costmicros are returned in micro-units ($1.00 = 1,000,000$ micros). To calculate actual currency, divide by $1,000,000$.
• Segment Filtering: You can segment data by date, device, conversion action, or product attributes, provided the segment is compatible with the selected resource view.
Querying Search Term Views vs. Shopping Performance Views
To manage margin-based suppression, you need to pull data from two primary resources depending on campaign type:
1. searchtermview: Used for Search campaigns and legacy Standard Shopping query auditing. It provides historical query-level performance metrics.
2. shoppingperformanceview: Used for Shopping and Performance Max reporting down to the product catalog level (segments.productitemid, segments.productcustomattribute0).
When isolating search terms from standard search campaigns where items are mapped directly to ad groups or specific landing pages, searchtermview provides direct granularity. Analyzing the Google Ads search terms report via GAQL allows you to bypass user-interface row limits and automate bulk actions instantly.
Selecting Metrics, Segments, and Resource Attributes
When writing a query to evaluate low-margin terms, you must select both cost metrics and attribution identifiers:
sql
SELECT
campaign.id,
campaign.name,
adgroup.id,
adgroup.name,
searchtermview.searchterm,
searchtermview.status,
metrics.costmicros,
metrics.conversions,
metrics.conversionsvalue,
metrics.averagecpc
FROM searchtermview
WHERE segments.date DURING LAST14DAYS
AND metrics.costmicros 50000000
AND campaign.advertisingchanneltype = 'SEARCH'
Managing GAQL API Limitations and Filtering Rules
GAQL does not permit arbitrary subqueries or HAVING clauses. All filtering must happen in the WHERE clause using static operators (=, !=, , <, IN, LIKE, REGEXPMATCH). Furthermore, calculating mathematical derivatives—such as dividing conversion value by COGS—must be executed inside the processing runtime (Google Ads Scripts JavaScript or your external Python/Node backend) after the GAQL payload is returned.
---
Architectural Blueprint: Connecting Product COGS to Search Query Spend
To suppress low-margin query spend automatically, your automation pipeline must bridge the gap between Google Ads search queries and your business margin database.
+-----------------------+ +-------------------------+
| Google Ads GAQL Query | | Merchant Margin Matrix |
| (Query, Cost, Value) | | (Product SKU / Margin%) |
+-----------+-----------+ +------------+------------+
| |
+----------------+---------------+
|
v
+-----------------------+
| Script Processing Node|
| - Calculate GMROAS |
| - Evaluate Thresholds |
+-----------+-----------+
|
v
+-----------------------+
| Execution Actions |
| - Add Negative Exact |
| - Email Margin Alert |
| - Cut Ad Group Bids |
+-----------------------+
Mapping Search Term Queries to Catalog Margin Tiers
Because standard Search campaigns often target general intent (e.g., "buy commercial air filter replacement"), you need a deterministic method to estimate the margin tier of the incoming query. There are three primary ways to structure this mapping:
1. Ad Group / Campaign Specific Margins: Assigning fixed gross margin assumptions per campaign or ad group based on the product line it targets (e.g., Campaign USSearchLawnMowers = 18% margin; Campaign USSearchLubePacks = 65% margin).
2. Conversion Action Webhooks: Tracking variable profit directly inside Google Ads by sending dynamic margin values as the conversionvalue using Google Ads Conversion Adjustments or custom cart tracking.
3. Google Merchant Center Custom Labels: In Shopping and Performance Max campaigns, assigning custom labels (customlabel0 = MarginTier1Low, customlabel1 = MarginTier4High) in your product feed.
Ingesting Custom Label Feed Data into Script Logic
In standard ecommerce setups, the simplest and most robust architecture uses campaign-level or ad group-level margin metadata stored in a Google Sheet or directly within the Campaign Name syntax (e.g., [MG:22] embedded in the campaign name indicating a 22% gross margin).
Defining the Gross Margin Profitability Threshold Equation
Before you automate gross margin bid cuts google ads, establish your mathematical suppression boundary.
Let:
• $C$ = Total Search Term Ad Spend (metrics.costmicros / 1000000)
• $V$ = Total Conversion Value (metrics.conversionsvalue)
• $M$ = Gross Margin Percentage ($0.00$ to $1.00$)
• $G$ = Gross Profit Generated $= V \times M$
• $\text{GMROAS} = \frac{G},{C}$
• $T{\text{min}}$ = Minimum acceptable Gross Margin ROAS threshold (typically $1.10$ to ensure a 10% net margin buffer after spend)
Suppression Condition:
$\text{If } C C{\text{threshold}} \quad \text{AND} \quad \left( V == 0 \quad \text{OR} \quad \frac{V \times M},{C} < T{\text{min}} \right) \implies \text{EXECUTE SUPPRESSION}$
If a search query exceeds your minimum test budget ($C{\text{threshold}}$, e.g., 1.5x your Target CPA) and fails to generate a GMROAS above $T{\text{min}}$, it must be added as a negative keyword.
---
Step-by-Step GAQL Script to Isolate and Suppress Unprofitable Queries
Below is a complete implementation using Google Ads Scripts. This script executes a GAQL query against the searchtermview, applies dynamic gross margin percentages based on campaign naming conventions, identifies unprofitable low-margin queries, and automatically adds them to a designated negative keyword list.
Phase 1: Querying the Search Term View via GAQL
We pull search terms with significant ad spend over the past 30 days that have generated impressions and cost.
Phase 2: Computing Contribution Margin per Search Term
We parse the campaign name to extract the gross margin tag (e.g., MARG25 means a 25% gross margin). If no tag is present, the script falls back to a default global margin (e.g., 30%).
Phase 3: Automated Negative Keyword Addition and Bid Suppression
Unprofitable terms are added as Negative Exact keywords ([search term]) directly to the campaign or to a shared Negative Keyword List to prevent traffic degradation across phrase and broad match variations.
Worked Code Example: JavaScript Script for Google Ads Scripts
javascript
/
• GAQL Gross Margin Search Term Suppressor
• AdTurbo Automation Framework
/
const CONFIG = {
DEFAULTMARGINPERCENT: 0.30, // 30% default margin if not found in campaign name
MINSPENDTHRESHOLD: 40.0, // Minimum spend in account currency before evaluating
MINGMROASTARGET: 1.15, // Must generate at least $1.15 gross profit per $1 spend
LOOKBACKWINDOW: 'LAST30DAYS',
DRYRUN: true, // Set to FALSE to actually apply negative keywords
NEGATIVELISTNAME: 'SuppressedLowMarginQueries'
};
function main() {
Logger.log('Starting GAQL Low-Margin Search Query Analysis...');
const negativeList = getOrCreateNegativeList(CONFIG.NEGATIVELISTNAME);
const lowMarginQueries = [];
// GAQL Query targeting searchtermview
const query =
SELECT
campaign.id,
campaign.name,
adgroup.id,
adgroup.name,
searchtermview.searchterm,
searchtermview.status,
metrics.costmicros,
metrics.conversions,
metrics.conversionsvalue
FROM searchtermview
WHERE segments.date DURING ${CONFIG.LOOKBACKWINDOW}
AND metrics.costmicros ${CONFIG.MINSPENDTHRESHOLD 1000000}
AND campaign.advertisingchanneltype = 'SEARCH'
AND campaign.status = 'ENABLED'
AND adgroup.status = 'ENABLED'
;
const report = AdsApp.search(query);
while (report.hasNext()) {
const row = report.next();
const campaignName = row.campaign.name;
const searchTerm = row.searchTermView.searchTerm;
const cost = row.metrics.costMicros / 1000000;
const conversionValue = row.metrics.conversionsValue || 0;
// Extract margin from campaign name format like: "SearchShoes[MARG:20]"
const marginPercent = extractMarginFromCampaign(campaignName) || CONFIG.DEFAULTMARGINPERCENT;
// Calculate Gross Profit and GMROAS
const grossProfit = conversionValue marginPercent;
const gmroas = cost 0 ? (grossProfit / cost) : 0;
if (gmroas < CONFIG.MINGMROASTARGET) {
lowMarginQueries.push({
campaignName: campaignName,
searchTerm: searchTerm,
cost: cost.toFixed(2),
conversionValue: conversionValue.toFixed(2),
grossProfit: grossProfit.toFixed(2),
gmroas: gmroas.toFixed(2),
marginApplied: (marginPercent 100).toFixed(0) + '%'
});
if (!CONFIG.DRYRUN) {
// Add exact match negative to the campaign
const campaignIterator = AdsApp.campaigns().withIds([row.campaign.id]).get();
if (campaignIterator.hasNext()) {
const camp = campaignIterator.next();
camp.createNegativeKeyword('[' + searchTerm + ']');
Logger.log(APPLIED NEGATIVE: [${searchTerm}] to Campaign: ${campaignName});
}
}
}
}
Logger.log(Identified ${lowMarginQueries.length} unprofitable search queries.);
// Output summary to execution log
for (let i = 0; i < Math.min(lowMarginQueries.length, 50); i++) {
const item = lowMarginQueries[i];
Logger.log([LOW MARGIN] Query: "${item.searchTerm}" | Spend: ${item.cost} | Rev: ${item.conversionValue} | GP: ${item.grossProfit} | GMROAS: ${item.gmroas} | Margin: ${item.marginApplied});
}
if (CONFIG.DRYRUN) {
Logger.log('DRY RUN COMPLETE: No negative keywords were modified. Set DRYRUN to false to apply.');
}
}
function extractMarginFromCampaign(campaignName) {
const match = campaignName.match(/\[MARG:(\d+)\]/i);
if (match && match[1]) {
return parseFloat(match[1]) / 100;
}
return null;
}
function getOrCreateNegativeList(listName) {
const listIterator = AdsApp.negativeKeywordLists().withCondition(Name = "${listName}").get();
if (listIterator.hasNext()) {
return listIterator.next();
}
if (!CONFIG.DRYRUN) {
const builder = AdsApp.newNegativeKeywordListBuilder();
const operation = builder.withName(listName).build();
return operation.getResult();
}
return null;
}
Implementing this gaql script pause low profit search terms automation safeguards your campaigns from burning money on low-margin inventory. For a deeper understanding of exclusion lists, review our detailed guide on how to find negative keywords.
---
Comparing Manual Bid Management vs. GAQL Automation vs. AI Optimization
Managing search query margins manually through spreadsheets is unsustainable for accounts spending more than a few thousand dollars per month. Here is how manual reviews, custom GAQL scripts, and autonomous AI systems compare.
| Capability / Metric | Manual Query Auditing | GAQL Custom Scripting | Autonomous AI Management (AdTurbo) |
| :--- | :--- | :--- | :--- |
| Execution Latency | Weekly / Monthly (Slow) | Daily / Hourly via Scheduled Triggers | Real-time continuous stream processing |
| COGS / Margin Ingestion | Manual spreadsheet VLOOKUP | Hardcoded Regex / Google Sheet sync | API-level dynamic ERP/PIM integration |
| Granularity | Campaign or Top 50 Terms | Search Term View (Account-wide) | Predictive sub-query, entity, & intent level |
| Human Overhead | 5–15 hours per week | 1–2 hours per month (Script upkeep) | Zero maintenance; automated policy guardrails |
| Broad Match Adaptability | Poor; high query lag | Medium; reactive after spend threshold | High; cross-cluster semantic suppression |
| Error Risk | High (Human data entry mistakes) | Medium (Script timeout, syntax shifts) | Low (Self-healing validation loops) |
| Standard Cost | Expensive human labor hours | Free (Developer setup required) | Flat $149/mo predictable SaaS model |
Operational Overhead and Scalability
Manual optimization collapses under scale. If an account manages 50,000 SKUs across multiple Performance Max and Search campaigns, human teams only analyze the top 1% of queries by volume. The "long tail" of low-margin search terms—queries that spend $10 to $30 each and never convert profitably—slips past human auditors unnoticed, quietly draining thousands of dollars per month.
Reaction Speed to Product Cost Fluctuations
Supplier prices and shipping surcharges fluctuate constantly. A product that operated at a 35% margin in Q1 might drop to 15% in Q3 due to freight rate increases. GAQL scripting dynamically handles these shifts if your script pulls live product margins from external sheets or campaign labels. If you want an unbiased analysis of where your account currently leaks cash, running a free Google Ads audit can pinpoint these margin discrepancies immediately.
Handling Search Query Intent Nuance and Broad Match Spillover
One risk of aggressive negative keyword scripts is over-suppression. For example, if a user searches for "wholesale commercial lubricant supply bulk", they may end up purchasing a low-margin accessory alongside high-margin core products. Scripts operate purely on historical single-term data. Modern AI platforms evaluate multi-item cart composition and lifetime value (LTV) before applying suppression logic.
---
Advanced Feed Segmentation and Custom Label Fallbacks
For Google Shopping and Performance Max campaigns, search terms cannot always be directly negated at the ad group level without impacting overall asset group delivery. In these environments, product catalog structuring via custom labels provides upstream spend suppression.
+-------------------------------------------------------------------------+
| MARGIN-BASED FEED SEGMENTATION |
| |
| +-------------------+ +-------------------+ |
| | Margin = 40% | | Margin < 20% | |
| | Custom Label: H | | Custom Label: L | |
| +---------+---------+ +---------+---------+ |
| | | |
| v v |
| +-------------------+ +-------------------+ |
| | Standard Shopping | | PMax / Low Target | |
| | Aggressive Bids | | Strict TargetROAS | |
| | Target ROAS 200% | | Target ROAS 500% | |
| +-------------------+ +-------------------+ |
+-------------------------------------------------------------------------+
Structuring Margin-Based Custom Labels (MarginHigh, MarginLow)
In your Google Merchant Center feed (configured via Feed Rules, supplemental feeds, or your ecommerce platform), calculate and assign margin tiers into customlabel0:
• customlabel0: Tier1MarginUnder15
• customlabel0: Tier2Margin15to30
• customlabel0: Tier3Margin30to50
• customlabel0: Tier4MarginOver50
By segmenting your catalog into dedicated campaigns based on these labels, you prevent low-margin products from consuming shared budgets.
Handling Performance Max vs. Standard Shopping Mechanics
Performance Max campaigns combine Search, Shopping, Display, YouTube, and Discovery into a single optimization pool. Standard negative keywords cannot be added inside the Performance Max UI without campaign-level negative lists applied via Google Support or account-level negative lists.
When running GAQL audits on Performance Max campaigns, you can query shoppingperformanceview to verify if low-margin items are hogging impressions:
sql
SELECT
segments.productitemid,
segments.producttitle,
segments.productcustomattribute0,
metrics.costmicros,
metrics.conversionsvalue
FROM shoppingperformanceview
WHERE segments.date DURING LAST30DAYS
AND segments.productcustomattribute0 = 'Tier1MarginUnder15'
AND metrics.costmicros 100000000
If products with a sub-15% margin consume more than 20% of your Performance Max budget while generating sub-par return, exclude those item IDs from the asset group product listing filters immediately.
Exclusions vs. Target ROAS Asset Group Reallocation
Instead of completely pausing low-margin products, move them into a dedicated "Low Margin - High Efficiency" campaign with a high Target ROAS constraint (e.g., 600% tROAS). This forces the Smart Bidding algorithm to bid conservatively, capturing conversions only when buyer purchase intent is exceptionally high.
---
Common Pitfalls, Edge Cases, and Troubleshooting GAQL Suppression
Automated suppression scripts can damage campaign performance if edge cases are unhandled. When deploying scripts to automate gross margin bid cuts google ads, account for these common execution pitfalls.
The Attribution Lag and Lookback Window Trap
Google Ads uses data-driven attribution with conversion lookback windows typically set to 30 days. If your average consideration cycle is 7 to 14 days, evaluating search query performance on a 7-day lookback window causes conversion truncation.
Day 0 Day 7 (Script Evaluates) Day 12 (Conversion Occurs)
--+--------------------------+---------------------------------+--
| | |
Click ($15 Spend) Spend Recorded: $15 Conversion Recorded ($120 Rev)
Conversions: 0 TRUE GMROAS: 2.40
STATUS: FALSELY SUPPRESSED!
If the script runs on Day 7, it sees $15 spend and $0 revenue, falsely classifying the query as unprofitable. Always set your LOOKBACKWINDOW in GAQL to at least $2\times$ your business's average Time-to-Convert lag, or add a buffer excluding the most recent 3 days using explicit date ranges (segments.date BETWEEN '2026-02-01' AND '2026-02-25').
False Positives on High-AOV Multi-Item Baskets
In retail, a customer searching for an inexpensive, low-margin accessory (e.g., a $5 phone adapter with 10% margin) might add a $1,200 high-margin workstation setup to their cart. Standard search query reports credit the entire $1,200 conversion value to the adapter search query.
If your GAQL script applies a flat 10% margin assumption across that ad group, it calculates $120 gross profit on a $5 ad spend, keeping the term active. While this outcome is profitable, the reverse can also occur: high-margin query clicks resulting in low-margin basket purchases. If precise margin attribution is critical, import true basket gross profit directly into Google Ads conversion tracking via offline conversion imports (OCI).
Managing Search Query Volume Thresholds and Statistical Significance
Never suppress a search query based on 2 or 3 clicks. Establish a minimum statistical significance floor before triggering exclusions:
• Minimum Clicks: $\ge 15-20$ clicks
• Minimum Spend: $\ge 1.5\times - 2\times$ the target CPA of the product category
• Always enforce DRYRUN = true for the first 14 days of running any new GAQL script to inspect logged actions before applying automated changes.
Script Execution Timeouts and API Quotas
Google Ads Scripts enforce a strict 30-minute maximum execution timeout per run (60 minutes for MCC-level scripts). If your account generates hundreds of thousands of search queries, iterating over single entities will timeout.
To optimize execution:
1. Use precise WHERE clauses in GAQL to filter out terms with low spend (metrics.costmicros 20000000).
2. Use bulk mutators or shared negative keyword lists (NegativeKeywordList) rather than adding keywords ad-group-by-ad-group.
3. For massive accounts, move the GAQL processing off Google Ads Scripts and onto an external cloud worker using the Google Ads REST/gRPC API.
---
Operational Checklist for Margin-Driven Search Suppression
Before enabling automated suppression on live campaigns, follow this verification checklist:
1. Tag Campaign Margins: Confirm all campaign names include explicit margin identifiers (e.g., [MARG:25]) or map campaigns in a central configuration sheet.
2. Verify Currency Micro Calculations: Double check that costmicros conversions divide by $1,000,000$ to avoid accidental mass-exclusions caused by unit scale errors.
3. Confirm Negative Match Type: Always apply suppressed queries as Exact Match Negatives ([search term]). Applying broad match negative exclusions will accidentally kill related high-margin queries.
4. Set Script Trigger Schedules: Schedule the script to run once weekly during off-peak hours (e.g., Sundays at 2:00 AM) to allow full 7-day conversion ingestion.
5. Maintain an Audit Log: Output all suppressed terms to a Google Sheet with timestamp, spend, revenue, calculated gross profit, and source campaign for review.
---
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)
• Why Is Google Ads So Expensive? 7 Reasons (And How to Pay Less)
---
Frequently Asked Questions
How does GAQL calculate gross margin if Google Ads only tracks revenue?
GAQL extracts raw metrics including ad spend, clicks, conversions, and conversion value (revenue). Your script runtime calculates gross margin by multiplying reported revenue by margin percentages mapped to specific campaigns, ad groups, or external product databases. The script then divides this gross margin figure by ad spend to determine your true Profit on Ad Spend (POAS).
Will suppressing low-margin search terms harm my Smart Bidding algorithms?
When implemented correctly using exact match negatives on terms with statistically significant spend, suppression protects Smart Bidding from spending on unprofitable queries. By eliminating low-margin volume traps, the bidding algorithm automatically redistributes your daily budget toward search terms and products with healthier profit margins.
Can I run margin-suppression scripts on Performance Max campaigns?
Because Performance Max does not support direct ad-group-level negative keyword insertion via standard scripts, search term suppression must be handled differently. You can apply account-level negative lists, contact Google Support to attach campaign-level negative lists, or use GAQL to audit shoppingperformanceview and exclude low-margin SKUs directly from your asset group listing groups.
What minimum spend threshold should I set before suppressing a query?
A reliable threshold is setting minimum spend to at least 1.5 to 2 times your target Cost Per Acquisition (CPA) with zero conversions, or a GMROAS below 1.0 after at least 15 to 20 clicks. Setting thresholds too low risks excluding queries that simply have not received enough statistical volume to convert.