This example illustrates how to selectively apply ad slots to a series of show streams. In this example we have 6 show streams each playing for 10 seconds - a pre-roll ad is applied to the first, third and 6th shows. The zone used to fill the ad slots has a single ad in it so we've set the allowAdRepetition flag to ensure that the same ad can be repeated across the 3 ad slots to be filled.
The configuration for this example is:
"" is defined as:
<config>
<ova.title>
Example 4 - Selective application of ad slots
</ova.title>
<ova.json>
{
"shows": {
"baseURL": "OVA_HTTP_BASE_URL",
"streams": [
{ "file":"OVA_HTTP_SHOW_STREAM_FILE", "duration":"00:00:10" },
{ "file":"OVA_HTTP_SHOW_STREAM_FILE", "duration":"00:00:11" },
{ "file":"OVA_HTTP_SHOW_STREAM_FILE", "duration":"00:00:12" },
{ "file":"OVA_HTTP_SHOW_STREAM_FILE", "duration":"00:00:13" },
{ "file":"OVA_HTTP_SHOW_STREAM_FILE", "duration":"00:00:14" },
{ "file":"OVA_HTTP_SHOW_STREAM_FILE", "duration":"00:00:15" }
]
},
"ads": {
"servers": [
{
"type": "OpenX",
"apiAddress": "OVA_OPENX_API",
"allowAdRepetition": true
}
],
"schedule": [
{
"zone": "19",
"position": "pre-roll",
"applyToParts": [0, 2, 5]
}
]
},
"debug": {
"debugger": "firebug",
"levels": "OVA_DEBUG"
}
}
</ova.json>
</config>