PATCH /api/demand/[demand_id]/callbacks

Requested param is an array of callbacks with the following properties

Attribute Name
Summary
Required
Possible Values
urlCallback URLyesurl
eventIdCallback Event Idyes
  • Ad Start=2
  • Ad Complete=3
  • Ad Click=4
typeIdCallback Type Idyes
  • URL request = 0
  • JS run = 1 (eventId should be 2)

 

Updating Demand’s Callback List (eg. Ad Start, Ad Complete, Ad Click)
curl -X PATCH \
-H 'accept: application/json'
-H 'api-version: 1'
-H 'content-type: application/x-www-form-urlencoded'
-H 'authorization: Bearer '
 
Sample Response
{
 "status": "OK",
 "data": "Callbacks updated"
}