react-native-google-mobile-ads
    Preparing search index...

    Function useGAMInterstitialAd

    • React Hook for Google Ad Manager Interstitial Ad.

      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.

      const { status, show } = useGAMInterstitialAd({
      adUnitId: TestIds.GAM_INTERSTITIAL,
      autoLoad: consentReady,
      onAppEvent: ({ name, data }) => {
      console.log(name, data);
      },
      });

      return <Button title="Continue" disabled={status !== 'loaded'} onPress={() => show()} />;

      Parameters

      Returns UseFullScreenAdResultWithoutReward