Example 3 - Advanced VAST 1 Companion Types

Displays the full range of VAST 1 companion types that can be displayed by OVA - HTML (tags), HTML (script), iFrame, Static (image, swf and script).




300x250 static
(image)



300x250 static
(swf)



300x250 static
(javascript - required ova.js)



300x250 iframe



300x250 html (no script)



300x250 html
(script requires ova.js)

The configuration for this example is:




"" is defined as:


<config>
   <ova.title>
       Example 3 - Advanced VAST 1 Companion Types
   </ova.title>
   <ova.json>
       {
            "debug": {
                "debugger": "firebug",
                "levels": "OVA_DEBUG"
            },

            "ads": {
                "pauseOnClickThrough": true,
                "bestBitRate": "high",
                "processCompanionsExternally": true,
                "millisecondDelayOnCompanionInjection": 200,
                "companions": [
                     {
                        "id":"companion-300x250-static-1",
                        "width":"300",
                        "height":"250",
                        "index": 0
                     },
                     {
                        "id":"companion-300x250-static-2",
                        "width":"300",
                        "height":"250",
                        "index": 1
                     },
                     {
                        "id":"companion-300x250-static-3",
                        "width":"300",
                        "height":"250",
                        "index": 2
                     },
                     {
                        "id":"companion-300x250-iframe",
                        "width":"300",
                        "height":"250",
                        "resourceType": "iframe"
                     }
                     {
                        "id":"companion-300x250-html-1",
                        "width":"300",
                        "height":"250",
                        "index": 4
                     }
                     {
                        "id":"companion-300x250-html-2",
                        "width":"300",
                        "height":"250",
                        "index": 5
                     }
                ],
                "schedule": [
                     {
                        "position": "pre-roll",
                        "server": {
                           "type": "direct",
                           "tag": "OVA_COMPANIONS_VAST_1"
                        }
                     }
                ]
            }
       }
   </ova.json>
</config>