Specify where video ads appear with the content of web video inventory using video ad placement targeting.
Endpoint
/traffic/lines/{id}/targetingA
GETrequest enables viewing video ad placements targeted by the specified line.A
POSTrequest enables video ad placement targeting with the specified line.
Resources
The targeting resource is the standard 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_PLACEMENT_TYPE target type.
The targeting resource is defined by the following VIDEO_PLACEMENT_TYPE targeting type-specific fields:
Parameter | Parameter Type | Description | Data Type | Required |
|---|---|---|---|---|
| path | Specifies the line ID. |
| Y |
| body | Specifies the settings targeted:
Note: The above parameters will be deprecated in September 2025 and will be replaced with |
| Y |
| body |
|
| Y |
| body | Specifies an array of targeting types to update, enable, or disable.
|
| Y |
Add/Update Video Ad Placement Targeting
Add or update video ad placement targeting for the specified line.
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.
Sample Request URL
POST https://dspapi.admanagerplus.yahoo.com/traffic/lines/365277/targeting/Sample Request Body
{
"videoAdPlcmts": [
"INSTREAM"
],
"types": [
{
"name": "VIDEO_PLACEMENT_TYPE",
"isTargeted": true
}
]Sample Response
{
"response": {
"types": [
{
"name": "VIDEO_PLACEMENT_TYPE",
"isTargeted": true
}
],
"videoAdPlcmts": [
"INSTREAM"
],
"errors": null,
"timeStamp": "2018-01-12T01:57:40Z"
}
}