curl --request PUT \
--url https://api.tagdeliver.com/v1/ad-stack/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"config": {
"ad_demand": {
"bidderTimeout": 50,
"syncDelay": 1000,
"priceGranularity": "dense",
"useBidCache": true,
"enableTIDs": false,
"s2sConfig": {
"timeout": 1000
},
"throttling": {
"thresholdType": "count",
"thresholdValue": 3,
"actions": {
"actionTarget": "page_view"
},
"scope": "ad_unit",
"filter": {
"type": "include",
"list": []
},
"enabled": true
}
},
"ad_server/2": {
"ad_unit": "jamiedruce.io__2",
"mcm": "5568767400"
},
"fallback/676": {
"weight": 1
},
"fallback/760": {
"weight": 1
}
},
"name": "Jamies Ad Stack",
"stack": [
{
"id": 2,
"type": "ad_server"
},
{
"id": 676,
"type": "fallback"
},
{
"id": 760,
"type": "fallback"
},
{
"id": 838,
"type": "ad_tech"
},
{
"id": 839,
"type": "ad_tech"
}
]
}
'{
"results": {
"id": 338
},
"success": true
}Updates an existing ad stack. Call the /v1/ad-stack/integration endpoint to find available integrations, and call the /v1/ad-stack/integration// endpoint to find the field requirements for each integration. Note: There is a unique integration for high level overarching configuration (things like bid throttling, time outs etc), this is not listed in /v1/ad-stack/integration, but has the type of “ad_demand” and the id of “ad_demand” (/v1/ad-stack/integration/ad_demand/ad_demand shows the field options available)
curl --request PUT \
--url https://api.tagdeliver.com/v1/ad-stack/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"config": {
"ad_demand": {
"bidderTimeout": 50,
"syncDelay": 1000,
"priceGranularity": "dense",
"useBidCache": true,
"enableTIDs": false,
"s2sConfig": {
"timeout": 1000
},
"throttling": {
"thresholdType": "count",
"thresholdValue": 3,
"actions": {
"actionTarget": "page_view"
},
"scope": "ad_unit",
"filter": {
"type": "include",
"list": []
},
"enabled": true
}
},
"ad_server/2": {
"ad_unit": "jamiedruce.io__2",
"mcm": "5568767400"
},
"fallback/676": {
"weight": 1
},
"fallback/760": {
"weight": 1
}
},
"name": "Jamies Ad Stack",
"stack": [
{
"id": 2,
"type": "ad_server"
},
{
"id": 676,
"type": "fallback"
},
{
"id": 760,
"type": "fallback"
},
{
"id": 838,
"type": "ad_tech"
},
{
"id": 839,
"type": "ad_tech"
}
]
}
'{
"results": {
"id": 338
},
"success": true
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Lists the connected integrations
Show child attributes
Fields configured for any integration in the stack. Key is in the format {integration_type}/{integration_type} or simply ad_demand for overaching configuration options. Value of each key is an object specific to that integration (integration schemas can be retrieved from /ad-stack/integration/:type/:id)
Was this page helpful?