Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - ( BOOL ) showInterstitials {
- if ( [ AdColonyAdministratorPublic videoAdCurrentlyRunning ] == NO ) {
- // 1. AdColony
- if ( [ self playAdColonyVideoForSlot: ADCOLONY_FULL_SLOT ] == ADCOLONY_DID_PLAY ) {
- return YES;
- }
- // 2. Greystripe
- else if ( [ _gsInterstitial isAdReady ] ) {
- [ _gsInterstitial displayFromViewController: _mainAdViewController ];
- return YES;
- }
- // 3. Millennial Media
- else if ( [ _mmAdView showInterstitial ] ) {
- [ _mmAdView fetchInterstitial ];
- return YES;
- }
- // 4. MoPub
- else if ( [ _mpInterstitialAdController ready ] ) {
- [ _mpInterstitialAdController showFromViewController: _mainAdViewController ];
- return YES;
- }
- // No available ads
- else {
- return NO;
- }
- } else {
- return NO;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement