SASMediationInterstitialAdapterDelegate

Objective-C

@protocol SASMediationInterstitialAdapterDelegate <NSObject>

Swift

protocol SASMediationInterstitialAdapterDelegate : NSObjectProtocol

SASMediationInterstitialAdapter delegate.

  • Called when the underlying mediation ad has loaded successfully.

    Declaration

    Objective-C

    - (void)mediationInterstitialAdapterDidLoadAd:
        (nonnull id<SASMediationInterstitialAdapter>)mediationInterstitialAdapter;

    Swift

    func mediationInterstitialAdapterDidLoadAd(_ mediationInterstitialAdapter: any SASMediationInterstitialAdapter)

    Parameters

    mediationInterstitialAdapter

    The instance of SASMediationInterstitialAdapter calling the delegate.

  • Called when the underlying mediation ad has failed to load.

    Declaration

    Objective-C

    - (void)mediationInterstitialAdapter:
                (nonnull id<SASMediationInterstitialAdapter>)
                    mediationInterstitialAdapter
                  didFailToLoadWithError:(nonnull NSError *)error
                                  noFill:(BOOL)noFill;

    Swift

    func mediationInterstitialAdapter(_ mediationInterstitialAdapter: any SASMediationInterstitialAdapter, didFailToLoadWithError error: any Error, noFill: Bool)

    Parameters

    mediationInterstitialAdapter

    The instance of SASMediationInterstitialAdapter calling the delegate.

    error

    The error preventing the underlying mediation ad from being loaded.

    noFill

    YES if the ad could not be loaded because of ‘no ad / no fill’, NO for any other loading error.

  • Called when the underlying mediation ad has been clicked.

    Declaration

    Objective-C

    - (void)mediationInterstitialAdapterDidReceiveAdClickEvent:
        (nonnull id<SASMediationInterstitialAdapter>)mediationInterstitialAdapter;

    Swift

    func mediationInterstitialAdapterDidReceiveAdClickEvent(_ mediationInterstitialAdapter: any SASMediationInterstitialAdapter)

    Parameters

    mediationInterstitialAdapter

    The instance of SASMediationInterstitialAdapter calling the delegate.

  • Called when the underlying mediation ad has been shown.

    Declaration

    Objective-C

    - (void)mediationInterstitialAdapterDidShow:
        (nonnull id<SASMediationInterstitialAdapter>)mediationInterstitialAdapter;

    Swift

    func mediationInterstitialAdapterDidShow(_ mediationInterstitialAdapter: any SASMediationInterstitialAdapter)

    Parameters

    mediationInterstitialAdapter

    The instance of SASMediationInterstitialAdapter calling the delegate.

  • Called when the underlying mediation ad fails to be shown.

    Declaration

    Objective-C

    - (void)mediationInterstitialAdapter:
                (nonnull id<SASMediationInterstitialAdapter>)
                    mediationInterstitialAdapter
                  didFailToShowWithError:(nonnull NSError *)error;

    Swift

    func mediationInterstitialAdapter(_ mediationInterstitialAdapter: any SASMediationInterstitialAdapter, didFailToShowWithError error: any Error)

    Parameters

    mediationInterstitialAdapter

    The instance of SASMediationInterstitialAdapter calling the delegate.

    error

    The error preventing the interstitial ad from being shown.

  • Called when the underlying mediation ad has been closed.

    Declaration

    Objective-C

    - (void)mediationInterstitialAdapterDidClose:
        (nonnull id<SASMediationInterstitialAdapter>)mediationInterstitialAdapter;

    Swift

    func mediationInterstitialAdapterDidClose(_ mediationInterstitialAdapter: any SASMediationInterstitialAdapter)

    Parameters

    mediationInterstitialAdapter

    The instance of SASMediationInterstitialAdapter calling the delegate.