Примеры запросов и ответов

Native

Request

{
badv:[
"domain.com"
],
id:"a9b150f6_7aa5c7c6-a1c0-449f-b512-31e18d1e59ee",
user:{
id:"1d671099-d301-4140-a943-72ac8724f6ba",
ext:{
cookie_age:175,
ug:1
},
buyeruid:"i6r3euFeOqV5"
},
device:{
model:"Other",
language:"en",
geo:{
country:"US",
city:"Milwaukee",
region:"WI",
zip:"53211"
},
osv:"",
os:"Windows",
devicetype:2,
ip:"174.103.174.178",
ua:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36",
dnt:0
},
tmax:190,
cur:[
"USD"
],
source:{
pchain:"-35d5010d7789b49d:"
},
bcat:[
"IAB25-3",
"BSW1",
"BSW2",
"BSW10",
"BSW4",
"IAB26"
],
ext:{
wt:1,
clktrkrq:0,
is_secure:1,
media_src:"name",
ssp:"name"
},
imp:[
{
bidfloor:0.216432,
id:"1",
native:{
request:{
privacy:0,
plcmtcnt:10,
assets:[
{
title:{
len:120
},
id:0,
required:1
}
],
eventtrackers:[
{
methods:[
1,
2
],
event:1
}
],
seq:0,
adunit:5,
ver:"1.2"
}
},
exp:3610,
tagid:"rfUAWiSlRtXnA8yd1yzSrixvk9fwU_gD4ewNVEuC",
bidfloorcur:"USD",
ext:{

},
secure:1,
instl:0
}
],
site:{
id:"13078",
publisher:{
domain:"domain.com",
id:"767",
name:"name",
cat:[
"IAB1",
"IAB2",
"IAB3",
"IAB4",
"IAB5",
"IAB8",
"IAB7",
"IAB9",
"IAB11",
"IAB12",
"IAB14",
"IAB19"
]
},
cat:[
"IAB5",
"IAB3",
"IAB8",
"IAB12",
"IAB19",
"IAB14",
"IAB1",
"IAB7",
"IAB11",
"IAB2",
"IAB4",
"IAB9"
],
domain:"domain.com",
ext:{

},
page:"https://www.domain.com/"
},
at:2
}

Response

{
id:"a9b150f6_7aa5c7c6-a1c0-449f-b512-31e18d1e59ee",
cur:"USD",
seatbid:[
{
bid:[
{
price:0.54,
id:"2907940",
impid:"1",
adid:"2907940",
nurl:"https://notify.mgid.com",
burl:"https://notify.mgid.com",
adm:"{" native":{
"ver":"1",
"link":{
"url":"https://www.mgid.com"
},
"assets":[
{
"id":0,
"required":0,
"title":{
"text":"text"
}
},
{
"id":0,
"required":0,
"img":{
"type":3,
"url":"https://imggprx.mgid.com"
}
}
],
"imptrackers":[
"https://notify.mgid.com"
]
}
} ",
iurl: " https://imgg-cdn.mgid.com",
cid:"521725",
crid:"2907940",
cat:[
"IAB19-6"
],
adomain:[
"domain.com"
],
ext:{
place:0,
native:{
ver:"1",
link:{
url:"https://www.mgid.com"
},
assets:[
{
id:0,
required:0,
title:{
text:"text"
}
},
{
id:0,
required:0,
img:{
type:3,
url:"https://imggprx.mgid.com"
}
}
],
imptrackers:[
"https://notify.mgid.com"
]
}
}
},

] seat:"521688"
}

Banner для сайтов

Request

{
id:"87f5dbf8-8953-4df1-b142-838be6c19114",
imp:[
{
id:"19442099-cc47-401b-9156-8c4c363cd10c",
banner:{
w:728,
h:90
},
tagid:"7cef2e8a4c6949eca7d978b314c025d3",
bidfloor:0.011000000000000001
}
],
site:{
id:"337",
domain:"www.domain.com",
page:"http://www.domain.com/"
},
device:{
ua:"Mozilla/5.0 (Windows NT 10.0; WOW64; rv:61.0) Gecko/20100101 Firefox/61.0",
geo:{
type:2,
country:"DEU"
},
ip:"84.139.64.154",
devicetype:2,
os:"Windows 10",
js:1,
language:"de",
ext:{
acceptlang:"de,en-US;q=0.7,en;q=0.3"
}
},
user:{
id:"b48792f1-af65-4eaa-bef7-9d21a7deb870",
geo:{
type:2,
country:"DEU"
}
},
at:2,
tmax:150,
cur:[
"USD"
]
}

Response

{
id:"87f5dbf8-8953-4df1-b142-838be6c19114",
bidid:"87f5dbf8-8953-4df1-b142-838be6c19114",
cur:"USD",
seatbid:[
{
bid:[
{
price:0.03,
h:90,
w:728,
id:"1",
impid:"19442099-cc47-401b-9156-8c4c363cd10c",
adid:"291130_561806-511451",
nurl:"https://notify.mgid.com",
adm:"<span style="font-weight: 400;"><script> var s1='2550885949'</script><!-- Composite Start --> <div id="M354813ScriptRootC264358"> <div id="M354813PreloadC264358"> Loading... </div> <script> (function(){ var D=new Date(),d=document,b='body',ce='createElement',ac='appendChild',st='style',ds='display',n='none',gi='getElementById'; var i=d[ce]('iframe');i[st][ds]=n;d[gi]("M354813ScriptRootC264358")[ac](i);try{var iw=i.contentWindow.document;iw.open = HTMLDocument.prototype.open;iw.open();iw.writeln("<ht"+"ml><bo"+"dy></bo"+"dy></ht"+"ml>");iw.close();var c=iw[b];} catch(e){var iw=d;var c=d[gi]("M354813ScriptRootC264358");}var dv=iw[ce]('div');dv.id="MG_ID";dv[st][ds]=n;dv.innerHTML=264358;c[ac](dv); var s=iw[ce]('script');s.async='async';s.defer='defer';s.charset='utf-8';s.src="https://jsc.mgid.com/t/s/mgid.com.264358.js?t="+D.getYear()+D.getMonth()+D.getDate()+D.getHours();c[ac](s);})(); var C264358DisableStart = true; var _mgq=_mgq||[]; _mgq.push(["LoadGoods264358",[ ["","2541216","1","text!","","0",""," "," ","sUVWS4lSdAdpE8Lt7VMVvqZ9jX_Th41qVebMs7aID7hPeY8_KWAL6_gqbaAyDEDp",{"i":"https://imgg-cdn.mgid.com","l":"//www.mgid.com","adc":[],"sdl":0,"dl":"","type":"w","clicktrackers":[]} ],["","2848801","1","something","","0",""," "," ","sUVWS4lSdAdpE8Lt7VMVvqsLSxrCkRn_t3BwgnvxZYLD-Xb6ETbkKcbLMK1rEq5u",{"i":"https://imgg-cdn.mgid.com","l":"//www.mgid.com","adc":[],"sdl":0,"dl":"","type":"w","clicktrackers":[]} ],["","2847605","1","Text","","0",""," "," ","sUVWS4lSdAdpE8Lt7VMVvkp34PwB--MNpj1tetczqhjLGQ-Tr6oQzVyJtpfKKXJ2",{"i":"https://imgg-cdn.mgid.com","l":"//www.mgid.com","adc":[],"sdl":0,"dl":"","type":"w","clicktrackers":[]} ]],{"awc":{},"dt":"desktop","ts":"","tt":"","isBot":0,"h2":"Lf4A7TQ-9fzRHPVbb--trLXB6o71t44bIfJ2ThSkKus*","rid":"fd84acb2-b045-11e8-8a49-1866da7c8199"}]); </script> </div> <!-- Composite End --></span>",
iurl:"https://imgg-cdn.mgid.com",
cid:"484564",
crid:"291130_561806-511451",
cat:[
"IAB9-30",
"IAB14-1",
"IAB14-1"
],
adomain:[
"mgid.com",
"mgid.com"
]
}
],
seat:"484564/514562"
}
]
}

Banner для приложений

Request

{
badv:[

],
app:{
publisher:{
id:"9"
},
name:"name",
bundle:"bundle",
cat:[
"IAB14"
],
paid:0,
id:"37",
storeurl:"https://domane.com"
},
regs:{
ext:{
gdpr:0
}
},
id:"4927bce7a04a6dae9736a1d2d9bf0724",
imp:[
{
pmp:{
deals:[

],
private_auction:0
},
secure:0,
clickbrowser:1,
tagid:"110",
bidfloorcur:"USD",
banner:{
format:[
{
h:50,
w:320
}
],
h:50,
pos:5,
battr:[
1,
3,
6,
7,
8,
9,
10,
13,
14,
16
],
api:[
3,
5
],
w:320,
btype:[
4
],
id:"110"
},
id:"69ace5b5403e5d0ce9dbf17c2dfdad13",
bidfloor:0.5571428571428572
}
],
ext:{
location:"strip"
},
at:2,
device:{
os:"iOS",
h:50,
connectiontype:2,
js:1,
geo:{
lat:41.6929,
country:"USA",
lon:-111.8147,
city:"Providence",
type:2
},
dnt:1,
carrier:"Hosting Services",
devicetype:1,
ifa:"00000000-0000-0000-0000-000000000000",
w:320,
ip:"209.95.56.97",
ua:"Mozilla/5.0 (iPhone; CPU iPhone OS 11_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15G77"
},
bcat:[
"IAB24",
"IAB25",
"IAB26"
],
bapp:[

],
tmax:200,
user:{
id:"000861afe31ed5b51a30087f234a0248f5b591ee"
}
}

Response

{
id:"4927bce7a04a6dae9736a1d2d9bf0724",
bidid:"4927bce7a04a6dae9736a1d2d9bf0724",
cur:"USD",
seatbid:[
{
bid:[
{
price:0.92,
h:50,
w:320,
id:"1",
impid:"69ace5b5403e5d0ce9dbf17c2dfdad13",
adid:"2909694",
nurl:"http://notify.mgid.com/",
adm:"<span style="font-weight: 400;"><script> var s1='4139521618'</script><!-- Composite Start --> <div id="M355077ScriptRootC272165"> <div id="M355077PreloadC272165"> Loading... </div> <script> (function(){ var D=new Date(),d=document,b='body',ce='createElement',ac='appendChild',st='style',ds='display',n='none',gi='getElementById'; var i=d[ce]('iframe');i[st][ds]=n;d[gi]("M355077ScriptRootC272165")[ac](i);try{var iw=i.contentWindow.document;iw.open = HTMLDocument.prototype.open;iw.open();iw.writeln("<ht"+"ml><bo"+"dy></bo"+"dy></ht"+"ml>");iw.close();var c=iw[b];} catch(e){var iw=d;var c=d[gi]("M355077ScriptRootC272165");}var dv=iw[ce]('div');dv.id="MG_ID";dv[st][ds]=n;dv.innerHTML=272165;c[ac](dv); var s=iw[ce]('script');s.async='async';s.defer='defer';s.charset='utf-8';s.src="https://jsc.mgid.com"+D.getYear()+D.getMonth()+D.getDate()+D.getHours();c[ac](s);})(); var MGIDC272165DisableStart = true; var _mgq=_mgq||[]; _mgq.push(["MGIDLoadGoods272165",[ ["","2909694","1","text","","0","","$4.95","$29.99","en_yVKlDHwNNsrpaHXD7_jzsQlcT-qdNfarYNZLmEUnV2U0SJr1bgrdZzDhgfAMQ",{"i":"http://imgg-cdn.mgid.com"l":"//www.mgid.com","adc":[],"sdl":1,"dl":"","type":"w","clicktrackers":[]} ]],{"awc":{},"dt":"mobile","ts":"","tt":"","isBot":0,"h2":"8ZgePe1CJvC1AzM-J0Y0I1lBrYxyUp2E5JVj1l4HvK8*","rid":"041e12ad-b043-11e8-8a49-1866da7c8199"}]); </script> </div> <!-- Composite End --></span>",
iurl:"http://imgg-cdn.mgid.com",
cid:"522451",
crid:"2909694",
cat:[
"IAB7-44"
],
adomain:[
"domain.com"
]
}
],
seat:"522451"
}
]
}

Push

Request

{
id:"7618681618860800663",
imp:[
{
id:"1",
secure:1,
native:{
request:"{" native":{
"plcmtcnt":1,
"assets":[
{
"id":1,
"title":{
"len":70
}
},
{
"id":2,
"img":{
"type":3,
"wmin":50,
"hmin":50
}
}
]
}
} "
}
}
],
site: {
id: " 21886 ",
domain: " domain.com",
publisher:{
id:"32526"
}
},
device:{
dnt:0,
lmt:0,
ua:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36",
ip:"185.245.86.198",
geo:{
lat:25.7806,
lon:-80.1826,
country:"USA",
region:"FL",
city:"Miami",
zip:"33132",
type:2
},
carrier:"M247 Europe SRL",
os:"MacOs",
osv:"X",
connectiontype:1,
devicetype:2
},
user:{

},
at:2,
tmax:1594,
cur:[
"USD"
]
}

Response

{
id:"7618681618860800663",
cur:"USD",
seatbid:[
{
bid:[
{
price:0.07,
id:"2462215",
impid:"1",
adid:"2462215",
nurl:"https://notify.mgid.com",
adm:"{" native":{
"ver":"1",
"link":{
"url":"https://www.mgid.com"
},
"assets":[
{
"id":1,
"required":0,
"title":{
"text":"text"
}
},
{
"id":2,
"required":0,
"img":{
"w":50,
"h":50,
"type":3,
"url":"https://imggprx.mgid.com"
}
}
],
"imptrackers":[
"https://notify.mgid.com"
]
}
} ",
iurl: " https://imgg-cdn.mgid.com",
cid:"475143",
crid:"2462215",
cat:[
"IAB1-2"
],
adomain:[
"domain.com"
]
}
],
seat:"475143"
}
]
}