[Google Ads Script] Pause Campaigns for Potential Invalid Activity

This is my last working day before my motorcycle road trip in California. For the next two weeks, the MV Agusta Brutale will be my best friend. Before I’m off to the canyons, here’s my latest find:

[Google Ads Script] Pause Campaigns for Potential Invalid Activity

URLhttps://github.com/hoofay/autoPauseCampaignsInvalidClicks/blob/master/autoPauseCampaignsInvalidClicks.txt

What it does: This script pauses campaigns that have >30% invalid click rate (and >20 clicks) during the day.

Why you care: Click fraud is a rampant issue on Google’s Display Network. Google Shopping ads also see a lot of click fraud activity. Although Google does a great job in detecting click fraud, fraudulent clicks _will_ pass their filters unnoticed. And _you_ will be paying for them. So, if your ads are being targeted by invalid click activity, you might want to pause them.

Note: The script does require some minor changes to make it work for you (i.e., add email address, change thresholds, and optionally add functions to pause shopping and PMax campaigns). 

If you’re interested in the latter, just ask ChatGPT to assist you, or email me and I’ll see what I can do when I get back from the twisty roads.

See you in two weeks, happy scripting!

– Nils

Author: Nils Rooijmans

Google Ads Performance Architect with a passion for PPC Automation & AI, in particular via Google Ads Scripts.