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

    Function useAppOpenAd

    • React Hook for App Open Ad.

      Parameters

      • adUnitId: string | null

        The Ad Unit ID for the App Open 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: useAppOpenAd({ 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 App Open Ad.

      Loads as soon as it can, unless autoLoad is false. App open ads are usually conditional on something, so autoLoad is the field to reach for:

      const { status, show } = useAppOpenAd({
      adUnitId: TestIds.APP_OPEN,
      autoLoad: consentReady && !isFirstRun,
      });

      Parameters

      Returns UseFullScreenAdResultWithoutReward