Three Google Ads scripts that quietly run in the background of every healthcare account we manage. None of them are fancy. All of them catch problems before they become disasters.
Script 1: Anomaly alerts
Watches campaign-level metrics (impressions, clicks, conversions, cost). If any metric deviates more than 40 percent from its 14-day rolling average for 2 consecutive days, send an email and a Slack alert.
This catches things like:
- A keyword going from 100 impressions a day to 5,000 because of a search trend shift.
- A campaign collapsing because a bid strategy changed itself.
- Spend doubling because a competitor exited and the auction relaxed.
- Conversions going to zero because the landing page broke.
The script runs every 6 hours. Cost: free. Time saved: usually 2 to 5 days of "why are we losing bookings?" investigation per quarter.
Script 2: Landing page health check
Every 12 hours, the script visits every landing page URL referenced in any active ad. Checks for:
- HTTP 200 response (page loads at all).
- Page load time under 4 seconds.
- WhatsApp link still present in the HTML.
- Form action URL still valid.
- Conversion tracking pixel still firing.
If any check fails, pause the ad group pointing to that page and alert the team. Saves the situation where a developer pushes a broken page on Friday afternoon and the clinic spends two days paying for clicks that go nowhere.
Script 3: Budget pacing
Watches actual spend vs intended monthly budget. Halfway through the month, if spend is more than 60 percent of budget, send a warning. If it is more than 80 percent, throttle bids by 15 percent automatically.
This prevents the situation where an aggressive auction in the first 10 days of the month exhausts the budget by day 18 and the clinic goes dark for the last 12.
For Dubai healthcare specifically, budget pacing matters because patient demand is not even across the month. The first week of a month often runs hot. Without pacing, that week eats the whole budget.
How to install them
Google Ads → Tools → Scripts → New Script. Paste the code. Authorise. Schedule.
The three scripts together take maybe 4 hours to install for an account that does not already have them. After that they run forever. We make them the first thing we install on a new account, before anything else.
The point
The campaigns themselves are 70 percent of healthcare Google Ads work. The other 30 percent is catching problems before they cause real damage. Scripts handle most of the second 30 percent for free.
Written by Youssef Hajri, Founder of Access One. Access One is the first Healthcare Google Partner in the UAE. We run Google Ads for clinics, home healthcare and salons in Dubai. Get in touch.