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 configuration for this example is:




"" is defined as:


<config>
   <ova.title>
       Example 1 - Mixing Ad Servers
   </ova.title>
   <ova.json>
       {
            "ads": {
                "servers": [
                   {
                       "id": "AdTech",
                       "type": "AdTech",
                       "defaultAdServer": true,
                       "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": "http://openx.openvideoads.org/openx/www/delivery/fc.php",
                           "customProperties" : {
  	                          "target": "category=food"
                           }
                       }
                   },
                   {
                       "zone": "2366662/0/1725",
                       "position": "post-roll"
                   }
                ]
            },

            "debug": {
                "debugger": "firebug",
                "levels": "fatal, config, vast_template, vpaid, http_calls, playlist, api"
            }
       }
   </ova.json>
</config>