S2S Integration

Flow

Mobile Developer

Interstitial (Full Screen)

Banner

Mraid

Mraid

VAST

VAST

Display.io Server

Ad Requests

Ad Tags

RTB

 

S2S

Ad Resposes

JSON(P)

*(not Jason)

Server Side Flow

Ad Tags

Fill Rate

<?php
foreach (AdTags) {
    $priority = $CPM * $FillRate;
}
sortTagsByProirity();
if ($winnerTagFillRate < 75%) {
    takeAdditionalAd();
}
bidList->push($tagAdBid);

RTB

 

 

 

 

 

 

Ad Request

<?php
# /brand/endpoints/sdk/srv.php
initHttpPool();
initiateDemandRequests($request, $httpPool); // AdTag + RTB
execHttpPool(); // http_multi
$resp = $placement->getResponse($request);
//...
# /brand/lib/core/rtb/RtbAuction.php
$adBid = new AdBid(...$winningBid);
bidList()->push($adBid);

S2S

<?php // S2SAdapter
function adjustRequest(BidRequest $bidRequest);
function adjustBeforeResponse(Response $httpResponse, BidResponse $bidResponse);

Ad Response

Setup S2S

Exchange

Setup S2S

VAST

Setup S2S

Display

Setup S2S

Dead Imps

{
  "sig": "3a57b12efbedb23ec1bae8d18ef4606",
  "data": {
    "action": "getPlacement",
    "app": "1",
    "placement": "1",
    "data": {
      "yob": 1996,
      "gender": "M",
      "keywords": [
        "house of cards",
        "ronaldo",
        "lamborghini",
        "pubg",
        "apple",
        "iphone"
      ]
    },
    "consent": {
      "state": "UNKNOWN",
      "changed": false
    },
    "iabConsent": {
      "IABConsent_CMPPresent": false,
      "IABConsent_SubjectToGDPR": "CMPGDPRUnknown",
      "IABConsent_ConsentString": "",
      "IABConsent_ParsedPurposeConsents": "",
      "IABConsent_ParsedVendorConsents": ""
    },
    "device": {
      "product": "tissot",
      "os": "android",
      "cpuModel": "",
      "cpuVendor": "",
      "h": "1920",
      "cpuArch": "aarch64",
      "locale": "en-US,ru-UA",
      "ua": "Mozilla\/5.0 (Linux; Android 9; Mi A1 Build\/PKQ1.180917.001; wv) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/72.0.3626.105 Mobile Safari\/537.36",
      "osver": "9",
      "carrier": "",
      "cpuCores": "1",
      "w": "1080",
      "fingerprint": "xiaomi\/tissot\/tissot_sprout:9\/PKQ1.180917.001\/V10.0.4.0.PDHMIXM:user\/release-keys",
      "model": "Mi A1",
      "inch": "5.399282279613477",
      "net": "wifi",
      "make": "Xiaomi",
      "brand": "xiaomi",
      "hardware": "qcom",
      "dnt": false,
      "ids": {
        "google_aid": "8f156dd1-c343-46e9-b305-49de868161db"
      }
    },
    "geo": {
      "lat": "",
      "lng": "",
      "precision": ""
    },
    "sdkVer": "2.0.1.0-dev",
    "integration":"sdk",
    "pkgName": "io.display.sdk",
    "emulatedIp": "4.231.233.0"
  }
}

Requests/Responses

SDK

{
    "action":"getPlacement",
    "app":"2",
    "placement":"3",
    "device":{  "ua":"Mozilla%2F5.0%20%28Linux%3B%20Android%209%3B%20Android%20SDK%20built%20for%20x86%20Build%2FPSR1.180720.075%3B%20wv%29%20AppleWebKit%2F537.36%20%28KHTML%2C%20like%20Gecko%29%20Version%2F4.0%20Chrome%2F69.0.3497.100%20Mobile%20Safari%2F537.36",
        "dnt":"0",
        "locale":"en-US",
        "idfa":"6eadf392-7805-4ed3-9ce5-1ef364be3ee3"
    },
    "geo":{"lat":27.94,"lng":-82.45},
    "varJSONP":"adsData",
    "integration":"js"
}
http://appsrv.displayio.loc/srv?data=%7B%22action%22%3A%22getPlacement
%22%2C%22app%22%3A%222%22%2C%22placement
%22%3A%223%22%2C%22device%22
%3A%7B%22ua%22%3A%22Mozilla%252F5.0%2520
%2528Linux%253B%2520Android
%25209%253B%2520Android%2520SDK%2520built
%2520for%2520x86%2520Build
%252FPSR1.180720.075%253B%2520wv%2529
%2520AppleWebKit%252F537.36
%2520%2528KHTML%252C%2520like%2520Gecko
%2529%2520Version%252F4.0
%2520Chrome%252F69.0.3497.100%2520Mobile
%2520Safari%252F537.36
%22%2C%22dnt%22%3A%220%22%2C%22locale
%22%3A%22en-US%22%7D%2C%
22geo%22%3A%7B%22lat%22%3A27.94%2C%22lng
%22%3A-82.45%7D%2C%22
varJSONP%22%3A%22adsData%22%2C%22
integration%22%3A%22JS%22%7D

JS

  "exchange": {
    "exchange": "S2S_video",
    "exchange_id": 3
  },
  "price": 1,
  "bidData": {
    "advertiser": "Olga Savko_Test Advertiser_edited",
    "advertiser_id": 1359,
    "seat_id": "0:::",
    "deal_id": null
  },
  "markup": "<?xml version=\"1.0\" encoding=\"utf-8\"?><VAST version=\"3.0\"><Ad id=\"1360349\"><Wrapper><AdSystem>Undertone</AdSystem><VASTAdTagURI><![CDATA[https://ads.sparkflow.net/vast/?g=33573&v3&x=189340&vv=3&udms_encode=eyJ1ZG1zIjp7InJpZCI6Inlpd2wzZ3hwbzFzb2dnYjB5Ymd4aXo5ZSIsInppZCI6IjE4OTM0MCIsImNpZCI6IjMzNTM2NyIsImJpZCI6IjEzNjAzNDkifX0=]]></VASTAdTagURI><Error><![CDATA[https://ads.undertone.com/e?bannerid=1360349&campaignid=335367&zoneid=189340&cb=84beeba74d5a4cfe88f2e08f537ba06b&bk=ppqyt1&id=yiwl3gxpo1soggb0ybgxiz9e&stid=215&uasv=v22&inapp=1&deviceid=d2a0f393-023c-41b1-bcc7-db88e91c7298&e=error&eid=[ERRORCODE]]]></Error><Impression><![CDATA[https://ads.undertone.com/l?

VAST

RTB responses

"exchange": {
    "exchange": "S2S_display",
    "exchange_id": 2
  },
  "price": 30,
  "bidData": {
    "advertiser": "Olga Savko_Test Advertiser_edited",
    "advertiser_id": 1359,
    "seat_id": "0:::",
    "deal_id": null
  },
  "markup": "<html><head><title>Advertisement</title></head><body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\" style=\"background-color:transparent;width:100%;text-align:center;\"><script src=\"mraid.js\"></script><script type=\"text/javascript\">var sf_tag = 1; var ut_udms={ udms:{rid:'9j4sl7i498i71yrnmp8iffqux',zid:'187068',cid:'335457',bid:'1360594'}}; var ut_clickurl = 'https://ads.undertone.com/c?oaparams=2__deviceid=d2a

Display

Made with Slides.com