SASMediationInterstitialAdapter

@protocol SASMediationInterstitialAdapter <NSObject>

Protocol that must be implemented by mediation adapters that load and return interstitial ads.

  • Initialize a new instance of the interstitial adapter with an adapter delegate.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDelegate:
        (nonnull id<SASMediationInterstitialAdapterDelegate>)delegate;

    Parameters

    delegate

    An instance of the delegate you will use to provide information to Smart SDK.

    Return Value

    An initialized instance of the interstitial adapter.

  • Requests a mediated interstitial ad asynchronously.

    Use the delegate provided in the init method to inform the SDK about the loading status of the ad.

    Declaration

    Objective-C

    - (void)requestInterstitialWithServerParameterString:
                (nonnull NSString *)serverParameterString
                                        clientParameters:(nonnull NSDictionary *)
                                                             clientParameters;

    Parameters

    serverParameterString

    A string containing all needed parameters (as returned by Smart ad delivery) to make the mediation ad call.

    clientParameters

    Additional client-side parameters (see SASMediationAdapterConstants.h for an exhaustive list)..

  • Requests the adapter to show the currently loaded interstitial.

    Declaration

    Objective-C

    - (void)showInterstitialFromViewController:
        (nonnull UIViewController *)viewController;

    Parameters

    viewController

    The view controller the interstitial will be displayed into.

  • Return whether the interstitial is ready to be displayed or not.

    Declaration

    Objective-C

    - (BOOL)isInterstitialReady;

    Return Value

    YES if the interstitial is ready to be displayed, NO otherwise.