Skip to main content

Sample

SAMPLE OF JSON'S REQUEST AND RESPONSE

request

{
"id": "5f0417f6354b680001e94518",
"imp": [
{
"id": "1",
"video": {
"mimes": ["video/mp4"],
"minduration": 0,
"maxduration": 46,
"protocols": [2, 5],
"w": 720,
"h": 1422,
"linearity": 1,
"minbitrate": 250,
"maxbitrate": 15000,
"boxingallowed": 1,
"playbackmethod": [1, 2, 3, 4],
"delivery": [2, 1],
"pos": 7,
"ext": {
"skip": 0,
"videotype": "rewarded",
"rewarded": 1
}
},
"pmp": {
"private_auction": 0,
"deals": [
{
"id": "5e463ac3413fc600161ca063",
"bidfloor": 2.5,
"bidfloorcur": "USD",
"at": 2
},
{
"id": "5e539622ecaffc0016745c14",
"bidfloor": 2.5,
"bidfloorcur": "USD",
"at": 2
}
]
},
"displaymanager": "testDroid",
"displaymanagerver": "6.4.11",
"tagid": "RW_12-7662426",
"bidfloor": 1,
"bidfloorcur": "USD",
"secure": 1,
"ext": {
"openrtb25x": {
"skip": 0
},
"metric": [
{
"type": "viewability",
"vendor": "moat"
}
]
}
}
],
"app": {
"id": "5afa947e9c8119360fba1bea",
"name": "testApp123",
"bundle": "com.test.bundle",
"storeurl": "https:play.google.com/store/apps/details?id=com.test.bundle",
"cat": ["IAB1", "IAB9", "IAB25-7"],
"privacypolicy": 1,
"publisher": {
"id": "5a9f8641bacdc27c1e009703",
"cat": ["IAB1", "IAB9"]
},
"keywords": "managed",
"sdk": {
"name": "testDroid",
"ver": "6.4.11"
},
"bundleid": "com.test.bundle",
"accountid": "5a9f8641bacdc27c1e005620"
},
"device": {
"ua": "Mozilla/5.0 (Linux; Android 9; SM-A207F Build/PPR1.180610.011; wv) AppleWebKit/537.36 KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.136 Mobile Safari/537.36",
"geo": {
"lat": -7.2484,
"lon": 112.7419,
"type": 2,
"ipservice": 3,
"country": "IDN",
"region": "JI",
"city": "Surabaya"
},
"dnt": 0,
"lmt": 0,
"ip": "115.178.227.128",
"devicetype": 1,
"make": "samsung",
"model": "SM-A207F",
"os": "android",
"osv": "9",
"h": 1422,
"w": 720,
"language": "id",
"carrier": "Smartfren - Stay Safe | Smartfren",
"connectiontype": 3,
"ifa": "5ef57c14-d642-447f-ace9-543262c458bc",
"ext": {
"test": {
"isSdCardAvailable": 1,
"testua": "testDroid/6.4.11",
"timezone": "Asia/Jakarta",
"tz": "Asia/Jakarta",
"sdcard": 1,
"volume": 0.53333336,
"muted": 1,
"is_sideload_enabled": 0,
"id": "5ef57c14-d642-447f-ace9-543262c458bc",
"id_source": "IFA",
"marketplace": "google"
}
}
},
"user": {
"ext": {
"consent": 1
}
},
"at": 2,
"tmax": 1000,
"cur": ["USD"],
"bcat": [
"IAB7-3",
"IAB7-5",
"IAB7-28",
"IAB7-29",
"IAB7-30",
"IAB7-39",
"IAB7-41",
"IAB7-42",
"IAB7-44",
"IAB8-5",
"IAB8-18",
"IAB9-9",
"IAB11",
"IAB14-1",
"IAB14-2",
"IAB14-3",
"IAB14-4",
"IAB14-8",
"IAB18-2",
"IAB23",
"IAB25-1",
"IAB25-2",
"IAB25-3",
"IAB25-4",
"IAB25-5",
"IAB25-6",
"IAB26"
],
"source": {
"ext": {
"schain": {
"complete": 1,
"nodes": [
{
"asi": "test.com",
"sid": "5a9f8641bacdc27c1e009703",
"rid": "5f0417f6354b680001e94518",
"hp": 1
}
],
"ver": "1.0"
}
}
},
"regs": {
"ext": {
"gdpr": 0,
"us_privacy": "1---"
}
},
"ext": {
"schain": {
"complete": 1,
"nodes": [
{
"asi": "test.com",
"sid": "5a9f8641bacdc27c1e009703",
"rid": "5f0417f6354b680001e94518",
"hp": 1
}
],
"ver": "1.0"
},
"moat_sdk": 1
}
}

response

{
"id": "58ed309efa8936087efd1349",
"bidid": "5508",
"cur": "USD",
"seatbid": [
{
"seat": "7735",
"bid": [
{
"id": "5508",
"impid": "58ed309efa8936087efd134a",
"price": 50,
"nurl": "http://bidder.com/won?price=${AUCTION_PRICE}",
"adm": "<VAST version=\"2.0\"><Ad><InLine><AdTitle>YOUR_AD_NAME</AdTitle><Impression><![CDATA[https://YOUR_IMPRESSION_TRACKING_URL?ttdsp_price=${AUCTION_PRICE}]]></Impression><Creatives><Creative id=\"YOUR_CREATIVE_ID\"><Linear><Duration>00:00:18</Duration><TrackingEvents><Tracking event=\"start\"><![CDATA[https://YOUR_IMPRESSION_TRACKING_URL_START_PLAY]]></Tracking><Tracking event=\"complete\"><![CDATA[https://YOUR_IMPRESSION_TRACKING_URL_START_COMPLETE]]></Tracking></TrackingEvents><VideoClicks><ClickThrough><![CDATA[https://YOUR_DESTINATION_URL_TO_DOWNLOAD_BY_CLICK]]></ClickThrough><ClickTracking><![CDATA[https://YOUR_CLICK_TRACKING_URL]]></ClickTracking></VideoClicks><MediaFiles><MediaFile delivery=\"progressive\" type=\"video/mp4\" width=\"1280\" height=\"720\"> <![CDATA[https://YOUR_AD_VIDEO.mp4]]></MediaFile></MediaFiles></Linear></Creative></Creatives><Description>Longer description of ad</Description></InLine></Ad></VAST>",
"cid": "554d550b418461cc3700014d",
"crid": "57767c29a63510e75f000073"
}
]
}
]
}