Pre-Roll Advertising Support

Ziggeo supports pre-roll advertising with Google Adsense and VAST.

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>

Pre-Roll via VAST Supported

  • Ziggeo supports pre-roll advertising with VAST
  • Complete integration with VAST
  • Simply add VAST 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 VAST account:

    var vast = new ZiggeoApi.V2.Ads.VastVideoAdProvider({
         provider: 'adProviderName',
         adServer: '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%3Dskippablelinear&correlator=',
         schedule : 'postRoll',
         skipAfter: 5,
         muted: true
    });
    vast.register("vast");

Second, add your VAST account to a player instance:

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