loadAd

open fun loadAd(@NonNull adPlacement: SASAdPlacement)

Loads an ad in this SASAdView. This call is asynchronous. Note: if this SASAdView already is in a loadAd() call that has not yet finished, any subsequent loadAd call will fail with exception SASPendingRequestException. The only way to cancel a pending loadAd call is to call the reset method.

Parameters

adPlacement

the ad placement to use when loading an ad


open fun loadAd(@NonNull adPlacement: SASAdPlacement, @Nullable securedTransactionToken: String)

Loads an ad in this SASAdView. This call is asynchronous. Note: if this SASAdView already is in a loadAd() call that has not yet finished, any subsequent loadAd call will fail with exception SASPendingRequestException. The only way to cancel a pending loadAd call is to call the reset method.

Parameters

adPlacement

the ad placement to use when loading an ad

securedTransactionToken

the secured transaction token passed in the ad call.


open fun loadAd(@NonNull adPlacement: SASAdPlacement, @Nullable bidderAdapter: SASBidderAdapter)

Loads an ad in this SASAdView using a bidder adapter. This call is asynchronous. Note: if this SASAdView already is in a loadAd() call that has not yet finished, any subsequent loadAd call will fail with exception SASPendingRequestException. The only way to cancel a pending loadAd call is to call the reset method.

Parameters

adPlacement

the ad placement to use when loading an ad

bidderAdapter

the bidder adapter to pass to the ad call


open fun loadAd(@NonNull adPlacement: SASAdPlacement, @Nullable bidderAdapter: SASBidderAdapter, @Nullable securedTransactionToken: String)

Loads an ad in this SASAdView using a bidder adapter. This call is asynchronous. Note: if this SASAdView already is in a loadAd() call that has not yet finished, any subsequent loadAd call will fail with exception SASPendingRequestException. The only way to cancel a pending loadAd call is to call the reset method.

Parameters

adPlacement

the ad placement to use when loading an ad

bidderAdapter

the bidder adapter to pass to the ad call

securedTransactionToken

the secured transaction token passed in the ad call.


open fun loadAd(@NonNull biddingAdResponse: SASBiddingAdResponse)

Loads the ad contained in the adElementWrapper of the given SASBiddingAdResponse.

Parameters

biddingAdResponse

The SASBiddingAdResponse to use.