SASInterstitialManager

Objective-C

@interface SASInterstitialManager : SASBaseInterstitialManager

Swift

class SASInterstitialManager : SASBaseInterstitialManager

Class used to load and display interstitial ads.

  • An object implementing the SASInterstitialManagerDelegate protocol.

    Declaration

    Objective-C

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

    Swift

    weak var delegate: (any SASInterstitialManagerDelegate)? { get set }
  • Initialize a new SASInterstitialManager instance.

    Declaration

    Objective-C

    - (nonnull instancetype)
        initWithPlacement:(nonnull SASAdPlacement *)placement
                 delegate:(nullable id<SASInterstitialManagerDelegate>)delegate;

    Swift

    init(placement: SASAdPlacement, delegate: (any SASInterstitialManagerDelegate)?)

    Parameters

    placement

    The placement that will be used to load interstitial ads.

    delegate

    An object implementing the SASInterstitialManagerDelegate protocol.

    Return Value

    An initialized instance of SASInterstitialManager.

  • Initialize a new SASInterstitialManager instance with a bidding ad response.

    A bidding ad response can be retrieved using an instance of SASBiddingManager.

    Declaration

    Objective-C

    - (nonnull instancetype)
        initWithBiddingAdResponse:(nonnull SASBiddingAdResponse *)biddingAdResponse
                         delegate:
                             (nullable id<SASInterstitialManagerDelegate>)delegate;

    Swift

    init(biddingAdResponse: SASBiddingAdResponse, delegate: (any SASInterstitialManagerDelegate)?)

    Parameters

    biddingAdResponse

    The bidding ad reponse that will be used to load the interstitial ad.

    delegate

    An object implementing the SASInterstitialManagerDelegate protocol.

    Return Value

    An initialized instance of SASInterstitialManager.

  • Sends a message to the webview hosting the creative.

    The message can be retrieved in the creative by adding an MRAID event listener on the ‘sasMessage’ event. It will not be sent if the creative is not fully loaded.

    Declaration

    Objective-C

    - (void)sendMessageToWebView:(nonnull NSString *)message;

    Swift

    func sendMessageToWebView(_ message: String)

    Parameters

    message

    A non empty message that will be sent to the creative.