invalidate

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.

Return

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

Parameters

partnerAd

The PartnerAd object containing the partner ad to be discarded.