Properties
Protected className
className: string
Methods
canPlayAd
- canPlayAd(placementId: string): boolean
-
Parameters
Returns boolean
canPlayBanner
- canPlayBanner(placementId: string, bannerConfig: BannerConfig): boolean
-
Parameters
Returns boolean
destroyBanner
- destroyBanner(placementId: string): void
getConsentMessageVersion
- getConsentMessageVersion(): string
getConsentStatus
- getConsentStatus(): string
loadAd
- loadAd(placementId: string): void
loadBanner
- loadBanner(placementId: string, bannerConfig: BannerConfig): void
playAd
- playAd(placementId: string, adConfig: AdConfig): void
setLogDebug
- setLogDebug(debug: boolean): void
updateConsentStatus
- updateConsentStatus(consentStatus: ConsentStatus, consentMessageVersion: string): void
-
Parameters
-
-
consentMessageVersion: string
Returns void
For interstitial or rewarded ads: check if an ad is playable or not
用于插屏或者奖励广告:检查广告是否可播放