v1
latestOpenAPI 3.1.02026-07-2616636641.7 KBDecision API
The Decision API enables you to make ad requests without using ad code. By posting to a RESTful endpoint, Kevel's ad engine will return decision data and creative contents that can be used to serve ads in your application.You'll want to set the Content-Type in the header as application/json. The API will also accept text/plain to support applications that cannot change the content type
post/api/v2
Path parameters
networkIdinteger required
Your account (network) ID
Request body
Response
200
Example response
{
"user": {
"key": "abc"
},
"decisions": {
"div0": {
"adId": 1111,
"creativeId": 2222,
"flightId": 3333,
"campaignId": 4444,
"advertiserId": 5555,
"priorityId": 6666,
"clickUrl": "https://e-23.adzerk.net/r?...",
"contents": [
{
"type": "html",
"body": "<a href='...'><img src='https://static.adzerk.net/Advertisers/cat.jpg' title='ZOMG A CAT' width='350' height='350'></a>",
"template": "image",
"data": {
"imageUrl": "https://static.adzerk.net/cat.jpg",
"title": "ZOMG A CAT",
"width": 350,
"height": 350,
"customData": {
"headline": "Test Headline",
"cta": "Download Here"
}
}
}
],
"impressionUrl": "https://e-23.adzerk.net/i.gif?...",
"events": [
{
"id": 12,
"url": "https://e-23.adzerk.net/e.gif?..."
}
],
"pricing": {
"price": 5,
"clearPrice": 2.01,
"revenue": 0.002,
"rateType": 2,
"eCPM": 5
}
}
},
"candidateRetrieval": {
"div0": {
"candidatesFoundCount": 1
}
}
}