Mobile Example

OpenRTB Mobile/In-App example

This example shows a mobile in-app banner request with two ad placements.

{
    "id": "03fd47be-67bf-4c93-b787-f8eaa82247d0",
    "imp": [
        {
            "id": "A",
            "banner": {
                "format": [
                    {
                        "w": 300,
                        "h": 250
                    }
                ],
                "pos": 1
            },
            "displaymanager": "TBDSDK",
            "displaymanagerver": "0.0.1",
            "tagid": "header-ad",
            "bidfloor": 0.15,
            "instl": 0,
            "secure": 1,
            "ext": {
                "nexx360": {
                    "tagId": "your-nexx360-tag-id"
                }
            }
        },
        {
            "id": "B",
            "banner": {
                "format": [
                    {
                        "w": 320,
                        "h": 250
                    },
                    {
                        "w": 336,
                        "h": 280
                    }
                ],
                "pos": 1
            },
            "displaymanager": "TBDSDK",
            "displaymanagerver": "0.0.1",
            "tagid": "incontent-ad",
            "bidfloor": 0.15,
            "instl": 0,
            "secure": 1,
            "ext": {
                "nexx360": {
                    "tagId": "your-nexx360-tag-id"
                }
            }
        }
    ],
    "app": {
        "id": "agltb3B1Yi1pbmNyDAsSA0FwcBiJkfIUDA",
        "name": "Yahoo Weather",
        "cat": ["IAB15", "IAB15-10"],
        "ver": "1.0.2",
        "bundle": "com.yahoo.mobile.client.android.weather",
        "storeurl": "https://play.google.com/store/apps/details?id=com.yahoo.mobile.client.android.weather",
        "publisher": {
            "id": "agltb3B1Yi1pbmNyDAsSA0FwcBiJkfTUCV",
            "name": "yahoo",
            "domain": "www.yahoo.com"
        }
    },
    "device": {
        "geo": {
            "lat": -10.2321,
            "lon": -48.8803,
            "country": "BRA",
            "region": "TO",
            "city": "Paraiso do Tocantins",
            "zip": "77600",
            "type": 2
        },
        "ip": "45.183.30.0",
        "ua": "Mozilla/5.0 (Linux; Android 10; moto g(8) play Build/QMDS30.47-33-5; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/115.0.5790.166 Mobile Safari/537.36",
        "language": "pt",
        "carrier": "WIFI",
        "connectiontype": 2,
        "make": "motorola",
        "ifa": "e511e6d5-99c1-4361-9bf3-b9ca0402657f",
        "model": "motorola moto g(8) play",
        "os": "Android",
        "osv": "10.0",
        "w": 720,
        "h": 1465,
        "dnt": 0,
        "lmt": 0,
        "devicetype": 4,
        "js": 1
    },
    "user": {
        "id": "e511e6d5-99c1-4361-9bf3-b9ca0402657f"
    },
    "at": 1,
    "tmax": 1000,
    "cur": ["USD"],
    "badv": [
        "blocked-domain1.com",
        "blocked-domain2.com"
    ],
    "bcat": ["IAB26"],
    "regs": {
        "coppa": 0,
        "ext": {
            "gdpr": 1
        }
    },
    "source": {
        "pchain": "2b1a2f9cd997fcab:773",
        "ext": {
            "schain": {
                "complete": 1,
                "nodes": [],
                "ver": "1.0"
            }
        }
    },
    "test": 0
}

Key Fields for Mobile/In-App

Field
Description

app

App object (use instead of site for in-app requests)

app.bundle

Application bundle ID (e.g., com.example.app)

app.storeurl

App store URL

device.ifa

Advertising ID (IDFA/GAID)

device.lmt

Limit Ad Tracking flag

device.devicetype

Device type (4 = phone, 5 = tablet)

displaymanager

SDK name

displaymanagerver

SDK version

Last updated

Was this helpful?