Get FREE Book - THE AI Playbook For PPC Pros
Book Image
The AI Playbook for PPC Pros
Now available
GET for FREE
BEST PMAX SCRIPTS

👉 If you landed on this page, then you’re looking for PMAX scripts to help elevate your PMAX campaigns and gain some much needed clarity on what’s going on in Google ads.

Google has handed back a little more visibility for Performance Max in recent times, but it’s still largely an AI black box where advertisers can’t really get much insight into the inner workings of what’s going on.

My Top 10 Performance Max Scripts

Thankfully, some very clever people out there have created scripts that help to give marketers some much needed clarity to PMAX campaigns.

Grab All My 350+ Scripts!

I've got a Google sheet with over 350+ Google ads scripts, INCLUDING all the PMAX scripts listed in this article.

👉 Get Access To My 350+ Scripts

OK, let’s get into the list of scripts….

1. Stews PMAX Script

pmax report

👉 What The Script Does

I've been working on this script and tinkering now for some time!

The goal is to offer complete PMAX transparency - channel splits, brand analysis, product tiers, waste identification - all with zero configuration

How it works:

  1. Grab the script here.
  2. Paste it directly in as a new Google ads script and hit "authorize" then run.
  3. It'll automatically create a new Google sheet for you! So go to your Google drive and check 'recents' 

What You'll Get (8 Sheets);

  1. Summary - Dashboard with health score, alerts, AI prompts
  2. Channel Split - Where money goes: Shopping vs Search vs Display vs Video
  3. Brand Analysis - Brand vs non-brand performance
  4. Product Tiers - Stars, Cash Cows, Question Marks, Dogs
  5. Asset Performance - Which creative assets are working
  6. Search Terms - What queries are triggering your PMax
  7. Audience Signals - Which audiences convert
  8. Waste Report - Zero-conversion spend by segment

👉 Who This Script Is For

  • Ecommerce advertisers who need visibility into where PMAX is actually spending
  • Agency teams managing multiple client accounts who need fast, repeatable audits
  • Solo PPC managers who don't have time to manually dig through Google's limited reporting
  • Anyone frustrated by PMAX's "trust me bro" approach to transparency

If you've ever looked at a PMAX campaign and thought "where the hell is my money going?" — this is for you.

Actionable Insights & Benefits;

See channel splits instantly — No more guessing whether you're funding YouTube views or actual Shopping clicks

Identify waste fast — The Waste Report shows exactly which segments are burning budget with zero conversions

Product-level clarity — Know which SKUs are stars and which are zombies eating your budget

Brand vs non-brand transparency — See if PMAX is just cannibalizing your branded traffic

Zero setup friction — Paste, authorize, run. No configuration, no spreadsheet templates to copy

AI-ready outputs — The Summary sheet includes prompts you can paste directly into Claude or ChatGPT for deeper analysis

Price: Free

2. Mike Rhodes' PMAX Script

mike rhodes pmax script channel spend allocation

👉 What The Script Does

👉 Reveals hidden channel spend (Shopping vs Video vs Display vs Search), visualizes spend trends over time, and automatically buckets products into performance categories.

This is probably the most well-known PMAX script in the PPC community. Mike Rhodes has been refining it for years, and it's specifically built for ecommerce.

Important: This one costs $199 — purchase here. I haven't personally bought or run this script, but based on Mike's detailed walkthrough video and community feedback, here's what it reportedly does.

How It Works

For the free version (v28):

  1. Go to github.com/mikerhodesideas/free and find v28
  2. Copy the template Google Sheet
  3. In Google Ads, go to Tools → Scripts → click +
  4. Paste the code, add your Google Sheet URL to the ss variable
  5. Authorize twice and run

For the paid version ($199):

  1. Purchase at mikerhodes.circle.so/checkout/latest-script
  2. Follow the setup instructions in the member area
  3. MCC version also available for agencies

👉 Who This Script Is Suited For:

Based on the documentation and community discussion:

  • Ecommerce advertisers with high-SKU accounts where manual product analysis is impossible
  • Performance marketers who need to justify tROAS changes based on actual channel spend
  • Media buyers auditing PMAX "incrementality" by seeing how much ROAS comes from existing brand searches
  • Creative strategists deciding whether to invest in video production based on how much PMAX actually uses the Video channel

Actionable Insights & Benefits:

tROAS manipulation — If spend shifts from Shopping into Display/Video, you can increase tROAS targets to force the algorithm to work harder

Asset prioritization — If Video spend is consistently below 2%, deprioritize video production

Brand exclusion decisions — If the script reveals high Brand spend percentage, you can justify excluding brand terms

Account restructuring — Move "Costly" products into their own campaign with higher ROAS targets

Price: $199 (one-time) — Get it here

Trending search categories PMAX script

👉 What The Script Does

This script by Nils Rooijmans tracks week-over-week shifts in search categories — essentially showing you how Google's AI is matching your assets to user queries over time.

👉 Compares search category data from the last 7 days against the prior 7 days, highlights significant increases and decreases, and sends email alerts when trends are detected.

How It Works

  1. Go to nilsrooijmans.com/google-ads-script-pmax-trending-search-categories
  2. Create a new Google Sheet (tip: type sheets.new in Chrome)
  3. In Google Ads, go to Tools → Scripts → click +
  4. Paste the script code
  5. Add your Google Sheet URL to line 18
  6. Add your email address to line 19
  7. Authorize and run
  8. Schedule to run weekly (Nils recommends Mondays at 6AM)

👉 Who This Script Is Suited For

Based on the documentation:

  • Search strategists using PMAX as a "discovery" tool to find new keyword opportunities for standard Search campaigns
  • Account managers who need to explain why PMAX performance shifted week-over-week
  • Inventory and content teams who can use rising search trends to influence landing page copy or product descriptions
  • Efficiency-focused buyers who want to spot irrelevant traffic early and apply account-level negatives

Actionable Insights & Benefits:

According to the documentation:

Keyword expansion — Rising search categories become candidates for broad-match keywords in standard Search campaigns

Negative keyword identification — If PMAX matches assets to irrelevant categories, update your account-level negative list

Creative alignment — If a specific category is trending, tailor headlines and images to match that intent

SEO/feed optimization — Bake popular search categories into Merchant Center feed descriptions

Price: Free — Get it here

4. Flowboost Labelizer

flowboost pmax labelizer script

👉 What This Script Does

The Flowboost Labelizer by Floris de Schrijver solves a specific problem: PMAX "bloats" click data through cheap Display and YouTube traffic, which makes traditional product segmentation unreliable. This script uses conversion rates to filter out that noise.

👉 Segments products into five performance categories (over-index, index, near-index, under-index, no-index) using CVR-adjusted logic that filters out noise from low-quality Display traffic.

How It Works

  1. Go to florisdeschrijver.com/flowboost-labelizer-google-ads-script
  2. Copy the template Google Sheet
  3. In Google Ads, go to Tools → Scripts → click +
  4. Paste the script code
  5. Update the SPREADSHEET_URL with your copied sheet
  6. Set your breakevenRoas (target ROAS minus 10-20%)
  7. Set your AverageCvr (average conversion rate in Shopping)
  8. Authorize and run daily
  9. Use output as a supplemental feed in Merchant Center — see instructions

👉 Who This Script Is Suited For

Based on the documentation:

  • PMAX practitioners whose product segmentation gets "shaken up" by inconsistent Display/Video traffic
  • Hybrid Shopping strategists running both Standard Shopping and PMAX who need data-driven segmentation
  • High-SKU retailers where manual bid management is impossible
  • Performance-first managers who want to segment by profitability/ROAS rather than just click volume

Actionable Insights & Benefits:

Isolate high-performers — Feed "over-index" products into a high-priority PMAX campaign

Identify waste early — Move "under-index" products to a separate campaign with higher tROAS or stop spending entirely

Activate zombies — Move "no-index" products to a "Catch-all" campaign with Maximize Clicks to give them initial traction

Protect budget from lucky shots — CVR thresholds prevent over-investing in products with anomalous one-off conversions

Price: Free — Get it here

5. Smarter Ecommerce - Brand Traffic Analyzer

smec pmax script brand monitor

👉 What This Script Does

This script by Smarter Ecommerce (smec) tackles brand cannibalization — the problem where PMAX bids aggressively on your brand name because those users convert easily, making ROAS look artificially high.

👉 Creates a timeline showing brand vs non-brand traffic share in your PMAX campaigns over time. Tracks impressions, clicks, CTR, conversions, and conversion value — split by branded and non-branded queries.

How It Works

  1. Go to smarter-ecommerce.com/en/google-ads-scripts/search-term-insights
  2. Enter your email to unlock the script
  3. Create a new Google Sheet (or copy the template provided)
  4. In Google Ads, go to Tools → Scripts → click +
  5. Paste the script code
  6. Add your Google Sheet URL to the SHEET_URL constant
  7. Update BRANDED_TERM_VARIANTS with your brand terms (e.g., ['nike','nike shoes'])
  8. Ensure your Google Ads email has edit access to the Sheet
  9. Authorize and run

👉 Who This Script Is Suited For

  • Brand owners who suspect they're paying Google for sales they'd get anyway through organic or standard brand campaigns
  • Growth marketers who need to prove "incremental" growth (finding new customers) rather than just "efficient" growth (harvesting existing demand)
  • Agencies explaining to clients why ROAS spiked or dipped suddenly

Actionable Insights & Benefits:

Spot auto-asset spikes — Often reveals brand traffic spikes after Google auto-generates new assets. You can disable those assets.

The "exclude brand" decision — If 80% of PMAX conversions are branded, you have data to justify a Brand Exclusion list

tROAS target testing — See exactly how raising tROAS affects traffic. Higher targets often force PMAX to retreat into "safe" brand traffic.

Asset group audits — Run the script before and after adding new asset groups to see if new creative actually reached new people

Price: Free — Get it here

6. PMAX Placement Cleaner

pmax placement cleaner script

👉 What This Script Does

The PMAX Placement Cleaner by Dmytro Tonkikh (TrueClicks) is designed to combat junk placements on the Display Network. Since PMAX often hides where your ads appear, this script acts as an automated auditor — finding and excluding low-quality sites before they drain your budget.

👉 Scans placement URLs, fetches the actual HTML page titles (not just URLs), checks them against your keyword/domain blocklists, and automatically adds bad placements to a shared exclusion list. Works at MCC level.

How It Works

  1. Go to gist.github.com/tonkikh/812f32d25f6db9ed5b3b1abaf76ccfa5
  2. Create a Google Sheet with two tabs: "keywords" and "domains"
  3. In the "keywords" tab, list words to flag (e.g., "game," "unblocked," "kids," "manga")
  4. In the "domains" tab, list specific domains to ban immediately
  5. In Google Ads (MCC level), go to Tools → Scripts → click +
  6. Paste the script code
  7. Update the SPREADSHEET_URL with your sheet
  8. The script will create/use a shared exclusion list called "TrueClicks | common negative"
  9. Authorize and schedule to run weekly

👉 Who This Script Is Suited For:

  • Agency media buyers managing dozens of accounts who need standardized protection against "Made-for-AdSense" (MFA) sites and click-farms
  • Brand safety conscious advertisers worried about ads showing up next to controversial or junk content
  • High-volume advertisers spending heavily on PMAX where Display expansion is aggressive

Actionable Insights & Benefits:

Aggressive junk filtering — Catches thousands of "kids game" or piracy sites that have generic-looking URLs but spammy page titles

Reduced wasted spend — Proactively excluding junk sites can save $5-$50/day per account. Across multiple accounts and months, that's thousands saved.

Transparency log — Outputs every checked URL to a "results" tab so you can audit the script's logic and refine your keyword list

"Set and forget" brand safety — Schedule weekly runs to create an evolving shield against new spam sites

Price: Free — Get it here

7. PMAX Non-Converting Search Term Alerts

Non-Converting Search Terms PMAX

👉 What This Script Does

Another script from Nils Rooijmans — this one finds search terms that are spending your budget without producing results. It's essentially an automated waste audit of the PMAX search term report.

👉 Scans for search terms that hit a specific click threshold but yielded zero (or near-zero) conversions, logs them to a Google Sheet, and sends you a weekly email alert.

How It Works

  1. Go to nilsrooijmans.com/google-ads-script-pmax-non-converting-search-term-alerts
  2. Create a new Google Sheet
  3. In Google Ads, go to Tools → Scripts → click +
  4. Paste the script code
  5. Add your Google Sheet URL to line 35
  6. Add your email address to line 36
  7. Update the email subject with your account name (line 41)
  8. Configure thresholds:LOOKBACK_WINDOW = 90 (days to analyze)MIN_CLICKS = 100 (minimum clicks before flagging)CONVERSION_THRESHOLD = 0.5 (flag terms with fewer conversions than this)
  9. Authorize and schedule to run weekly (Mondays at 6AM recommended)

👉 Who This Script Is Suited For:

  • PPC practitioners who believe intent is still the most powerful signal and want control over search terms
  • Budget-conscious managers looking to trim fat and increase overall ROAS
  • Agencies with high-volume accounts where manual search term audits would take hours weekly

Actionable Insights & Benefits:

Account-level negative hit list — Search terms with 200 clicks and 0 conversions are prime candidates for your negative keyword list

Intent mismatch identification — Frequent categories in alerts signal that Google's AI is misinterpreting your assets. Refine your headlines.

Scaling efficiency — Instead of digging through Search Insights every Monday, get a pre-filtered to-do list of keywords to exclude

Client transparency — Use the sheet as a tangible report showing where you're saving money by cutting irrelevant traffic

Price: Free — Get it here
 

8. PMAX Asset Auditor

PMAX Asset Auditor

👉 What This Script Does

This script from Mike Rhodes bypasses the vague "Low/Good/Best" labels in the Google Ads UI. It pulls actual hard performance data for every individual Asset Group.

👉 Pulls Spend, Clicks, Conversions, and ROAS for every Asset Group — not just Google's unhelpful quality labels. Identifies "Budget Vampires" eating your spend while underperforming.

How It Works

The Asset Auditor functionality is included in Mike Rhodes' main PMAX script (both free and paid versions). Setup follows the same process as Script #2 above.

For the free standalone Asset Group report:

  1. Check github.com/mikerhodesideas/free for the latest version
  2. Follow the setup instructions in the repository

👉 Who This Script Is Suited For:

Based on community discussion:

  • Creative teams who need to justify which assets to keep, kill, or iterate on
  • Account managers who can't trust Google's "Low/Good/Best" labels for asset decisions
  • Advertisers with multiple asset groups who need to see where budget is actually flowing

Actionable Insights & Benefits:

Kill underperformers confidently — Stop guessing which assets to remove. See actual ROAS by asset group.

Find neglected winners — Discover asset groups with great performance that Google is under-serving

Budget reallocation — Identify where to shift budget based on real performance, not Google's opaque recommendations

Price: Included in Mike Rhodes' PMAX scripts — Free (v28) or $199 (full version)

9. Flowboost Price Labelizer

Flowboost Price Labelizer

👉 What This Script Does

Another script from Floris de Schrijver — this one connects your Google Ads data to the Price Competitiveness report in Google Merchant Center. It labels products based on how your pricing compares to competitors.

👉 Labels your products as "Below Benchmark," "At Benchmark," or "Above Benchmark" based on Merchant Center price competitiveness data. Enables "Price-First" bidding strategies.
 

How It Works

  1. Visit florisdeschrijver.com or check the Flowboost Library for the latest version
  2. Setup follows a similar pattern to the Flowboost Labelizer (Script #4)
  3. The script pulls price competitiveness data from Merchant Center and applies labels to your feed

👉 Who This Script Is Suited For:

  • Ecommerce advertisers in competitive markets where pricing affects click-through and conversion rates
  • Pricing strategists who want to coordinate ad spend with promotional periods
  • Multi-SKU retailers who can't manually track price competitiveness across thousands of products

Actionable Insights & Benefits:

Scale competitive products — Push budget to products where you're priced below benchmark

Pull back on overpriced SKUs — Stop wasting spend on products where you can't compete on price

Coordinate with promotions — When you drop prices, immediately reflect that in campaign structure

Price: Check florisdeschrijver.com for availability

10. PMAX Anomaly Detector

PMAX Anomaly Detector

👉 What This Script Does

This is Nils Rooijmans' enhanced version of Google's standard anomaly detection script. It monitors your account hourly and alerts you when something goes wrong.

👉 Monitors spend, clicks, and conversions hourly. Compares against the same hour from previous weeks. Sends immediate email alerts when anomalies are detected.

How It Works

  1. Visit nilsrooijmans.com and search for "anomaly" or check the free scripts list
  2. Create a new Google Sheet for logging
  3. In Google Ads, go to Tools → Scripts → click +
  4. Paste the script code
  5. Configure your alert thresholds and email address
  6. Authorize and schedule to run hourly

👉 Who This Script Is Suited For:

  • Anyone running significant PMAX budget who can't afford runaway spend or missed tracking issues
  • Agencies managing multiple accounts who need automated monitoring
  • Advertisers who've experienced PMAX "glitches" where spend suddenly spikes on junk Display traffic

Actionable Insights & Benefits:

24/7 guardian angel — If PMAX suddenly spends $500 in 30 minutes (usually junk Display traffic), you get an immediate alert

Tracking error detection — If conversions drop to zero due to a tracking issue, you'll know within the hour

Peace of mind — Stop manually checking accounts. Let the script watch for problems.

Price: Free — Check Nils' Ultimate List of Free Scripts

Get ALL My Google Ads Scripts

I've got a Google sheet with over 350+ Google ads scripts, INCLUDING all the PMAX scripts listed in this article.

👉 Get Access To My 350+ Scripts

How to Choose The Right PMAX Script

I've put together a nice comparison matrix table below to help you decide which ones to get started with! 

PMAX scripts comparison matrix

By Situation

  • If you just want to see where your PMAX budget is actually going: Start with Stew's PMAX Script. It's free, requires zero configuration, and gives you the channel split + waste report in minutes.
  • If you're running ecommerce with hundreds/thousands of SKUs: The Flowboost Labelizer and Mike Rhodes script are built specifically for product-level analysis. Choose Flowboost (free) to start, upgrade to Mike Rhodes ($199) if you need deeper channel insights.
  • If you suspect PMAX is cannibalizing your brand traffic: The smec Brand Analyzer shows exactly what percentage of your "success" is just branded searches you'd get anyway.
  • If you're worried about junk placements eating your Display budget: The Placement Cleaner runs at the MCC level and auto-excludes spam sites based on page titles, not just URLs.
  • If you want hands-off monitoring for emergencies: The Anomaly Detector runs hourly and emails you when something goes wrong. Set it and forget it.

P.S. I have another separate guide on general Google ads scripts incase you want to explore options beyond just PMAX.

The Bottom Line

PMAX is an AI black box by design. Google wants you to trust the algorithm and stop asking questions. 

It CAN work extremely well, and in theory it should only get better with time, but you DO absolutely still need to be monitoring performance.

Scripts give you the visibility to ask better questions, and make better decisions.

My recommendation: Start with Stew's PMAX Script (free, comprehensive, zero setup). Run it once and see what you learn about where your budget is actually going.

Then layer in specialized scripts based on your specific needs — brand cannibalization concerns, product segmentation, waste identification, or anomaly detection.

The advertisers who treat PMAX as a "set and forget" channel are the ones subsidizing Google's Display Network. The ones who use scripts to maintain visibility are the ones getting actual results.

Stewart Dunlop

Stewart

CEO