Feedoptimise
Feedoptimise
menu
Start your 7 days free trial

Weather forecast modifier: pull live forecasts into your product feed

The Weather forecast modifier returns a single forecast value (temperature, rain, cloud cover, wind, and so on) for a city or group of cities, looking up to 14 days ahead. You can drop that value straight into a custom label or use it inside an IF modifier to drive bidding rules and product set logic.

When to use this

Reach for this modifier whenever the weather changes what your shoppers want to buy. A few common patterns:

  • Push umbrellas and waterproofs harder when the next 7 days of rain go above a threshold.
  • Pull back on sunglasses and sunscreen budgets when cloud cover is high.
  • Promote heaters, blankets and winter tyres when the minimum temperature drops below freezing.
  • Tag garden furniture, BBQs or paddling pools as "high push" on hot, dry weeks.
  • Build regional averages by adding several cities together (for example, "south coast of England" as Worthing plus Bournemouth plus Brighton).

The output is just a number, so it pairs naturally with the IF modifier to produce custom label values like sunglasses-push-high or umbrellas-push-high.

How to configure it

1. Locations

Each location is a Country plus a City. Pick the country first; the city dropdown then loads with the available cities for that country. Click + Location to add more pairs. When you add multiple locations, the modifier averages the daily forecasts across all of them before applying your aggregation, which is how you build a "region".

Both the Country and City fields accept a feed field as well, so you can drive the lookup dynamically from product data (for example a "warehouse_country" attribute) instead of hard-coding it.

2. What

Pick the metric you want returned. Options are grouped by type:

  • Temperature - average, max or min day temperature.
  • Feels like temperature - average, max or min.
  • Rain - average, max or min daily rainfall.
  • Snow - average, max or min daily snowfall.
  • Clouds - average, max or min cloud cover as a percentage.
  • Pressure - average, max or min in hPa.
  • Wind speed - average, max or min.
  • Wind gust - average, max or min.
  • Wind direction - average, max or min in degrees.

The avg/max/min part decides how the chosen window of days is reduced to a single number. "Avarage rain" over the next 7 days returns the mean of seven daily values; "Max rain" returns the wettest single day in that window.

3. When

The forecast window. Choices are Today, Tomorrow, or Next 2 days through to Next 14 days. "Next 7 days" means today plus the following six.

4. Unit

Only shown for metrics that have a unit choice:

  • Temperature and Feels like temperature - Celsius or Fahrenheit.
  • Rain and Snow - Millimeters or Inches.
  • Wind speed and Wind gust - Meters/sec or Miles/hour.

Clouds, pressure and wind direction have fixed units (%, hPa, degrees) so the Unit field hides for those.

Example: average rain in Milton Keynes for the next 7 days

With the configuration shown above:

  • Country #1: GB / United Kingdom
  • City #1: Milton Keynes
  • What: Avarage rain
  • When: Next 7 days
  • Unit: Millimeters

For every product in the feed the modifier returns the same number, for example:

Output: 3.42

That value (millimetres of rain per day, averaged over the next week) is what gets written into your custom label or passed into the next modifier in the chain.

Example: combining cities into a region

To get an average temperature for the south of England, add two locations: GB / Worthing and GB / Bournemouth. Set What to "Avarage temp", When to "Next 7 days", Unit to Celsius.

The modifier pulls the daily forecast for each city, merges them, and returns one mean value:

Worthing next 7 days mean: 14.1 C
Bournemouth next 7 days mean: 14.7 C
Output: 14.4

Example: feeding an IF modifier

Run the Weather forecast modifier twice to populate two helper fields, say cloud_next7days_% and rain_next7days_mm. Then use an IF modifier on top to set a custom label:

  • If cloud_next7days_% < 33 AND categories contains "sunglasses", return sunglasses-push-high.
  • Else if cloud_next7days_% >= 10 AND rain_next7days_mm > 7 AND categories contains "umbrella", return umbrellas-push-high.
  • Else return push-standard.

Connect that custom label to a Google Ads bid strategy or Meta product set and budgets shift with the weather.

Notes

  • If the country/city pair cannot be resolved, the modifier returns an empty string rather than failing the feed. Double-check the dropdown picked a valid city.
  • Forecasts refresh as the feed runs, so values stay current without any manual updates.
  • The "Today" and "Tomorrow" windows return a single day's value, so avg, max and min all produce the same number for those settings.