Developer Guide Javascript API Reference Developer Tools Release Notes

Freewheel Advertising

Using FreeWheel as your ad manager allows for leveraging the control FreeWheel's platform provides.

github

Using FreeWheel as your ad manager requires an existing relationship with FreeWheel and access to the FreeWheel dashboard for configuration. Note that no ad tag is supplied to the player; values that link up to the setup are configured within the FreeWheel platform.

jwplayer('player').setup({
  playlist: 'https://cdn.jwplayer.com/v2/media/3XnJSIm4',
  fwassetid: 'jw_test_asset_h',
  duration: 500,
  advertising: {
    client: 'freewheel',
    freewheel: {
      networkid: 90750,
      // The 'adManagerUrl' should be the URL you receive from Freewheel.
      adManagerUrl: "https://mssl.fwmrm.net/p/jw_html5_test/AdManager.js",
      serverid: "https://demo.v.fwmrm.net/ad/g/1",
      profileid: "90750:jw_html5_test",
      sectionid: "jw_test_site_section"
    },
    adscheduleid: '12345',
    schedule: {
      adbreak: {
        offset: 'pre',
        tag: 'placeholder_preroll'
      }
    },
    vpaidcontrols: true,
    skipoffset: 3
  }
});