rveitch
3/14/2016 - 4:51 PM

JW Player HTTPS AdTags and Javascript API Embed Code Example

JW Player HTTPS AdTags and Javascript API Embed Code Example

<script src="//content.jwplatform.com/libraries/XmRneLwC.js"></script>

<div id="my-video"></div>
<script type="text/javascript">
jwplayer("my-video").setup({
 file: "https://content.jwplatform.com/videos/VBMiGiQG.mp4",
 image: "https://content.jwplatform.com/thumbs/VBMiGiQG-640.jpg",
 primary: "html5",
 advertising: {
  client: "googima",
  schedule: {"myAds":{"offset":"pre","tag":"https://pubads.g.doubleclick.net/gampad/ads?iu=/7021/fcc.forum&&sz=640x480&cust_params=&impl=s&gdfp_req=1&env=vp&output=xml_vast2&unviewed_position_start=1&url=[REFERRER_URL]&correlator=[TIMESTAMP]&ad_rule=0"}}
  }
});
</script>