To connect an advertiser via OpenRTB NativeAd, a campaign and an RTB advertising medium must be created. The advertising material is set to “deliver as: NativeAd”. The asset of the advertising material must also be defined. According to the IAB NativeAd specification, the asset defines which data is requested from the advertiser. You also define how the data should be handled. Example:
{
"assets": [
{
"id": 1,
"required": 1,
"title": {
"len": 25
}
},
{
"id": 2,
"required": 1,
"data": {
"type": 2,
"len": 90
}
},
{
"id": 3,
"required": 1,
"img": {
"type": 3,
"w": 72,
"h": 60,
"mimes": [
"image/png",
"image/gif",
"image/jpeg"
]
}
}
],
"ext": {
"convert": {
"id_1": "template_Überschrift",
"id_2": "template_Text",
"id_3": "template_Bild URL"
}
}
}
The above example defines an asset with three data fields: A headline with max. 25 characters, a text with max. 90 characters and an image in the format 72x60. Furthermore, ext->convert is used to define what should happen to the three assets, or more precisely, to which variable the data should be written.
Criteo Native Ads
If the Criteo RTB specification is used as an interface for NativeAds, AdSpirit will collect the data supplied by Criteo and can then pack it into variables (placeholders) in order to output it in a template, for example. To do this, please define the following asset definition in the Criteo native advertising material:
{
"ext": {
"convert": {
"image_url": "Variablenname für Bild-URL"
,
"click_url": "rtb_native_link",
"title": "Variablenname für Überschrift",
"description": "Variablenname für Text",
"price": "Variablenname für Preis",
"call_to_action": "Variablenname für CTA",
"privacy_image_url": "Variablenname für Datenschutz-Icon",
"privacy_click_url": "Variablenname für Datenschutz-URL",
"adomain": "Variablenname für Advertiser-Domain"
}
}
}