MMInterstitialAd Class Reference

Inherits from MMAd : NSObject
Declared in MMInterstitialAd.h

Overview

The MMInterstitialAd class represents an “interstitial” advertisment. Interstitial ads are displayed on their own, as full-screen content presented modally.

  delegate

The interstitial’s delegate.

@property (nonatomic, weak, nullable) id<MMInterstitialDelegate> delegate

Discussion

The interstitial’s delegate.

Declared In

MMInterstitialAd.h

  ready

Returns YES if the placement has loaded enough data to display the interstitial and NO otherwise.

@property (readonly, nonatomic) BOOL ready

Discussion

Returns YES if the placement has loaded enough data to display the interstitial and NO otherwise.

Declared In

MMInterstitialAd.h

  expired

Returns YES if the current creative is too old to be displayed and NO otherwise.

@property (readonly, nonatomic) BOOL expired

Discussion

Returns YES if the current creative is too old to be displayed and NO otherwise.

If the interstitial indicates that it has expired, you should load the interstitial again before attempting to show it.

Declared In

MMInterstitialAd.h

  modalTransitionStyle

The transition style for modal presentation of the interstitial.

@property (assign, nonatomic) UIModalTransitionStyle modalTransitionStyle

Discussion

The transition style for modal presentation of the interstitial.

The default value is UIModalTransitionStyleCoverVertical. UIModalTransitionStylePartialCurl is not supported and will instead set the default value.

Declared In

MMInterstitialAd.h

– load:

Asynchronously load interstitial content. This both retrieves the interstitial and loads its content offscreen.

- (void)load:(nullable MMRequestInfo *)requestInfo

Parameters

requestInfo

Additional targeting information relevant to this individual request.

Discussion

Asynchronously load interstitial content. This both retrieves the interstitial and loads its content offscreen.

An ad is only considered ‘ready for display’ after it has fired its interstitialAdLoadDidSucceed: message.

Declared In

MMInterstitialAd.h

– showFromViewController:

Displays the interstitial ad.

- (void)showFromViewController:(UIViewController *)controller

Parameters

controller

The view controller from which the interstitial will be presented.

Discussion

Displays the interstitial ad.

If the ad is not ready for display (has not finished loading or is expired) this will invoke the corresponding delegate callback and no other actions will be taken.

Declared In

MMInterstitialAd.h