--- title: "Weather UV" slug: "weather-uv-targeting" updated: 2024-10-02T04:20:54Z published: 2024-10-02T04:20:54Z canonical: "help.yahooinc.com/weather-uv-targeting" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.yahooinc.com/llms.txt > Use this file to discover all available pages before exploring further. # Weather UV Targeting This article describes resources that enable you to read and define weather UV targeting. ## Overview The Yahoo DSP supports `WEATHER` targeting for lines serving display and video ads. ## Endpoint ```plaintext /traffic/lines/{id}/targeting ``` - A `GET` request enables you to view weather UV targeted by the specified line. - A `POST` request enables you to target weather UV with the specified line. ## Resources The `targeting` resource is the standard Yahoo DSP resource for targeting consumers based on their profiles, behaviors, and ad content. The `targeting` resource is defined by the following `WEATHER` targeting type-specific fields: | **Parameter** | **Parameter Type** | **Definition** | **Data Type** | **Required** | | --- | --- | --- | --- | --- | | `id` | path | Specifies the line lD. | `integer` | Y | | `weatherUVs` | body | Weather targeting is powered by the Yahoo Weather API. You can use weather targeting to target audiences based on the real-time or forecasted weather UV of the user’s location. - `LOW` - `MODERATE` - `HIGH` - `VERY_HIGH` - `EXTREME` | `array` | Y | | `types` | body | Specifies an array of targeting types to update, enable, or disable. `WEATHER` targeting type must be specified to apply the changes. To learn more, refer to [Targeting Types](/dsp-api/docs/about-targeting#targeting-types). | `array` | Y | > [!NOTE] > Note > > For a complete list of `targeting` resource fields, refer to [Targeting Object](/dsp-api/docs/about-targeting#targeting-object). ## Add/Update Weather Targeting Add or update weather targets for the specified line. ```plaintext POST /traffic/lines/{id}/targeting/ ``` ### Parameters The line ID is specified in the path of the URL. All other parameters are specified in the body of the `application/json` payload. #### Example Request URL ```plaintext POST https://dspapi.admanagerplus.yahoo.com/traffic/lines/365277/targeting/ ``` #### Example Request Body ```plaintext {  "id": 365277,  "weatherUVs": [    "LOW",    "MODERATE"  ],  "types": [    {      "name": "WEATHER",      "isTargeted": true    }  ] } ``` #### Example Response ```plaintext {  "response": {    "types": [      {        "name": "WEATHER",        "isTargeted": true      }    ],    "weatherUVs": [      "LOW",      "MODERATE"    ],    "errors": null,    "timeStamp": "2018-01-12T01:57:40Z"  } } ``` ### Additional Resources [About Targeting](/dsp-api/docs/about-targeting)