Pre-Roll Advertising Support

Ziggeo supports pre-roll advertising with Google Adsense.

Pre-Roll via Google Adsense Supported

  • Ziggeo supports pre-roll advertising with Google Adsense
  • Complete integration with Google Adsense
  • Simply add Google AdSense credentials for integration
  • Default mode: no advertising is shown; advertising must be first enabled for advertising to be shown.

Sample Code

First, set up your AdSense account:

    var adsense = new ZiggeoApi.V2.Ads.AdSenseVideoAdProvider({
        adTagUrl: 'https://pubads.g.doubleclick.net/gampad/ads?' +
        'sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&' +
        'impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&' +
        'cust_params=deployment%3Ddevsite%26sample_ct%3Dlinear&correlator='
    });
    adsense.register("adsense");

Second, add your AdSense account to a player instance:

    <ziggeoplayer ziggeo-video='token'
                  ziggeo-adprovider='adsense'
                  ziggeo-preroll>
    </ziggeoplayer>