--- title: "Video Content Length" slug: "video-content-length-targeting" updated: 2024-10-02T03:44:29Z published: 2024-10-02T03:44:29Z canonical: "help.yahooinc.com/video-content-length-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. # Video Content Length Targeting *This article describes resources that enable you to read and define video content length targeting.* ## Overview The Yahoo DSP supports `VIDEO_CONTENT_LENGTH` targeting for lines serving video ads. ## Endpoint ```plaintext /traffic/lines/{id}/targeting ``` - A `GET` request enables you to view video content length targeted by the specified line. - A `POST` request enables you to target video content length 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. This resource comprises multiple fields that enable you to specify line targeting across many types of targets including the `VIDEO_CONTENT_LENGTH` target type. The `targeting` resource is defined by the following `VIDEO_CONTENT_LENGTH` targeting type-specific fields: | **Parameter** | **Parameter Type** | **Description** | **Data Type** | **Required** | | --- | --- | --- | --- | --- | | `id` | path | Specifies the line ID. | `integer` | Y | | `videoContentLength` | body | Video content length is the duration of the video a user is about to watch, not the duration of the ad. Valid values include: - `UP_TO_TWO_MINUTES` - Up to 2 minutes - `TWO_TO_FIVE_MINUTES` - From 2 to 5 minutes - `FIVE_TO_THIRTY_MINUTES` - From 5 to 30 minutes - `MORE_THAN_THIRTY_MINUTES` - More than 30 minutes - `UNKNOWN` - Any available video length. - `ALL` | `array` | N | | `types` | body | Specifies an array of targeting types to update, enable, or disable. `VIDEO_CONTENT_LENGTH` 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 Video Content Length Targeting Add or update video content length targeting 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 {  "videoContentLength": [    "UP_TO_TWO_MINUTES",    "UNKNOWN"  ],  "types": [    {      "name": "VIDEO_CONTENT_LENGTH",      "isTargeted": true    }  ] } ``` #### Example Response ```plaintext {  "response": {    "types": [      {        "name": "VIDEO_CONTENT_LENGTH",        "isTargeted": true      }    ],    "videoContentLength": [      "UP_TO_TWO_MINUTES",      "UNKNOWN"    ],    "errors": null,    "timeStamp": "2018-01-12T01:57:40Z"  } } ``` ### Additional Resources [About Targeting](/dsp-api/docs/about-targeting)