Jump to top

MobileAd

interface

Base class for InterstitialAd, RewardedAd, NativeAd and BannerAd.

Properties

adUnitId

</>

The Ad Unit ID for this AdMob ad.

adUnitId: string;

loaded

</>

Whether the advert is loaded and can be shown.

loaded: boolean;

Methods

load

</>

Start loading the advert with the provided RequestOptions.

load(): void;

onAdEvent

</>

Listen to ad events. See AdEventTypes for more information.

onAdEvent(listener: AdEventListener): Function;

show

</>

Show the loaded advert to the user.

show(showOptions?: AdShowOptions): Promise<void>;