Advertisement
lance-gray

showInterstitial() Android

Feb 22nd, 2013
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.48 KB | None | 0 0
  1. public void showInterstitial() {
  2.     // 1. Millennial Media
  3.     if ( mMMInterstitialIsReady ) {
  4.         mMMInterstitial.display();
  5.         mMMInterstitial.fetch();
  6.     }
  7.    
  8.     // 2. Greystripe
  9.     else if ( mGSInterstitial.isAdReady() ) {
  10.         mGSInterstitial.display();
  11.         mGSInterstitial.fetch();
  12.     }
  13.  
  14.     // 3. MoPub
  15.     else if ( mMoPubInterstitial.isReady() ) {
  16.         mMoPubInterstitial.setListener( this );
  17.         mMoPubInterstitial.load();
  18.     }
  19.  
  20.     // 4. AdColony
  21.     else {
  22.         new AdColonyVideoAd( ).show( null );
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement