Google Ads scripts and GTM tags
Set the parameters on a script page and copy the finished code.
Google Ads scripts
Broken landing page checker
Requests the final URL of every enabled ad, then logs any 4xx, 5xx or out-of-stock response to a Google Sheet and emails the summary. Can pause the ads it finds.
N-gram analysis of search terms
Splits the search terms report into one-, two- and three-word tokens and sums cost and conversions across each. Words that spend without converting show up even when no single query does.
Junk placement finder
Reads where your Display and YouTube ads showed in the last 14 days and logs placements whose URL matches junk patterns (games, kids, apk, lyrics and others) and that brought no conversions. Exclusions are applied by hand from that log.
Budget pacing alerts
Projects month-end spend from the month-to-date daily average and emails you when the projection misses the monthly budget by more than your threshold, with the daily budget that would land on target.
Quality Score history logger
The Quality Score column in Google Ads shows the current score; daily values need the historical columns segmented by day. This appends a daily row per keyword with the score, expected CTR, ad relevance and landing page experience to a Google Sheet, so the history is one table you can chart next to your changes.
GTM tags
Konami code easter egg for GTM
A Custom HTML tag that waits for ↑ ↑ ↓ ↓ ← → ← → B A, five taps on the logo, a swipe sequence or a phone shake, then runs one of eight modes, from a rickroll to a page that credits every conversion to the last click, and pushes the trigger to the dataLayer.
On-page debug HUD
Ctrl+Shift+G opens a panel over the page showing the last five dataLayer entries, the UTM and click IDs in the URL, and whether fbq and gtag are defined. Useful when you cannot open GTM preview on a client site.
Confetti on conversion
Draws a short canvas confetti burst when your thank-you trigger fires, shows your banner text for five seconds, and pushes growth_milestone_unlocked to the dataLayer. No library.
Python
Need one adapted to your account?
We write Google Ads scripts, set up server-side GA4 and build reports that answer a specific question.