- 1 Minute to read
Inventory Type Targeting
- 1 Minute to read
This article describes resources that enable you to read and define inventory type targeting.
Overview
The Yahoo DSP supports INVENTORY_TYPE targeting for lines serving display, video, and native ads.
Endpoint
/traffic/lines/{id}/targetingA
GETrequest enables you to view inventory types targeted by the specified line.A
POSTrequest enables you to target inventory types 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 INVENTORY_TYPE target type.
The targeting resource is defined by the following INVENTORY_TYPE targeting type-specific fields:
Parameter | Parameter Type | Description | Data Type | Required |
|---|---|---|---|---|
| path | Specifies the line ID. |
| Y |
| body | Specifies the inventory types to target. Valid values include:
|
| Y |
| body | Specifies an array of targeting types to update, enable, or disable.
To learn more, refer to Targeting Types. |
| Y |
Note
For a complete list of
targetingresource fields, refer to Targeting Object.
Add/Update Inventory Type Targeting
Add or update an inventory targeting to 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.
Example Request URL
POST https://dspapi.admanagerplus.yahoo.com/traffic/lines/365277/targeting/Example Request Body
{
"inventoryTypes": [
"WEB"
],
"types": [
{
"name": "INVENTORY_TYPE",
"isTargeted": true
}
]
}Example Response
{
"response": {
"types": [
{
"name": "INVENTORY_TYPE",
"isTargeted": true
}
],
"inventoryTypes": [
"WEB"
],
"errors": null,
"timeStamp": "2018-01-12T01:57:40Z"
}
}