PartnerAdapter

interface PartnerAdapter

Properties

Link copied to clipboard
abstract val adapterVersion: String

The version of this adapter.

Link copied to clipboard

The pretty display name or brand name of the partner.

Link copied to clipboard
abstract val partnerId: String

The Chartboost Mediation internal partner ID.

Link copied to clipboard

The underlying partner's SDK version.

Functions

Link copied to clipboard
abstract suspend fun fetchBidderInformation(context: Context, request: PreBidRequest): Map<String, String>

Get a bid token if network bidding is supported.

Link copied to clipboard
abstract suspend fun invalidate(partnerAd: PartnerAd): Result<PartnerAd>

Discard unnecessary partner ad objects and release resources. This is required to destroy any Views from a specific PartnerAd, especially for banners.

Link copied to clipboard
abstract suspend fun load(context: Context, request: PartnerAdLoadRequest, partnerAdListener: PartnerAdListener): Result<PartnerAd>

Attempt to load a partner ad.

Link copied to clipboard
abstract fun setCcpaConsent(context: Context, hasGrantedCcpaConsent: Boolean, privacyString: String)

Notify the partner of CCPA consent. https://github.com/InteractiveAdvertisingBureau/USPrivacy/blob/master/CCPA/US%20Privacy%20String.md for more details regarding the CCPA privacy string.

Link copied to clipboard
abstract fun setGdpr(context: Context, applies: Boolean?, gdprConsentStatus: GdprConsentStatus)

Notify the partner whether GDPR applies and if so, whether the user has consented.

Link copied to clipboard
abstract suspend fun setUp(context: Context, partnerConfiguration: PartnerConfiguration): Result<Unit>

Initialize the partner SDK so that it's ready to request ads.

Link copied to clipboard
abstract fun setUserSubjectToCoppa(context: Context, isSubjectToCoppa: Boolean)

Notify the partner if the current user is subject to COPPA.

Link copied to clipboard
abstract suspend fun show(context: Context, partnerAd: PartnerAd): Result<PartnerAd>

Attempt to show the currently loaded partner ad. This will not be called for banners.