ORTB
中 / EN

Samples

Native 1.0 规范共 4 组官方投放请求/响应示例。

§6.1 · App Wall Example

Bid Request

{
    "native": {
        "assets": [
            {
                "id": 1,
                "required": 1,
                "title": {
                    "len": 30
                }
            },
            {
                "id": 2,
                "required": 0,
                "data": {
                    "type": 3,
                    "len": 5
                }
            },
            {
                "id": 3,
                "required": 1,
                "img": {
                    "type": 1,
                    "w": 64,
                    "h": 64,
                    "mimes": [
                        "image/png"
                    ]
                }
            },
            {
                "id": 4,
                "required": 0,
                "data": {
                    "type": 2,
                    "len": 10
                }
            }
        ]
    }
}

Bid Response

{
    "native": {
        "ver": 1,
        "link": {
            "url": "deeplink://deeplink/url/into/app",
            "fallback": "http: //i.am.a/URL",
            "clicktrackers": [
                "http: //a.com/a",
                "http: //b.com/b"
            ]
        },
        "imptrackers": [
            "http: //a.com/a",
            "http: //b.com/b"
        ],
        "assets": [
            {
                "id": 1,
                "title": {
                    "text": "InstallBOA"
                },
                "link": {
                    "url": "http: //i.am.a/URL"
                }
            },
            {
                "id": 2,
                "data": {
                    "value": 5
                }
            },
            {
                "id": 3,
                "img": {
                    "url": "http: //cdn.mobad.com/ad.png",
                    "w": 64,
                    "h": 64
                }
            },
            {
                "id": 4,
                "data": {
                    "value": "Install"
                },
                "link": {
                    "url": "http: //i.am.a/URL"
                }
            }
        ]
    }
}

§6.2 · Chat List Example

Bid Request

{
    "native": {
        "layout": 4,
        "assets": [
            {
                "id": 1,
                "required": 1,
                "title": {
                    "len": 30
                }
            },
            {
                "id": 2,
                "required": 0,
                "data": {
                    "type": 2,
                    "len": 100
                }
            },
            {
                "id": 3,
                "required": 1,
                "img": {
                    "type": 1,
                    "w": 64,
                    "h": 64,
                    "mimes": [
                        "image/png"
                    ]
                }
            }
        ]
    }
}

Bid Response

{
    "native": {
        "ver": 1,
        "link": {
            "url": "deeplink://deeplink/url/into/app",
            "fallback": "http: //i.am.a/URL",
            "clicktrackers": [
                "http: //a.com/a",
                "http: //b.com/b"
            ]
        },
        "imptrackers": [
            "http: //a.com/a",
            "http: //b.com/b"
        ],
        "assets": [
            {
                "id": 1,
                "title": {
                    "text": "Install BOA"
                }
            },
            {
                "id": 2,
                "data": {
                    "value": "Manage Finances on your phone"
                }
            },
            {
                "id": 3,
                "img": {
                    "url": "http://cdn.mobad.com/ad.png",
                    "w": 64,
                    "h": 64
                }
            }
        ]
    }
}

§6.3 · Content Stream with Video Element Example

Bid Request

{
    "native": {
        "layout": 6,
        "assets": [
            {
                "id": 1,
                "required": 1,
                "title": {
                    "len": 30
                }
            },
            {
                "id": 2,
                "required": 0,
                "data": {
                    "type": 3,
                    "len": 10
                }
            },
            {
                "id": 3,
                "required": 1,
                "img": {
                    "w": 64,
                    "h": 64,
                    "mimes": [
                        "image/png"
                    ]
                }
            },
            {
                "id": 4,
                "video": {
                    "linearity": 1,
                    "minduration": 15,
                    "maxduration": 30,
                    "protocols": [
                        "VAST 2.0"
                    ]
                }
            },
            {
                "id": 5,
                "required": 0,
                "data": {
                    "type": 2,
                    "len": 10
                }
            }
        ]
    }
}

Bid Response

{
    "native": {
        "ver": 1,
        "link": {
            "url": "deeplink://deeplink/url/into/app",
            "fallback": "http: //i.am.a/URL",
            "clicktrackers": [
                "http: //a.com/a",
                "http: //b.com/b"
            ]
        },
        "assets": [
            {
                "id": 1,
                "title": {
                    "text": "Install BOA"
                }
            },
            {
                "id": 2,
                "data": {
                    "value": 5
                }
            },
            {
                "id": 3,
                "img": {
                    "url": "http://cdn.mobad.com/ad.png",
                    "w": 1200,
                    "h": 627
                }
            },
            {
                "id": 4,
                "video": {
                    "vasttag": "<VAST version='2.0'></VAST>"
                }
            },
            {
                "id": 5,
                "data": {
                    "value": "Click"
                },
                "link": {
                    "url": "http://i.am.a/URL"
                }
            }
        ]
    }
}

§6.4 · Google Text Ad

Bid Request

{
    "native": {
        "assets": [
            {
                "id": 1,
                "title": {
                    "len": 25
                }
            },
            {
                "id": 2,
                "data": {
                    "type": 2,
                    "len": 35
                }
            },
            {
                "id": 3,
                "data": {
                    "type": 10,
                    "len": 35
                }
            },
            {
                "id": 4,
                "data": {
                    "type": 11,
                    "len": 35
                }
            }
        ]
    }
}

Bid Response

{
    "native": {
        "ver": 1,
        "link": {
            "url": "deeplink://deeplink/url/into/app",
            "fallback": "http: //i.am.a/URL",
            "clicktrackers": [
                "http: //a.com/a",
                "http: //b.com/b"
            ]
        },
        "assets": [
            {
                "id": 1,
                "title": {
                    "text": "Plasma Television"
                }
            },
            {
                "id": 2,
                "data": {
                    "value": "Huge range of equipment on sale"
                }
            },
            {
                "id": 3,
                "data": {
                    "value": "Free delivery. Order now."
                }
            },
            {
                "id": 4,
                "data": {
                    "value": "mybestplasmatvstore.com"
                }
            }
        ]
    }
}

示例忠实于官方原文(含官方笔误与怪癖,逐组注记)。 PDF 转换残留的弯引号已归一化(1 处)。