SASBidderAdapter

Objective-C

@interface SASBidderAdapter : NSObject <SASBidderAdapterProtocol>

Swift

class SASBidderAdapter : NSObject, SASBidderAdapterProtocol

This class implements the SASBidderAdapterProtocol.

You can use it as the base class to create your own in-app bidding adapter. Make sure your own class implements the SASBidderAdapterProtocol fully.

  • Initializes a new SASBidderAdapter instance for true price competition

    Declaration

    Objective-C

    - (nonnull instancetype)initWithWinningSSPName:(nonnull NSString *)sspName
                                 winningCreativeID:
                                     (nullable NSString *)winningCreativeID
                                             price:(float)price
                                          currency:(nonnull NSString *)currency
                                            dealID:(nullable NSString *)dealID;

    Swift

    init(winningSSPName sspName: String, winningCreativeID: String?, price: Float, currency: String, dealID: String?)

    Parameters

    sspName

    The name of the SSP that won the in-app bidding competition.

    winningCreativeID

    The unique identifier of the ad that won the in-app bidding competition.

    price

    The CPM value of the ad that won the in-app bidding competition.

    currency

    The CPM currency of the ad that won the in-app bidding competition.

    dealID

    The dealID if the bid is a deal.

    Return Value

    An initialized instance of SASBidderAdapter.

  • Initializes a new SASBidderAdapter instance for keyword competition.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithWinningSSPName:(nonnull NSString *)sspName
                                 winningCreativeID:
                                     (nullable NSString *)winningCreativeID
                                           keyword:(nonnull NSString *)keyword
                                            dealID:(nullable NSString *)dealID;

    Swift

    init(winningSSPName sspName: String, winningCreativeID: String?, keyword: String, dealID: String?)

    Parameters

    sspName

    The name of the SSP that won the in-app bidding competition.

    winningCreativeID

    The unique identifier of the ad that won the in-app bidding competition.

    keyword

    The keyword to pass for insertion competition

    dealID

    The dealID if the bid is a deal.

    Return Value

    An initialized instance of SASBidderAdapter.