PWAdsInterstitialDelegate Protocol Reference

Conforms to NSObject
Declared in PWAdsInterstitial.h

Overview

A PWAdsInterstitialDelegate is needed to receive callbacks about video interstitial ad status.

– interstitialDidLoadAd:

Called when a new advertisement is loaded.

- (void)interstitialDidLoadAd:(PWAdsInterstitial *)interstitialAd

Parameters

interstitialAd

The ad object that loaded a new advertisement.

Discussion

Called when a new advertisement is loaded.

Interstitial ad should be presented here by calling presentFromViewController: method.

Declared In

PWAdsInterstitial.h

– interstitial:didFailWithError:

Called when an interstitial fails to load advertisement.

- (void)interstitial:(PWAdsInterstitial *)interstitial didFailWithError:(NSError *)error

Parameters

interstitial

The full-screen ad that received the error.

error

The error object that describes the problem.

Discussion

Called when an interstitial fails to load advertisement.

Although the error message informs your application about why the error occurred, your application normally does not need to display the error to the user.

Declared In

PWAdsInterstitial.h

– interstitialDidPresentModal:

Called after interstitial ad is presented.

- (void)interstitialDidPresentModal:(PWAdsInterstitial *)interstitialAd

Parameters

interstitialAd

The full-screen ad that is presented.

Discussion

Called after interstitial ad is presented.

Declared In

PWAdsInterstitial.h

– interstitialWillDismissModal:

Called before interstitial ad is dissmissed.

- (void)interstitialWillDismissModal:(PWAdsInterstitial *)interstitialAd

Parameters

interstitialAd

The full-screen ad that will dismiss.

Discussion

Called before interstitial ad is dissmissed.

Declared In

PWAdsInterstitial.h

– interstitialDidDismissModal:

Called after Interstitial ad has been dismissed

- (void)interstitialDidDismissModal:(PWAdsInterstitial *)interstitialAd

Parameters

interstitialAd

The full-screen ad that was dismissed.

Discussion

Called after Interstitial ad has been dismissed

Declared In

PWAdsInterstitial.h

– shouldLeaveApplicationForInterstitial:

Called before user leaves the application. This happens when user taps on an advertisment.

- (BOOL)shouldLeaveApplicationForInterstitial:(PWAdsInterstitial *)interstitial

Parameters

interstitial

The full-screen ad that the user tapped.

Return Value

Return YES to allow user to leave the appliction; NO to prevent it. YES by default.

Discussion

Called before user leaves the application. This happens when user taps on an advertisment.

Declared In

PWAdsInterstitial.h