Air quality, pollen and UV trigger
Puts more budget behind sun care on high-UV days, hayfever products when pollen spikes, and air purifiers when air quality drops.
What it does
- Checks today's UV, pollen or air quality forecast for your locations with Open-Meteo (free, no key).
- Takes the day's highest reading and compares it with your threshold.
- Raises budgets on matching campaigns on trigger days and restores them on other days.
- Logs every day's reading in a Google Sheet.
How it changes your account
It raises campaign daily budgets on trigger days and restores them afterwards. Shared budgets are skipped.
Smart Bidding
Works with Smart Bidding: it moves budget, not bid adjustments, so bidding uses the extra budget at your target.
Settings explained
- Locations
One location covers every matching campaign. With several, the highest reading is used.
- Indicator
Pollen forecasts cover Europe only.
- Act when today's maximum reaches
UV 6 is high; grass pollen 50 is high; European AQI 60 is poor.
- Campaigns containing
For example spf, sun cream or hayfever.
- Budget lift
Budgets go back to normal on days below the threshold.
- Alerts only (recommended for the first week)
While this is on, the script only logs and emails what it would change. Nothing in your account changes. Turn it off once you are happy with what it reports.
- Email alerts to
Where alerts and summaries go. Separate several addresses with commas. Leave blank to log only.
- Slack webhook URL (optional, stays in your browser)
Paste a Slack incoming webhook URL to get the same alerts in a channel. It is added to your copy of the script on your device and never sent to us.
- Google Sheet name
The script keeps its working data in a Google Sheet with this exact name in your Drive, and creates it on the first run.
Install in two minutes
- In Google Ads, go to Tools, then Bulk actions, then Scripts.
- Click the plus button and name your script.
- Delete the sample code, paste yours and click Authorise.
- Click Preview and check the log. Nothing changes in Preview.
- Click Save and set it to run daily.
In Google Ads, go to Tools > Bulk actions > Scripts, add a new script, paste the code and click Authorise. Then click Preview and read the log before anything runs for real.
Schedule it Daily.
It starts with Alerts only on. Leave it on for a week, check the emails, then turn it off and copy the script again.
Questions
Where do the forecasts come from?
Open-Meteo's air quality API, which draws on the Copernicus Atmosphere Monitoring Service. Pollen is available for Europe.
Can I use it for skincare as well as SPF?
Yes. Run one copy per rule, for example one for UV and another for pollen, each with its own campaign text.
Will it change my account straight away?
No. Alerts only is on by default, so the first runs only report what would change. You turn it off when you are happy.
Changelog
- 1.0.0 27 Nov 2026 Improvement
- First release in the Invincible Google Ads scripts library.
Scripts are provided as is. You're responsible for previewing, testing and monitoring them in your account. Scripts Terms of Use.