Create an ad tag waterfall (Android)

Increase revenue-generating opportunities in your Android app with an array of ad tags.


Creating an ad tag waterfall helps you to maximize ad revenue by attempting to show a valid ad to your viewers during an ad break. When you create an ad tag waterfall, you assign an array of ad tags to a single ad break. The player displays the ad of the first tag that returns a valid response.


Use the following steps to create an ad tag waterfall:

  1. Create a waterfall string array.
  2. Pass waterfall to that tag property of AdBreak.Builder().
  3. Follow the remaining steps to set up an ad break with VAST or Google IMA ads.

// Create waterfall string array
String[] waterfall = new String[]{
        "http://demo.jwplayer.com/android/vast-tags/pbadreroll.xml",
        "http://demo.jwplayer.com/android/vast-tags/preroll.xml"
};

// Create your ad schedule
AdBreak adBreak = new AdBreak.Builder()
        .offset("pre")
        .tag(waterfall)
        .build();