SASBiddingManager

Objective-C

@interface SASBiddingManager : NSObject

Swift

class SASBiddingManager : NSObject

Class used to load an ad bidding response.

An ad bidding response contains a price that you can compare with other ad networks responses. You can render the ad corresponding to a bidding response using a SASInterstitialManager, a SASRewardedVideoManager or a SASBannerView.

  • The ad placement on which the ad should be retrieved by the manager.

    Declaration

    Objective-C

    @property (nonatomic, readonly) SASAdPlacement *_Nonnull adPlacement;

    Swift

    var adPlacement: SASAdPlacement { get }
  • The ad format that should be retrieved by the manager.

    Declaration

    Objective-C

    @property (nonatomic, readonly) SASBiddingAdFormatType biddingAdFormatType;

    Swift

    var biddingAdFormatType: SASBiddingAdFormatType { get }
  • A object implementing the SASBiddingManagerDelegate protocol.

    Declaration

    Objective-C

    @property (nonatomic, weak, nullable) id<SASBiddingManagerDelegate> delegate;

    Swift

    weak var delegate: SASBiddingManagerDelegate? { get set }
  • Initialize a new instance of SASBiddingManager.

    Declaration

    Objective-C

    - (nonnull instancetype)
        initWithAdPlacement:(nonnull SASAdPlacement *)adPlacement
        biddingAdFormatType:(SASBiddingAdFormatType)biddingAdFormatType
                   currency:(nonnull NSString *)currency
                   delegate:(nonnull id<SASBiddingManagerDelegate>)delegate;

    Swift

    init(adPlacement: SASAdPlacement, biddingAdFormatType: SASBiddingAdFormatType, currency: String, delegate: SASBiddingManagerDelegate)

    Parameters

    adPlacement

    The ad placement on which the ad should be retrieved by the manager.

    biddingAdFormatType

    The ad format that should be retrieved by the manager.

    currency

    The currency that is requested for the bidding call (must be a 3 letters string compliant with ISO 4217).

    delegate

    A object implementing the SASBiddingManagerDelegate protocol.

    Return Value

    An initialized instance of SASBiddingManager.

  • Load a bidding ad using the bidding manager.

    Warning

    You cannot load multiple ads at the same time, any attempt to do so will be ignored.

    Declaration

    Objective-C

    - (void)load;

    Swift

    func load()