10 Super Helpful PMax Scripts to Gain Back Control

von Thimo Hofner

PMax Scripts

Are you like me and have an ambivalent relationship with PMax campaigns? Thanks to maximum automation, they are very easy to create and now work very well.

However, this automation also brings challenges: a lack of transparency, little control and often a feeling of not being able to keep a complete eye on the campaigns.

Scripts can help you close these gaps. They provide you with additional data, simplify analysis and give you more control over your campaigns. In this article, I’ll introduce you to 10 scripts that you can use to better understand and optimize your PMax campaigns. Ready? Let’s go!

What are scripts in Google Ads?

Google Ads scripts are small snippets of code that automate tasks in your account. They allow you to analyze data, create reports or even adjust campaign parameters automatically. Scripts use JavaScript and can be inserted directly into the Google Ads interface.

Their big advantage: they save time, provide deeper insights and create transparency where Google’s standard tools reach their limits. Instead of checking everything manually, you can use scripts to standardize processes and manage your account more efficiently.

Who creates these scripts?

Don’t worry, you don’t have to become a web developer now. Fortunately, there are experts who have already developed numerous scripts and made most of them available to the community free of charge.

At this point, I would like to give a shout-out to experts such as Mike Rhodes, Nils Rooijmans and Floris de Schrijver. Thanks to them for their contribution to the Google Ads world!

Follow these experts if you want to get more out of your campaigns. They regularly share helpful scripts and practical tips to make your work with Google Ads easier.

The 10 most helpful Performance Max scripts

1. Performance Max Spend Allocation Script (Mike Rhodes)

Do you lack an overview of how your PMax budget is actually being used? One of the most common criticisms of Performance Max campaigns is the lack of transparency in budget allocation. This script solves exactly this problem. It shows you how much budget is allocated to different channels such as Shopping, Video, Display and Search. This allows you to quickly recognize which channels take up the most budget and whether the results are in proportion

The script not only gives you transparency but also the basis for targeted optimizations. Instead of groping in the dark, you know exactly where you should intervene to get the best out of your campaign.

It helps you to better analyze and understand your PMax campaign. If you want to know more about this, you can find a comprehensive guide here: Analyzing PMax campaigns

Use cases:

  • Finally get clarity on budget allocation.
  • Know which channel to prioritize for optimization
  • Identify channels with high or low ROI.

Link:
Performance Max Spend Allocation Script – GitHub

2. Flowboost Labelizer (Floris de Schrijver)

With the Flowboost Labelizer you can easily divide your products into different performance clusters. The script assigns labels such as “no index”, “under index”, “near index”, “index” and “over index” so that you can see at a glance which products are selling well – and which are not.

These labels provide a structure that allows you to direct your budget towards top sellers without neglecting products that also have potential.

A big advantage is that you can define yourself when a product is considered a “top seller”. This allows you to customize the threshold values and adapt your campaign strategy accordingly. Thanks to this granular analysis, you can ensure that your campaigns work efficiently while giving all products a fair chance.

The data is aggregated in a Google Sheet, which also gives an overview of the current status. This means you can see how much budget you are using for low-performers or “under index” products and what small proportion of your total sales they account for.

Use cases:

  • Segment campaigns based on product performance
  • Identify products that are wasting your budget.
  • Create a better basis for optimization decisions.

Link:
Flowboost Labelizer – Floris de Schrijver

3. Non-Converting Search Term Alerts (Nils Rooijmans)

Are you familiar with the problem of generating lots of clicks in your Performance Max campaigns, but no conversions? The lack of transparency in PMax often makes it difficult to identify inefficient search terms. This is exactly where this script helps. It automatically detects search terms that generate clicks but do not deliver results. The data is summarized in a Google Sheet, and you can even set up email notifications if required.

This script puts you back in control so you can avoid unnecessary costs. You can see at a glance where your campaign needs to be readjusted and can set targeted exclusions to use your budget more effectively. Unfortunately, you can only set exclusions for PMax campaigns at the account-level or via your Google Ads Rep. However, at the time of writing, the beta for negative keywords is already rolling out at the campaign-level.

Use case:

  • Finding search terms that consume budget but do not generate conversions.

Link:
Non-Converting Search Term Alerts – Nils Rooijmans

Stay one step ahead by recognizing which search categories are currently gaining popularity. The PMax Trending Search Categories Script helps you to identify emerging trends early on before your competition becomes aware of them. It automatically analyzes your campaigns and highlights categories with significant increases in impressions.

With these insights, you can proactively adjust your campaigns, optimize content and ads for trending categories and make sure you’re always on the pulse.

Use case:

  • Identify trends and react to them at an early stage.
  • Adapt campaigns flexibly and based on data.
  • Use these insights for other campaigns, such as standard search

Link:
PMax Trending Search Categories – Nils Rooijmans

5. Brand Traffic Analyzer (Smarter Ecommerce)

In Performance Max campaigns, it is often unclear how much of your budget is used for brand-related and how much for generic search queries. Although you can view search terms via PMax Insights in Google Ads, manual analysis is time-consuming and not very easy. In addition, PMax campaigns are opportunistic and often prefer to bid on brand terms, as these usually deliver the best performance. As a result, you risk neglecting generic terms that are crucial for acquiring new customers.

The Brand Traffic Analyzer automates this process and presents the split between brand and generic traffic in easy-to-understand diagrams. The script accesses the Consumer Spotlight Report and shows you how changes to budget or ROAS targets affect the split. The results are saved in a Google Sheet so that you can keep an eye on the development of your campaign and optimize it based on data.

Info: If you don’t want your PMax campaign to bid on brand terms, you can exclude the brand in the campaign settings. You can find out more here: Exclude brand keywords from PMax campaigns

Use cases:

  • Ensure that brand terms are not overly favored and generic terms receive enough budget.
  • Quick overview of the budget distribution between brand and generic search queries.

Link:
PMax Brand Traffic Analyzer – Smarter Ecommerce

6. Account Anomaly Detector (Google Ads Solution)

Sudden changes in your campaigns can quickly lead to unnecessary costs or poorer results. This is exactly where the Account Anomaly Detector comes in. This solution automatically monitors the performance of your Google Ads account and compares it with historical data from the same day of the week. As soon as unusual deviations occur, you will be notified. This allows you to react quickly and keep your campaign performance stable.

In contrast to a normal script, this is a so-called solution that is available directly in the Google Ads interface and can be used without any technical effort.

What is a Google Ads solution?
Google Ads Solutions are ready-made script templates that are provided in the Google Ads interface. They require no additional setup or technical knowledge. With just a few clicks, you can activate and customize a solution to use it for your specific needs.

Customization options for the Account Anomaly Detector:

  • Click, impression and conversion thresholds: 25% deviation by default, but can be customized as desired.

  • Cost thresholds: Adjustable, e.g. cost > 120% of average.

  • Historical database: Analyzes up to 52 weeks to create well-founded alerts.

  • Notification: You can store your e-mail address to be informed automatically.

Use case:

  • Early warning system for significant fluctuations to intervene in time.
  • Automatic monitoring of metrics such as clicks, impressions, costs and conversions.

7. Disapproved Products Alerts (Nils Rooijmans)

Disapproved products in the product feed can significantly affect the visibility and performance of your campaigns. Especially for Performance Max campaigns that rely heavily on Shopping components, a problem in the product feed can lead to important products no longer being advertised. The Disapproved Products Alerts Script helps you to recognize such problems at an early stage.

The script regularly checks your product feed for rejected products. As soon as a problem is detected, you will receive a notification by email. It saves you valuable time by not having to manually search for errors and ensures that your products remain visible. The check is based on criteria that you can customize so that the tool is perfectly tailored to your requirements.

Use case:

  • Quick response to rejected products to ensure the visibility of your campaigns.
  • Monitoring of large product feeds without manual effort.

Link:
Disapproved Products Alerts – Nils Rooijmans

8. PMax Placement Exclusion Suggestions (Nils Rooijmans)

One of the most common criticisms of Performance Max campaigns is the lack of control over placements. It is often unclear where your ads are actually displayed. This can lead to budget being wasted on inefficient or inappropriate placements. The PMax Placement Exclusion Suggestions Script gives you more control over your campaigns.

The script analyzes the placements of your ads and creates suggestions as to which ones you should exclude to increase the efficiency of your campaign. This way, you can ensure that your budget is only used on high-quality and relevant pages. The results are presented in a clear Google Sheet, which gives you a clear overview and simplifies optimization.

Use case:

  • Focus budget on high-quality and relevant pages.
  • Identify placements that are inefficient or do not fit the brand strategy.

Link:
PMax Placement Exclusion Suggestions – Nils Rooijmans

9. PMax Whisperer Script (Mike Rhodes)

Performance Max campaigns offer great potential for automation but often lack the granular insights you need for in-depth optimization. The PMax Whisperer Script by Mike Rhodes closes this gap. It provides you with detailed insights into the performance of your campaigns by summarizing data clearly and creating easy-to-understand reports.

The script analyzes all key areas of your PMax campaigns, including search terms, impressions and conversions. It provides information that is difficult or impossible to see in the Google Ads interface. This gives you better control over campaign performance and allows you to make informed decisions to target your budget.

Customization options:

  • Search term analysis: Get an in-depth overview of relevant search terms.
  • Customized reports: Adapt the reports to your specific requirements.
  • Performance overview: Detailed data on channels, conversions and other important KPIs.

Use case:

  • Use granular data to optimize campaign strategy.
  • Perform in-depth analyses that go beyond standard PMax Insights.

Link:
PMax Whisperer Script – Mike Rhodes

10. All-In-One PMax Script (Mike Rhodes) – Paid

The All-In-One PMax Script by Mike Rhodes is a comprehensive solution for Performance Max campaigns that combines numerous functions in a single script. It provides in-depth insights into search terms, budget allocation, asset performance and conversions. The script combines many of the functions of the different scripts I have presented in this post.

In contrast to the other scripts presented here, this one is subject to a fee (currently from $199). But I didn’t want to leave it unmentioned.

Mike Rhodes is constantly adapting this script so that new functions are always being added.

Customization options:
The script allows you to customize the reports to your needs and highlight the most important KPIs. You get a clear presentation of all relevant data points, which makes targeted optimization easier.

Webinar:
If you would like to learn more about the script, you can watch a webinar in which Mike Rhodes explains in detail how the tool works and how it can be used.
Watch the webinar

Use case:

  • Detailed insights and analytics for all aspects of your PMax campaigns.
  • A centralized solution for maximum control and increased efficiency.

Link:
All-In-One PMax Script – Mike Rhodes

How to set up scripts in Google Ads?

Setting up scripts in Google Ads is easier than it sounds and only takes a few minutes. Here’s a step-by-step guide:

1. Navigate to Scripts:
Sign in to your Google Ads account, click on the tool icon in the top right corner and select “Scripts” in the “Bulk Actions” section.

Screenshot

2. Add a new script:
Click on the plus sign ( ) to create a new script.

3. Paste code:
Copy the script you want to use and paste it into the editor.

4. Customize script template:
In each script there is an area for individual settings. Here you can, for example, store a link to a Google spreadsheet in which the results are saved or define threshold values that are relevant for your campaign.

Just pay attention to the documentation of the respective script. It always explains simply what you need to change and when you should no longer change anything.

Example:

javascriptCopyEditvarSPREADSHEET_URL = "https://docs.google.com/spreadsheets/d/..."; // Insert the URL of your Google Sheet here
var EMAIL_ADDRESSES = "deinemail@example.com"; // Enter the e-mail addresses that should receive notifications here

var IMPRESSIONS_MIN_ABS_DIFFERENCE = 100; // Define the minimum number of impressions
var IMPRESSIONS_MIN_REL_DIFFERENCE = 0.5; // Set a minimum difference in percent
var SEND_EMAIL = true; // Enable or disable notifications

5. Execute preview:
Before you activate the script, carry out a test run. This will ensure that the code does not contain any errors and works as expected.

Screenshot

6. Authorize the script:
Before running the script for the first time, you must authorize it so that it can access your Google Ads account. To do this, click on “Authorize” and follow the instructions.

Screenshot

7. Set the execution frequency:
Set up a schedule to run the script automatically – e.g. hourly, daily or weekly. The appropriate setting is usually mentioned in the script documentation.

8. Check the results:
After execution, you can view the results in the script log. There you will find reports, data or any errors that occurred during execution.

Of course, also check the Google Sheet, where any new updates should appear.

Conclusion: Gain more control over PMax campaigns

Performance Max campaigns can often seem like a black box, but with the right scripts, you can gain crucial insights. They help you to uncover weak points, optimize in a more targeted way and bring transparency to your campaigns.

With the scripts presented here, you can understand your campaigns better, manage them more effectively and get more out of your budget

I hope this article has helped you and perhaps introduced you to a few new ways of managing your campaigns. Good luck with it!

Work smart with Clicks in Mind


Hi, my name is Thimo Hofner. I have been working in online marketing as a Google Ads Manager for more than 5 years. Through many courses, trainings and most importantly working with many different clients, I have learned the best strategies for success with Google Ads. On my blog and YouTube, I share my knowledge to help you drive more success with online marketing.

More posts on this topic

Google Ads Account Setup

Uncategorized, Google Ads

Google Ads Account Setup in 2025 – A Beginner’s Roadmap

Google Ads is one of the best ways to reach potential customers online. Whether […]

PMax Scripts

Google Ads

10 Super Helpful PMax Scripts to Gain Back Control

Are you like me and have an ambivalent relationship with PMax campaigns? Thanks […]

Feed-Only PMax

Google Ads

Feed-Only PMax Campaigns: How It Still Works in 2025

Feed-Only Performance Max campaigns are a simple and effective way to reduce Go […]

Google Ads Reports in GA4

Google Ads

Creating Google Ads Reports in GA4: A Simple Guide

Google Analytics 4 (GA4) offers many functions for analyzing Google Ads data. H […]