Example 4 - User Defined Regions

This example illustrates how user defined regions can be specified by resource type. In this case a text overlay is centered in the bottom of the screen using the reserved region "reserved-bottom-center-w450px-h50px-transparent". As this region has no styling set for a text overlay the default standard styles are used.

A COMPANION ADVERTISEMENT WILL APPEAR IN HERE

The configuration for this example is:




"" is defined as:


<config>
   <ova.title>
        Example 4 - User Defined Regions
   </ova.title>
   <ova.json>
        {
            "ads": {
                "servers": [
                    {
                      "type": "OpenX",
                      "apiAddress": "OVA_OPENX_API"
                    }
                ],	
                "displayCompanions": true,
                "companions": [
                    { "id":"companion", "width":"150", "height":"360" }
                ],
                "schedule": [
                    {
                        "zone": "29",
                        "startTime": "00:00:05",
                        "duration": "15",
                        "regions": {
                            "text": "reserved-bottom-center-w450px-h50px-transparent"
                        }
                    }
                ]
            },

            "debug": {
                "debugger": "firebug",
                "levels": "OVA_DEBUG"
            }
        }
   </ova.json>
</config>