Skip to main content
POST
/
v1
/
ad-stack
/ad-stack
curl --request POST \
  --url https://api.tagdeliver.com/v1/ad-stack \
  --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": 815
  },
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

uid
integer
default:<integer>

Publisher ID

Body

application/json
stack
object[]
required

Lists the connected integrations

config
object

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)

name
string

Response

200 - application/json
results
object
required
success
boolean
required