PartnerAdapter

interface PartnerAdapter

Properties

Link copied to clipboard

The partner adapter configuration.

Functions

Link copied to clipboard
abstract suspend fun fetchBidderInformation(context: <Error class: unknown class>, request: PartnerAdPreBidRequest): Result<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: <Error class: unknown class>, request: PartnerAdLoadRequest, partnerAdListener: PartnerAdListener): Result<PartnerAd>

Attempt to load a partner ad.

Link copied to clipboard
abstract fun setConsents(context: <Error class: unknown class>, consents: Map<<Error class: unknown class>, <Error class: unknown class>>, modifiedKeys: Set<<Error class: unknown class>>)

Notifies the partner of the current consents. Also notifies which ones changed. A key present in the modifiedKeys but not in the consents map means the consent was removed.

Link copied to clipboard
abstract fun setIsUserUnderage(context: <Error class: unknown class>, isUserUnderage: Boolean)

Notify the partner if the current user is underage (subject to COPPA or equivalent).

Link copied to clipboard
abstract suspend fun setUp(context: <Error class: unknown class>, partnerConfiguration: PartnerConfiguration): Result<Map<String, Any>>

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

Link copied to clipboard
abstract suspend fun show(activity: <Error class: unknown class>, partnerAd: PartnerAd): Result<PartnerAd>

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