Example 1 - Mixing Ad Servers

This example illustrates how to mix and match ad servers. The pre-roll is to OpenX, while the post-roll request is to AdTech. The post-roll uses the "default" ad server which also happens to be AdTech as per the "servers" config.

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

The resulting stream configuration is as follows:

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": {
                "servers": [
                    {
                       "id": "AdTech",
                       "type": "AdTech",
                       "apiAddress": "http://adserver.adtech.de/?adrawdata/3.0/990.1"
                   }
                ],
                "companions": {
                    "restore": false,
                    "regions": [
                       { "id":"companion-160x600", "width":"160", "height":"600" },
                       { "id":"companion-300x250", "width":"300", "height":"250" }
                    ]
                },
                "schedule": [
                   {
                       "zone": "5",
                       "position": "pre-roll",
                       "server": {
                           "type": "OpenX",
                           "apiAddress": "",
                           "customProperties" : {
                               "target": "category=food" 
                           }
                       }
                   },
                   {
                       "zone": "2189418/0/1725",
                       "position": "post-roll"
                   }
                ]
            },

            "debug": {
                "levels": ""
            }
        }
    }
});