Example: Passing Multiple IMA Ad Tags for Pre-roll

This example of tframe.html includes several ad manager options.

In the example below, the player embedded parameters to set Interactive Media Ads (IMA) pre-roll ads are specified in multiple options attributes with Ooyala's tframe.html. This code is the equivalent to a standard Ooyala player options hash like this:
OO.Player.create("container","videoID", "{
  "isTwitter":true,
  "ad-manager": {
    "url":"https://adserver.net?id=400&style=preroll",
    "type":"ima"
  },
  "height":"500px",
  "width":"500px"
}"              
   
For tframe.html, the equivalent full, single-line URL is broken across several lines. Notice several things:
  • The "isTwitter":true option is not needed because it is set by tframe.html itself.
  • For both the player.ooyala.com and the ad manager URL, the protocol of the URL is https (not http) because on Twitter ads must be served over SSL.
  • The names of nested passthrough parameters (in this example, the ad-manager parameters) are in dotted notation of the form parameter.subparameter, like ad-manager.url.
  • The value for options[ad-manager.url] has been URL-encoded.
https://player.ooyala.com/tframe.html?
ec=9hdHJ2NTpSn4RM_3ahx8QBE7Y7NDi
&pbid=2f2c8826b6774f9096d23ce5334a
&options[ad-manager.url]=https%3A%2F%2Fadserver.net%3Fid%3D400%26style%3Dpreroll
&options[ad-manager.type]=ima
&options[height]=500px
&options[width]=500px
   

해당 내용이 도움 되었습니까?