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

    Function useInterstitialAd

    • React Hook for Interstitial Ad.

      Parameters

      • adUnitId: string | null

        The Ad Unit ID for the Interstitial Ad. You can find this on your Google Mobile Ads dashboard. You can destroy ad instance by setting this value to null.

      • OptionalrequestOptions: RequestOptions

        Optional RequestOptions used to load the ad.

      Returns Omit<AdHookReturns, "reward" | "isEarnedReward">

      Pass an options object instead: useInterstitialAd({ adUnitId }). The positional form is removed in v18. The options form loads on its own, accepts autoLoad, and reports a single status. See the v17 migration guide.

    • React Hook for 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.

      const { status, show } = useInterstitialAd({
      adUnitId: TestIds.INTERSTITIAL,
      autoLoad: consentReady,
      });

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

      Parameters

      Returns UseFullScreenAdResultWithoutReward