This example illustrates how to failover from one ad server to another if the previous ad server does not return a result.
The configuration for this example is:
flowplayer("a.player614x345", "", {
plugins: {
rtmp: {
url: ""
},
rtmpInstream: {
url: ""
},
ova: {
url: "",
"shows": {
"baseURL": "",
"streams": [
{
"file":"",
"duration":"00:00:20"
}
]
},
"ads": {
"companions": {
"restore": false,
"regions": [
{ "id":"companion-160x600", "width":"160", "height":"600" },
{ "id":"companion-300x250", "width":"300", "height":"250" }
]
},
"schedule": [
{
"zone": "56",
"position": "pre-roll",
"server": {
"type": "OpenX",
"apiAddress": "",
"oneAdPerRequest": true,
"customProperties" : {
"target": "category=food"
},
"failoverServers": [
{
"type": "direct",
"tag": "../../dist/templates/error-responses/vast1.0/empty-ad-vast-response.xml"
},
{
"type": "AdTech",
"tag": "http://adserver.adtech.de/?adrawdata/3.0/990.1/2366662/0/
1725/noperf=1;cc=2;header=yes;cookie=yes;adct=204;alias=;
key=key1+key2;;=;grp=[group];misc=__random-number__"
}
]
}
},
{
"zone": "5",
"position": "post-roll",
"server": {
"type": "OpenX",
"apiAddress": "",
"oneAdPerRequest": true,
"customProperties" : {
"target": "category=food"
},
"failoverServers": [
{
"type": "AdTech",
"tag": "http://adserver.adtech.de/?adrawdata/3.0/990.1/2366662/
0/1725/noperf=1;cc=2;header=yes;cookie=yes;adct=204;
alias=;key=key1+key2;;=;grp=[group];misc=__random-number__"
}
]
}
}
]
},
"debug": {
"levels": ""
}
}
}
});