Native: OpenRTB example
Hosts are placeholders; the example uses OpenRTB 2.6 unless stated otherwise. Fields are described in the specification.
Request
json
{
"at": 1,
"badv": [
"blocked-brand.example"
],
"bcat": [
"IAB25",
"IAB26"
],
"cur": [
"USD"
],
"device": {
"devicetype": 2,
"ip": "203.0.113.10",
"language": "de",
"os": "Windows",
"ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
},
"id": "req-native-1",
"imp": [
{
"bidfloor": 0.4,
"bidfloorcur": "USD",
"id": "1",
"native": {
"request": "{\"assets\":[{\"id\":1,\"required\":1,\"title\":{\"len\":90}},{\"id\":2,\"img\":{\"hmin\":314,\"type\":3,\"wmin\":600},\"required\":1},{\"data\":{\"len\":25,\"type\":12},\"id\":3,\"required\":0}],\"context\":1,\"eventtrackers\":[{\"event\":1,\"methods\":[1]},{\"event\":2,\"methods\":[1]}],\"plcmtcnt\":1,\"plcmttype\":1,\"ver\":\"1.2\"}",
"ver": "1.2"
},
"tagid": "zone-feed-3"
}
],
"site": {
"cat": [
"IAB12"
],
"domain": "publisher.example",
"id": "site-1",
"page": "https://publisher.example/news/article-1",
"publisher": {
"ext": {
"subid": "sub-42"
},
"id": "pub-1"
}
},
"tmax": 300,
"user": {
"id": "u-321"
}
}Response
json
{
"id": "req-native-1",
"seatbid": [
{
"bid": [
{
"id": "a41c7b2d-3333-4c5d-9e6f-000000000001",
"impid": "1",
"price": 1.2,
"adid": "3001",
"nurl": "https://notify.example.com/wn?id=a41c7b2d-3333-4c5d-9e6f-000000000001&t=tk-notice&price=${AUCTION_PRICE}",
"burl": "https://notify.example.com/bn?id=a41c7b2d-3333-4c5d-9e6f-000000000001&t=tk-notice&price=${AUCTION_PRICE}",
"adm": "{\"ver\":\"1.1\",\"assets\":[{\"id\":1,\"title\":{\"text\":\"Sommerangebot: bis zu 40 % Rabatt\"}},{\"id\":2,\"img\":{\"url\":\"https://ads.example.com/c/3001/1200x628.jpg\"}},{\"id\":3,\"data\":{\"value\":\"Mehr erfahren\"}}],\"link\":{\"url\":\"https://notify.example.com/c?id=a41c7b2d-3333-4c5d-9e6f-000000000001&t=tk-click\"},\"imptrackers\":[\"https://notify.example.com/imp?id=a41c7b2d-3333-4c5d-9e6f-000000000001&t=tk-imp\"],\"eventtrackers\":[{\"event\":1,\"method\":1,\"url\":\"https://notify.example.com/imp?id=a41c7b2d-3333-4c5d-9e6f-000000000001&t=tk-imp\"},{\"event\":2,\"method\":1,\"url\":\"https://notify.example.com/vimp?event_type=3&id=a41c7b2d-3333-4c5d-9e6f-000000000001&t=tk-imp\"},{\"event\":3,\"method\":1,\"url\":\"https://notify.example.com/vimp?event_type=4&id=a41c7b2d-3333-4c5d-9e6f-000000000001&t=tk-imp\"},{\"event\":4,\"method\":1,\"url\":\"https://notify.example.com/vimp?event_type=5&id=a41c7b2d-3333-4c5d-9e6f-000000000001&t=tk-imp\"}]}",
"adomain": [
"advertiser.example"
],
"cid": "701",
"crid": "3001",
"cat": [
"IAB3"
],
"w": 1200,
"h": 628,
"langb": "de",
"mtype": 4
}
],
"seat": "77"
}
],
"cur": "USD"
}native.request and adm are strings, not objects; w and h are the image size.