This example delivers only ads that match a "food" category. To achieve this, ads are configured on the OpenX server with a "site variable" called "category" and a value of "food" is assigned.
The configuration for this example is:
"" is defined as:
<config>
<ova.title>
Example 3 - Targetted Ad Delivery
</ova.title>
<ova.json>
{
"debug": {
"debugger": "firebug",
"levels": "fatal, config, vast_template, vpaid, playlist, api, analytics, http_calls"
},
"ads": {
"pauseOnClickThrough": true,
"servers": [
{
"type": "OpenX",
"apiAddress": "http://openx.openvideoads.org/openx/www/delivery/fc.php",
"customProperties": {
"target": [ "category=food", "gender=male" ]
}
}
],
"schedule": [
{
"zone": "5",
"position": "pre-roll"
}
]
}
}
</ova.json>
</config>