Loads as soon as it can, unless autoLoad is false. Read status for the
ad's current position in its lifecycle, and the fields beside it for what has
already happened to it. Pass onAppEvent for Ad Manager app events.
Example
const { status, show } = useGAMInterstitialAd({ adUnitId:TestIds.GAM_INTERSTITIAL, autoLoad:consentReady, onAppEvent: ({ name, data }) => { console.log(name, data); }, });
React Hook for Google Ad Manager Interstitial Ad.
Loads as soon as it can, unless
autoLoadisfalse. Readstatusfor the ad's current position in its lifecycle, and the fields beside it for what has already happened to it. PassonAppEventfor Ad Manager app events.Example