- 3 Minutes to read
Supply List Targeting
- 3 Minutes to read
Supply lists containing app, site or seller ID lists can be targeted by using the SITE_LISTS
targeting type.
Endpoint
/traffic/lines/{id}/targeting
A
GET
request enables you to view supply lists targeted by the specified line.A
POST
request enables you to target supply lists 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 SITE_LISTS
target type.
The targeting
resource is defined by the following SITE_LISTS
targeting type-specific fields.
Parameter | Parameter Type | Definition | Data Type | Required |
---|---|---|---|---|
| path | Specifies the line ID. |
| Y |
| body | Specifies a payload object that defines the supply lists to be added, removed or cleared. Refer to SiteLists Object for more details. |
| Y |
| body | A read-only array that displays the supply lists which are marked as Included. |
| N/A |
| body | A read-only array that displays the supply lists, which are marked as Excluded. |
| N/A |
SiteLists Object
Field | Description | Data Type |
---|---|---|
| Specifies a
|
|
| Specifies an array of supply lists to be removed. An array of IDs. |
|
| Indicates if all existing supply lists should be removed. |
|
| Specifies an array of targeting types to update, enable or disable.
To learn more, refer to Targeting Types. |
|
Read Supply List Targets
Retrieves a list of supply lists that may be targeted.
GET https://api.admanagerplus.yahoo.com/traffic/targeting/sitelists?lineId={lineId}&page={page}&limit={limit}&sort={sort}&dir={dir}&query={query}
All of the accepted parameters are query parameters.
Parameters
Parameter | Description | Data Type | Required |
---|---|---|---|
| Specifies the line ID. |
| Y |
| Specifies the page number. |
| N |
| Specifies the total number of items to return. Maximum allowed value is 100. |
| N |
| Specifies the column to sort by. |
| N |
| Specifies the sort direction. Valid values:
|
| N |
| Specifies the Search term. Use URL encoding conventions (i.e. a space should be replaced with a |
| Y |
Sample Request URL
GET https://dspapi.admanagerplus.yahoo.com/traffic/targeting/sitelists?limit=3&lineId=365277&query=test
Sample Response
{
"response": [
{
"id": 56919,
"name": "Test Mobile 11/28",
"createdAt": "2016-11-29T01:00:47Z"
"type": "APP_LIST"
},
{
"id": 200346,
"name": "SellerID Test",
"createdAt": "2025-09-05T00:00:36Z",
"type": "SELLER_ID_LIST"
},
{
"id": 62187,
"name": "test site list",
"createdAt": "2017-05-31T22:35:59Z"
"type": "SITE_LIST"
}
],
"errors": null,
"timeStamp": "2017-08-03T05:18:34Z"
}
Add/Update Supply Lists Targeting
Add or update supply lists 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
{
"siteLists": {
"removed": [],
"clearAll": false,
"added": [
{
"excluded": false,
"entityId": 62187
},
{
"excluded": true,
"entityId": 90950
}
]
},
"types": [
{
"name": "SITE_LISTS",
"isTargeted": true
}
]
}
Sample Response
{
"response": {
"types": [
{
"name": "SITE_LISTS",
"isTargeted": true
}
],
"siteListsIncluded": [
{
"id": 62187,
"name": "test site list",
"accountName": "Test_video_karim",
"createdAt": "2017-05-31T22:35:59Z",
"updatedAt": "2017-05-31T23:35:01Z",
"totalSites": 8,
"type": "SITE_LIST"
}
],
"siteListsExcluded": [
{
"id": 90950,
"name": "test222",
"accountName": "Traffic API ADV",
"createdAt": "2018-11-13T00:50:23Z",
"updatedAt": "2018-11-13T00:52:11Z",
"totalSites": 3,
"type": "APP_LIST"
}
],
"errors": null,
"timeStamp": "2018-01-12T01:57:40Z"
}
}