load

abstract suspend fun load(context: <Error class: unknown class>, request: PartnerAdLoadRequest, partnerAdListener: PartnerAdListener): Result<PartnerAd>

Attempt to load a partner ad.

Return

Result.success(PartnerAd) if the ad was successfully loaded, Result.failure(Exception) otherwise.

Parameters

context

The current Context.

request

An PartnerAdLoadRequest instance containing relevant data for the current ad load call.

partnerAdListener

A PartnerAdListener to notify Chartboost Mediation of ad events.