MPSInterstitialAd

public final class MPSInterstitialAd: NSObject

Interstitial Ad - a full-screen advertisement shown at natural transition points in your application such as between game levels or news stories.

  • MPSADViewDelegate delegate.

    Declaration

    Swift

    public weak var delegate: MPSInterstitialAdDelegate?
  • Presents the interstitial ad which takes over the entire screen until the user dismisses it.

    Declaration

    Swift

    public func present(fromRootViewController rootViewController: UIViewController)

    Parameters

    rootViewController

    UIViewController - Set rootViewController to the current view controller at the time this method is called. If your application does not use view controllers pass in nil and your views will be removed from the window to show the interstitial and restored when done. After the interstitial has been removed, the delegate’s interstitialDidDismissScreen: will be called.