# Weather forecast signals for ad campaigns by city

**Use case:** 

Get a 5-day forecast per city and a rain bid boost you define, to push umbrella, delivery or indoor offers on wet days.

## Input

```json
{
  "locations": [
    "London, GB",
    "Berlin, DE"
  ],
  "rules": [
    {
      "condition": "rain",
      "adjustment": 25
    }
  ],
  "days": 5,
  "combineRules": "add",
  "campaign": "Summer sale"
}
```

## Output

```json
{
  "input": {
    "label": "Input",
    "format": "string"
  },
  "label": {
    "label": "Label",
    "format": "string"
  },
  "campaign": {
    "label": "Campaign",
    "format": "string"
  },
  "location": {
    "label": "Location",
    "format": "string"
  },
  "country": {
    "label": "Country",
    "format": "string"
  },
  "latitude": {
    "label": "Latitude",
    "format": "number"
  },
  "longitude": {
    "label": "Longitude",
    "format": "number"
  },
  "timezone": {
    "label": "Time zone",
    "format": "string"
  },
  "timezoneSource": {
    "label": "Time zone from",
    "format": "string"
  },
  "geocode": {
    "label": "Place found by",
    "format": "string"
  },
  "matchedCity": {
    "label": "Matched city",
    "format": "string"
  },
  "ambiguous": {
    "label": "Ambiguous name",
    "format": "boolean"
  },
  "date": {
    "label": "Local date",
    "format": "string"
  },
  "dayIndex": {
    "label": "Day (0 = today)",
    "format": "integer"
  },
  "partialDay": {
    "label": "Partial day",
    "format": "boolean"
  },
  "hoursCovered": {
    "label": "Hours covered",
    "format": "integer"
  },
  "resolution": {
    "label": "Forecast steps",
    "format": "string"
  },
  "tempMinC": {
    "label": "Min °C",
    "format": "number"
  },
  "tempMaxC": {
    "label": "Max °C",
    "format": "number"
  },
  "tempAvgC": {
    "label": "Mean °C",
    "format": "number"
  },
  "precipProbabilityPct": {
    "label": "Precipitation chance %",
    "format": "number"
  },
  "uvIndexMax": {
    "label": "Max UV index",
    "format": "number"
  },
  "precipitationMm": {
    "label": "Precipitation mm",
    "format": "number"
  },
  "rainMm": {
    "label": "Rain mm",
    "format": "number"
  },
  "snowMm": {
    "label": "Snow mm",
    "format": "number"
  },
  "cloudCoverPct": {
    "label": "Daytime cloud %",
    "format": "number"
  },
  "windMaxMs": {
    "label": "Max wind m/s",
    "format": "number"
  },
  "windAvgMs": {
    "label": "Mean wind m/s",
    "format": "number"
  },
  "symbol": {
    "label": "Weather symbol",
    "format": "string"
  },
  "matchedRules": {
    "label": "Matched rules",
    "format": "array"
  },
  "matchedRuleCount": {
    "label": "Rules matched",
    "format": "integer"
  },
  "bidAdjustmentPct": {
    "label": "Bid adjustment %",
    "format": "integer"
  },
  "rawAdjustmentPct": {
    "label": "Before rounding and cap %",
    "format": "number"
  },
  "capped": {
    "label": "Hit the -90/+900 cap",
    "format": "boolean"
  },
  "googleAdsEditorCsv": {
    "label": "Google Ads Editor CSV record",
    "format": "string"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "message": {
    "label": "Note",
    "format": "string"
  },
  "forecastUpdatedAt": {
    "label": "Forecast computed at",
    "format": "string"
  },
  "forecastSource": {
    "label": "Forecast read from",
    "format": "string"
  },
  "dataSource": {
    "label": "Data source",
    "format": "string"
  },
  "checkedAt": {
    "label": "Run started at",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Weather Bid Adjustments for Google Ads: Forecast Rules & CSV Actor is ready to run with the inputs already set for "Weather forecast signals for ad campaigns by city". [Sign up or log in](https://console.apify.com/create-task-from-example/bgeeVYJi5hInhc0Hw) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Weather forecast signals for ad campaigns by city" task

The Weather Bid Adjustments for Google Ads: Forecast Rules & CSV Actor will start running based on the input automatically. You can also change all the input fields, like locations, rules, and more, to match your specific use case.

### 3. Receive the "Weather forecast signals for ad campaigns by city" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as input, label, campaign, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Weather forecast signals for ad campaigns by city" task via API](https://apify.com/solidfetch/weather-ad-signals.md).

## About this Actor

This example demonstrates how to use [Weather Bid Adjustments for Google Ads: Forecast Rules & CSV](https://apify.com/solidfetch/weather-ad-signals.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/solidfetch/weather-ad-signals.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/solidfetch/weather-ad-signals.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
