Supply path optimization (SPO) ensures that advertisers buy the right inventory, at the right price, from the right sources — leading to better outcomes across the board through the process of identifying and grouping specific inventory based on various factors like audience segments, publisher quality and ad formats.
Target SPO data in the DSP API from top trusted leaders in supply curation, such as Jounce, by using the CURATION targeting type in order to curate across scaled inventory and optimize supply objectives.
Endpoint
traffic/lines/{lineId}/targetingUse the following HTTP methods:
Use the
GETmethod to view line targeting.Use the
POSTmethod to update line targeting.
Required and Supported Parameters
Jounce Contextual Object
The Jounce contextual object contains the following fields.
Field | Description | Data Type | Create | Update |
|---|---|---|---|---|
| The ID of the Jounce SPO contextual. |
| N/A Read Only | N/A Read Only |
| The name of the Jounce SPO contextual.
|
| N/A Read Only | N/A Read Only |
| Taxonomy level ID. |
| N/A Read Only | N/A Read Only |
Read Jounce SPO Targeting Taxonomy
Use this endpoint to retrieve the Jounce contextual Id to target on a line.
Sample Request URL
GET /traffic/contextuals/jounceSample Response
{
"response": [
{
"id": "60368",
"name": "Premium Publisher-Controlled",
"level": "69"
},
{
"id": "60369",
"name": "Premium Intermediary-Controlled",
"level": "69"
},
{
"id": "60371",
"name": "Multi-Hop Reselling",
"level": "69"
},
{
"id": "60372",
"name": "Cheap Reach",
"level": "69"
},
{
"id": "60885",
"name": "Made for Advertising",
"level": "69"
}
],
"errors": null,
"timeStamp": "2025-11-10T21:43:40.010Z"
}Add/Update Jounce Supply Path Optimization Targeting
After retrieving a Jounce contextual Id using the GET endpoint, add it to the line to target it by using the following POST endpoint.
POST /traffic/lines/{lineId}/targetingParameters
The line ID is specified in the path of the URL. All other parameters are specified in the body of the application/json payload.
Parameters | Description | Data Type | Required/Optional |
|---|---|---|---|
| Object that contains SPO targeting. |
| Required |
| Array of Jounce contextual ids to be added. |
| Optional |
| Array of Jounce contextual Ids to be removed. |
| Optional |
| Indicates if all existing targeted Jounce contextuals should be removed. By default, the value is
|
| Optional |
| Specifies an array of targeting types. |
| Required |
Sample Request URL
POST traffic/lines/{lineId}/targeting Sample Request (Line-Level)
{
"curationContextuals": {
"addedJounceContextual": [
60368,
60369
],
"removed": [],
"clearAll": false
},
"types": [
{
"isTargeted": true,
"name": "CURATION"
}
]
}Sample Response (Line-Level)
"response": {
…
"curationContextuals": [
{
"id": 60368,
"accountId": 123,
"name": "Premium Publisher-Controlled",
"updatedAt": "2025-06-18T08:11:56Z",
"categories": [
{
"id": 458493,
"categoryId": 55006767
}
],
"taxonomyType": "JOUNCE_SPO_CURATION"
},
{
"id": 60369,
"accountId": 123,
"name": "Premium Intermediary-Controlled",
"updatedAt": "2025-06-18T08:11:56Z",
"categories": [
{
"id": 458494,
"categoryId": 55006768
}
],
"taxonomyType": "JOUNCE_SPO_CURATION"
}
]
},
"errors": null,
"timeStamp": "2025-11-06T21:43:12.934Z"
}Read Jounce Supply Path Optimization Targeting
Retrieve the current Jounce targeting for a specified line.
GET /traffic/lines/{lineId}/targetingParameters
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
GET traffic/lines/{lineIid}/targetingSample Response
{
"response": {
…
"curationContextuals": [
{
"id": 60368,
"accountId": 123,
"name": "Premium Publisher-Controlled",
"updatedAt": "2025-06-18T08:11:56Z",
"categories": [
{
"id": 458493,
"categoryId": 55006767
}
],
"taxonomyType": "JOUNCE_SPO_CURATION"
},
{
"id": 60369,
"accountId": 123,
"name": "Premium Intermediary-Controlled",
"updatedAt": "2025-06-18T08:11:56Z",
"categories": [
{
"id": 458494,
"categoryId": 55006768
}
],
"taxonomyType": "JOUNCE_SPO_CURATION"
}
]
},
"errors": null,
"timeStamp": "2025-11-06T21:43:12.934Z"
}