OpenRTB Native
IAB Specs: OpenRTB API Specification Version 2.5 and OpenRTB Native Ads Specification Final 1.2
Open RTBOpenRTB Native is supported as an advar template in the Adhese UI. It is crucial that the structure follows the specification.
In the Adhese backend, we check the ad body for the string{\"native\":{
to determine whether this is an openRTBOpenRTB Native ad type, to prevent some characters from being escaped, which would break the JSON structure.
In the preprocessor, we check for {"native":{
string to determine the ad native type.
The body is string-encoded JSON. As mentioned in the specifications, we plan to support direct object representation.
Example of the advar template body openrtb_native.json
{\"native\":{\"ver\":\"1.2\",\"assets\":[{\"id\":1,\"img\":{\"w\":\"<ADHESE_WIDTH_LARGE>\",\"h\":\"<ADHESE_HEIGHT_LARGE>\",\"url\":\"<ADHESE_SWF_SRC_2ND>\"}}],\"link\":{\"url\":\"<DESTINATION_LINK>\"}}}
Example of openrtb_native.json.descr
{
"files": [
{
"default": "",
"doc": "The background and visual, width: 714px. - height: 224px., used for Web",
"label": "Banner image",
"key": "2nd"
}
],
"fields": [
{
"default": "",
"doc": "Enter the destination link (click-through URL)",
"label": "Destination Link",
"type": "singleLineText",
"key": "<DESTINATION_LINK>",
"id": "DestinationLink"
}
],
"advar": "openrtb_native.json"
}