SASBiddingManagerDelegate

Objective-C

@protocol SASBiddingManagerDelegate <NSObject>

Swift

protocol SASBiddingManagerDelegate : NSObjectProtocol

SASBiddingManager delegate.

  • Called when the bidding manager has loaded an ad response successfully.

    Note

    The ad response can be displayed using an instance of SASBannerView or SASInterstitialManager depending on the requestion bidding ad format type.

    Declaration

    Objective-C

    - (void)biddingManager:(nonnull SASBiddingManager *)biddingManager
        didLoadWithBiddingAdResponse:
            (nonnull SASBiddingAdResponse *)biddingAdResponse;

    Swift

    func biddingManager(_ biddingManager: SASBiddingManager, didLoadWith biddingAdResponse: SASBiddingAdResponse)

    Parameters

    biddingManager

    The instance of SASBiddingManager calling the delegate.

    biddingAdResponse

    The ad response loaded by the bidding manager.

  • Called when the bidding manager fails to load the ad.

    Declaration

    Objective-C

    - (void)biddingManager:(nonnull SASBiddingManager *)biddingManager
        didFailToLoadWithError:(nonnull NSError *)error;

    Swift

    func biddingManager(_ biddingManager: SASBiddingManager, didFailToLoad error: any Error)

    Parameters

    biddingManager

    The instance of SASBiddingManager calling the delegate.

    error

    The error preventing the bidding ad from being loaded.