SASInterstitialBidderAdapterDelegate

Objective-C

@protocol SASInterstitialBidderAdapterDelegate <NSObject>

Swift

protocol SASInterstitialBidderAdapterDelegate : NSObjectProtocol

Protocol implemented by SASBidderAdapter’s delegate.

Use this protocol to provide information about the ad loading status or events of bidder SDK interstitials to the Smart Display SDK.

  • Notify the Smart Display SDK that an interstitial ad has been loaded successfully.

    Declaration

    Objective-C

    - (void)interstitialBidderAdapterDidLoad:
        (nonnull id<SASBidderAdapterProtocol>)adapter;

    Swift

    func interstitialBidderAdapterDidLoad(_ adapter: any SASBidderAdapter)

    Parameters

    adapter

    The bidder adapter.

  • Notify the Smart Display SDK that an interstitial ad has failed to load.

    Declaration

    Objective-C

    - (void)interstitialBidderAdapter:(nonnull id<SASBidderAdapterProtocol>)adapter
               didFailToLoadWithError:(nonnull NSError *)error;

    Swift

    func interstitialBidderAdapter(_ adapter: any SASBidderAdapter, didFailToLoadWithError error: any Error)

    Parameters

    adapter

    The bidder adapter.

    error

    The error returned by the mediation SDK.

  • Notify the Smart Display SDK that an interstitial ad has been displayed successfully.

    Warning

    You must call this method as soon as your ad is shown, no impression will be logged on Smart side if you don’t.

    Declaration

    Objective-C

    - (void)interstitialBidderAdapterDidShow:
        (nonnull id<SASBidderAdapterProtocol>)adapter;

    Swift

    func interstitialBidderAdapterDidShow(_ adapter: any SASBidderAdapter)

    Parameters

    adapter

    The bidder adapter.

  • Notify the Smart Display SDK that an interstitial ad has failed to show.

    Note

    Since this error will always happen after a successful loading, calling this delegate will simply forward the error to the app.

    Declaration

    Objective-C

    - (void)interstitialBidderAdapter:(nonnull id<SASBidderAdapterProtocol>)adapter
               didFailToShowWithError:(nonnull NSError *)error;

    Swift

    func interstitialBidderAdapter(_ adapter: any SASBidderAdapter, didFailToShowWithError error: any Error)

    Parameters

    adapter

    The bidder adapter.

    error

    The error returned by the bidder SDK.

  • Notify the Smart Display SDK that an interstitial ad will present a modal view, for instance after a click.

    Declaration

    Objective-C

    - (void)interstitialBidderAdapterWillPresentModalView:
        (nonnull id<SASBidderAdapterProtocol>)adapter;

    Swift

    func interstitialBidderAdapterWillPresentModalView(_ adapter: any SASBidderAdapter)

    Parameters

    adapter

    The bidder adapter.

  • Notify the Smart Display SDK that an interstitial ad will dismiss a modal view, for instance a post click modal view that was open before.

    Declaration

    Objective-C

    - (void)interstitialBidderAdapterWillDismissModalView:
        (nonnull id<SASBidderAdapterProtocol>)adapter;

    Swift

    func interstitialBidderAdapterWillDismissModalView(_ adapter: any SASBidderAdapter)

    Parameters

    adapter

    The bidder adapter.

  • Notify the Smart Display SDK that an interstitial has sent a click event.

    Declaration

    Objective-C

    - (void)interstitialBidderAdapterDidReceiveAdClickedEvent:
        (nonnull id<SASBidderAdapterProtocol>)adapter;

    Swift

    func interstitialBidderAdapterDidReceiveAdClickedEvent(_ adapter: any SASBidderAdapter)

    Parameters

    adapter

    The bidder adapter.

  • Notify the Smart Display SDK that the currently displayed interstitial has been closed.

    Declaration

    Objective-C

    - (void)interstitialBidderAdapterDidClose:
        (nonnull id<SASBidderAdapterProtocol>)adapter;

    Swift

    func interstitialBidderAdapterDidClose(_ adapter: any SASBidderAdapter)

    Parameters

    adapter

    The bidder adapter.