SASRewardedVideoManager

Objective-C

@interface SASRewardedVideoManager : SASBaseInterstitialManager

Swift

class SASRewardedVideoManager : SASBaseInterstitialManager

Class used to load and display rewarded interstitial ads.

  • An object implementing the SASRewardedVideoManagerDelegate protocol.

    Declaration

    Objective-C

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

    Swift

    weak var delegate: (any SASRewardedVideoManagerDelegate)? { get set }
  • Initializes a new SASRewardedVideoManager instance.

    Declaration

    Objective-C

    - (nonnull instancetype)
        initWithPlacement:(nonnull SASAdPlacement *)placement
                 delegate:(nullable id<SASRewardedVideoManagerDelegate>)delegate;

    Swift

    init(placement: SASAdPlacement, delegate: (any SASRewardedVideoManagerDelegate)?)

    Parameters

    placement

    The placement that will be used to load rewarded interstitial ads.

    delegate

    An object implementing the SASRewardedVideoManagerDelegate protocol.

    Return Value

    An initialized instance of SASRewardedVideoManager.

  • Initialize a new SASRewardedVideoManager instance with a bidding ad response.

    A bidding ad response can be retrieved using an instance of SASBiddingManager.

    Declaration

    Objective-C

    - (nonnull instancetype)
        initWithBiddingAdResponse:(nonnull SASBiddingAdResponse *)biddingAdResponse
                         delegate:
                             (nullable id<SASRewardedVideoManagerDelegate>)delegate;

    Swift

    init(biddingAdResponse: SASBiddingAdResponse, delegate: (any SASRewardedVideoManagerDelegate)?)

    Parameters

    biddingAdResponse

    The bidding ad reponse that will be used to load the interstitial ad.

    delegate

    An object implementing the SASRewardedVideoManagerDelegate protocol.

    Return Value

    An initialized instance of SASInterstitialManager.

  • Loads a Rewarded Video Ad with a secured transaction token.

    Declaration

    Objective-C

    - (void)loadWithSecuredTransactionToken:
        (nullable NSString *)securedTransactionToken;

    Swift

    func load(securedTransactionToken: String?)

    Parameters

    securedTransactionToken

    A secured transaction token, base64 encoded, to be forwarded to Smart’s delivery engine.