Weather-led ad copy switcher
Changes the line in your ads to match the weather: "Terrace open, sun's out" on warm days, "Cosy up inside" when it rains, without editing a single ad.
What it does
- Checks today's forecast for each location every hour with Open-Meteo (free, no key).
- Decides whether the day is sunny, rainy, cold or ordinary using your thresholds.
- Sets a campaign-level ad customiser to the matching message, so every ad using it updates at once.
- Handles several venues: each campaign follows the location named in its campaign name.
How it changes your account
It creates one text ad customiser and sets its value on each selected campaign. It never edits ads, bids or budgets.
Smart Bidding
Fully compatible with Smart Bidding: it changes the message, not the bid. Pair it with the weather budget shifter to move spend as well.
Settings explained
- Campaigns
Search campaigns whose ads use the weather customiser.
- Weather locations
One location covers every selected campaign. With several, a campaign follows the location named in its campaign name.
- Sunny when the high is at least (°C)
And rain is no more than the amount below.
- Rainy when rain is more than (mm)
Total for the day.
- Cold when the high is below (°C)
Used when it is not rainy.
- Customiser name
The script fills this ad customiser. In your responsive search ads, add a headline like {CUSTOMIZER.WeatherLine:Book your table today}.
- Sunny message
Up to 30 characters if used as a headline.
- Rainy message
Up to 30 characters if used as a headline.
- Cold message
Up to 30 characters if used as a headline.
- Everyday message
Used when none of the above apply.
- 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 hourly.
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 Hourly.
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
What do I need to add to my ads?
A headline or description containing {CUSTOMIZER.WeatherLine:your fallback text}. The fallback shows if no value is set.
Do ads go back into review each time?
No. Customiser values change without editing the ad, which is why this works hourly.
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.