Example 2 - Ad Server Failover

This example illustrates how to failover from one ad server to another if the previous ad server does not return a result.

A COMPANION ADVERTISEMENT
(300x250)
WILL APPEAR IN HERE
FILLER SPACE
A COMPANION ADVERTISEMENT
(160x600)
WILL APPEAR IN HERE

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": "AdTech",
                                   "tag": "http://xxxadserver.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__"
                               },
                               {
                                   "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": ""
            }
        }
    }
});