Example 1 - VAST 2 Linear with Companions

Selects high quality linear video ad and displays a range of companion sizes and types to go with that linear ad. The companion sizes are 300x60, 728x90 and 300x250 pixels. Each with a static (image) and iFrame resource type. Companion selection uses the "type" and "index" flags.

300x60 static
300x60 iframe
728x90 static
728x90 iframe
300x250 static
300x250 iframe

The configuration for this example is:




"" is defined as:


<config>
   <ova.title>
       Example 1 - A VAST 1.0 pre-roll ad only
   </ova.title>
   <ova.json>
       {
            "debug": {
                "debugger": "firebug",
                "levels": "fatal, config, vast_template, vpaid, http_calls, playlist, api"
            },
            
            "ads": {
                "pauseOnClickThrough": true,
                "bestBitrate": "high",
                "companions": {
                   "regions": [
	                  { 
	                     "id":"companion-300x60-static", 
	                     "width":"300", 
	                     "height":"60", 
	                     "resourceType": "static" 
	                  },
	                  {  
	                     "id":"companion-300x60-iframe", 
	                     "width":"300", 
	                     "height":"60", 
	                     "resourceType": "iframe" 
	                  },
	                  { 
	                     "id":"companion-728x90-static", 
	                     "width":"728", 
	                     "height":"90", 
	                     "index": 0 
	                  },
	                  { 
	                     "id":"companion-728x90-iframe", 
	                     "width":"728", 
	                     "height":"90", 
	                     "index": 1 
	                  },
	                  { 
	                     "id":"companion-300x250-static", 
	                     "width":"300", 
	                     "height":"250", 
	                     "resourceType": "static" 
	                  },
	                  { 
	                     "id":"companion-300x250-iframe", 
	                     "width":"300", 
	                     "height":"250", 
	                     "index": 1 
	                  }
                   ]
                },
                "schedule": [
                    {
                      "position": "pre-roll",
                      "server": {
                          "type": "direct",
                          "tag": "http://ad3.liverail.com/?LR_PUBLISHER_ID=1331 
    	                          __amp__LR_CAMPAIGN_ID=229__amp__LR_SCHEMA=vast2"
                      }
                    }
                ]
            }
       }
   </ova.json>
</config>