MMInterstitialDelegate Protocol Reference

Conforms to NSObject
Declared in MMInterstitialAd.h

Overview

The delegate of an MMInterstitial object. This delegate is responsible for notifications involving the ad which are independent of advertiser-supplied interactions with the content that may be of interest to the developer.

– interstitialAdLoadDidSucceed:

Callback fired when an ad load (request and content processing) succeeds.

- (void)interstitialAdLoadDidSucceed:(MMInterstitialAd *)ad

Parameters

ad

The ad placement which was successfully requested.

Discussion

Callback fired when an ad load (request and content processing) succeeds.

This method is always invoked on the main thread.

Declared In

MMInterstitialAd.h

– interstitialAd:loadDidFailWithError:

Callback fired when an ad load fails. The failure can be caused by failure to either retrieve or parse ad content.

- (void)interstitialAd:(MMInterstitialAd *)ad loadDidFailWithError:(NSError *)error

Parameters

ad

The ad placement for which the request failed.

error

The error indicating the failure.

Discussion

Callback fired when an ad load fails. The failure can be caused by failure to either retrieve or parse ad content.

This method is always invoked on the main thread.

Declared In

MMInterstitialAd.h

– interstitialAdWillDisplay:

Callback fired when an interstitial will be displayed, but before the display action begins. Note that the ad could still fail to display at this point.

- (void)interstitialAdWillDisplay:(MMInterstitialAd *)ad

Parameters

ad

The interstitial which will display.

Discussion

Callback fired when an interstitial will be displayed, but before the display action begins. Note that the ad could still fail to display at this point.

This method is always called on the main thread.

Declared In

MMInterstitialAd.h

– interstitialAdDidDisplay:

Callback fired when the interstitial is displayed.

- (void)interstitialAdDidDisplay:(MMInterstitialAd *)ad

Parameters

ad

The interstitial which is displayed.

Discussion

Callback fired when the interstitial is displayed.

This method is always called on the main thread.

Declared In

MMInterstitialAd.h

– interstitialAd:showDidFailWithError:

Callback fired when an attempt to show the interstitial fails.

- (void)interstitialAd:(MMInterstitialAd *)ad showDidFailWithError:(NSError *)error

Parameters

ad

The interstitial which failed to show.

error

The error indicating the failure.

Discussion

Callback fired when an attempt to show the interstitial fails.

This method is always called on the main thread.

Declared In

MMInterstitialAd.h

– interstitialAdWillDismiss:

Callback fired when an interstitial will be dismissed, but before the dismiss action begins.

- (void)interstitialAdWillDismiss:(MMInterstitialAd *)ad

Parameters

ad

The interstitial which will be dismissed.

Discussion

Callback fired when an interstitial will be dismissed, but before the dismiss action begins.

This method is always called on the main thread.

Declared In

MMInterstitialAd.h

– interstitialAdDidDismiss:

Callback fired when the interstitial is dismissed.

- (void)interstitialAdDidDismiss:(MMInterstitialAd *)ad

Parameters

ad

The interstitial which was dismissed.

Discussion

Callback fired when the interstitial is dismissed.

This method is always called on the main thread.

Declared In

MMInterstitialAd.h

– interstitialAdDidExpire:

Callback fired when the ad expires.

- (void)interstitialAdDidExpire:(MMInterstitialAd *)ad

Parameters

ad

The ad placement which expired.

Discussion

Callback fired when the ad expires.

After receiving this message, your app should call -load before attempting to display the interstitial.

This method is always called on the main thread.

Declared In

MMInterstitialAd.h

– interstitialAdTapped:

Callback fired when the ad is tapped.

- (void)interstitialAdTapped:(MMInterstitialAd *)ad

Parameters

ad

The ad placement which was tapped.

Discussion

Callback fired when the ad is tapped.

This method is always called on the main thread.

Declared In

MMInterstitialAd.h

– interstitialAdWillLeaveApplication:

Callback invoked prior to the application going into the background due to a user interaction with an ad.

- (void)interstitialAdWillLeaveApplication:(MMInterstitialAd *)ad

Parameters

ad

The ad placement.

Discussion

Callback invoked prior to the application going into the background due to a user interaction with an ad.

This method is always called on the main thread.

Declared In

MMInterstitialAd.h