SASBannerBidderAdapterDelegate

Objective-C

@protocol SASBannerBidderAdapterDelegate <NSObject>

Swift

protocol SASBannerBidderAdapterDelegate : NSObjectProtocol

Protocol implemented by SASBidderAdapter’s delegate.

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

  • Notify the Smart Display SDK that a banner ad has been loaded successfully.

    Declaration

    Objective-C

    - (void)bannerBidderAdapter:(nonnull id<SASBidderAdapterProtocol>)adapter
                  didLoadBanner:(nonnull UIView *)bannerView;

    Swift

    func bannerBidderAdapter(_ adapter: any SASBidderAdapter, didLoadBanner bannerView: Any!)

    Parameters

    adapter

    The bidder adapter.

    bannerView

    The banner view that has been loaded.

  • Notify the Smart Display SDK that a banner ad has failed to load.

    Declaration

    Objective-C

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

    Swift

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

    Parameters

    adapter

    The bidder adapter.

    error

    The error returned by the bidder SDK.

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

    Declaration

    Objective-C

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

    Swift

    func bannerBidderAdapterWillPresentModalView(_ adapter: any SASBidderAdapter)

    Parameters

    adapter

    The bidder adapter.

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

    Declaration

    Objective-C

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

    Swift

    func bannerBidderAdapterWillDismissModalView(_ adapter: any SASBidderAdapter)

    Parameters

    adapter

    The bidder adapter.

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

    Declaration

    Objective-C

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

    Swift

    func bannerBidderAdapterDidReceiveAdClickedEvent(_ adapter: any SASBidderAdapter)

    Parameters

    adapter

    The bidder adapter.