Weather budget and target shifter
Raises budgets on warm, dry days and puts them back when the weather turns, so terraces, beer gardens and summer ranges get the spend when demand is really there.
What it does
- Checks today's forecast for each of your locations every hour using Open-Meteo (free, no key needed).
- On days warmer than your threshold with little or no rain, raises daily budgets by your percentage, up to a hard ceiling.
- Optionally eases target ROAS or target CPA on those days so Smart Bidding can chase the extra demand.
- Restores your own budgets and targets automatically when the weather turns, and treats any budget you change yourself as the new normal.
- Handles several venues at once: each campaign follows the location named in its campaign name.
- Emails you (and Slack, if you like) only when something changes, never every hour.
How it changes your account
With Alerts only turned off, the script changes campaign daily budgets and, if you turn it on, campaign-level target ROAS or target CPA. It never changes bids, keywords, ads or portfolio bid strategies, and never cuts a budget below the baseline it recorded.
The baseline for each campaign is kept in a Google Sheet in your Drive. If a budget is shared between campaigns, the shared budget changes once, which affects every campaign that uses it.
Smart Bidding
Built for Smart Bidding. Bid adjustments do nothing under Smart Bidding, so the script works through the two levers Smart Bidding listens to: budget and target. Easing the target is optional and off by default. Keep the boost moderate (20 to 30% is a sensible start), because very large daily swings can unsettle learning.
Settings explained
- Weather locations
One location covers every selected campaign. Several locations let one script run a group: put the location name in each campaign name and the script matches them up. Campaigns with no matching name are skipped and logged.
- Campaigns
Limit the script to terrace, garden or seasonal campaigns by name or label. Brand campaigns usually do not need it.
- Boost when warmer than
Today's forecast maximum. 18 to 20°C suits UK terraces; warmer climates want a higher number.
- And no more rain than
Total rain forecast for the day in millimetres. Keep it low for outdoor seating.
- Raise daily budgets by
Added to the campaign's normal budget on boost days only.
- Never go above
A per-campaign ceiling so a heatwave never runs away with your spend.
- Ease Smart Bidding targets
Optional. Gives Smart Bidding room to buy more of the extra demand. Off by default.
- Alerts only
Run it like this for a week. You get the emails and logs, and nothing changes.
- Google Sheet name
Where the script remembers each campaign's normal budget and target. Do not edit the State tab.
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 hourly.
Run it once with Preview first. Google asks you to authorise access to Google Sheets, Drive and email so the script can keep its baseline sheet and send alerts.
Schedule it Hourly. Leave Alerts only on for a week, check the emails against the weather you actually had, then turn it off and re-copy the script.
Questions
Does this work with Smart Bidding?
Yes. It changes budgets and, optionally, targets, which are the signals Smart Bidding responds to. It does not use bid adjustments.
What happens if I change a budget myself?
On a normal day your new budget becomes the baseline. On a boost day the script puts things back to the baseline it recorded once the weather turns, then picks up your change next time.
Where does the weather come from?
Open-Meteo, a free weather service built on national weather models. No API key or account is needed.
Will it email me every hour?
No. It only emails when the set of changes is different from the last email.
Can I run it for several restaurants in one account?
Yes. Add each location and include the location name in the relevant campaign names.
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.1 27 Nov 2026 Fix
- Budget baselines are now kept per budget, so campaigns sharing a budget can never ratchet it upwards.
- Budgets in whole-unit currencies such as JPY, KRW and HUF are now set correctly.
- The log Sheet is only reused when it is a live Google Sheet, never a trashed file or another file with the same name.
- Long text is trimmed to fit a Google Sheets cell.
- Saved state is split across cells, so big accounts never hit the cell size limit.
- First release in the Invincible Google Ads scripts library.
- 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.