Migrating to v17

Adopt the v17 platform baseline, structured outcomes, pools, and multi-format APIs.

v17 keeps classic create / load / show and <BannerAd> / NativeAd source-compatible. Most apps need no rewrite to keep ads loading and showing. New surfaces are opt-in: structured errors, ResponseInfo, destroy(), fullscreen hook options, preload pools, multi-format requests, and scoped mediation adapter packages.

The platform baseline does change: v17 requires React Native 0.86.0 or newer and the New Architecture, and native installation fails only when the New Architecture is explicitly disabled. The Legacy Architecture is no longer supported. iOS requires a minimum deployment target of 15.1, matching React Native 0.86.0. On Xcode 27+, also clamp pod IPHONEOS_DEPLOYMENT_TARGET values to ≥ 15.1 in your Podfile post_install — see iOS CocoaPods deployment targets. Android requires minimum API level 24. The supported and tested Android host baseline uses compile / target API level 36 and Build Tools 36.0.0. Standalone package builds use Android Gradle Plugin 8.6.0; the library does not enforce the host application's Android Gradle Plugin version. Kotlin 1.9.25 or newer is required. Builds using Kotlin versions earlier than 2.3 receive a module-scoped metadata compatibility compiler flag; Kotlin 2.3 and newer do not. See Android Kotlin compatibility.

Use this guide for the deltas publishers hit on upgrade, plus honest troubleshooting. Canonical TypeScript shapes live in the generated API reference.

What stays the same

AreaGuidance
Class names and call shapesInterstitialAd.createForAdRequest, load(), show(), event listeners
Banner / native componentsExisting props and load paths keep working
Legacy error code/messageUnchanged string values on existing paths
Consent / request configSame entry points; a few additive optional fields

You can upgrade, ship, and adopt new APIs later.

Checklist

  1. Upgrade to React Native 0.86.0 or newer and enable the New Architecture. Raise the app's iOS deployment target to 15.1 and Android minSdkVersion to 24.
  2. Upgrade react-native-google-mobile-ads and rebuild native apps (pods / Gradle).
  3. Keep using create / load / show until you need a new surface.
  4. Prefer branching on structured reason / phase (and hook status) over legacy code strings.
  5. Call destroy() (or let hooks / release() ownership rules do it) when you finish with an ad.
  6. Optionally adopt telemetry, pools, multi-format, or scoped adapter packages — see below.
  7. On v17.2 or newer, handle not-loaded and already-showing show() outcomes with .catch() — see v17.2: show() reports not-loaded and already-showing on the promise.

v17.2: show() reports not-loaded and already-showing on the promise

We recognize v17 is very new and expect essentially no one has adopted the new v17 APIs yet. This smooths a real rough edge: the two most common "not right now" conditions on show() — not loaded, and already showing — now come back on the returned promise, like a platform decline, so a single .catch() (or try { await } catch) covers them. A destroyed ad, or invalid show options on a loaded ad, still throw synchronously, on purpose, as a loud programmer-error signal. If you drive fullscreen ads through the fullscreen hooks, nothing changes — the hook show was always press-safe. Pooled ads have a small delta of their own, described at the end of this section.

What changed for MobileAd.show() (InterstitialAd, RewardedAd, RewardedInterstitialAd, AppOpenAd, GAMInterstitialAd):

Conditionv17.1 and earlierv17.2 and newer
Not loaded yetThrows synchronouslyRejects the returned promise
Show already requested (in flight)Throws synchronouslyRejects the returned promise
Platform declines to presentRejectsRejects (unchanged)
Ad has been destroyedThrows synchronouslyThrows synchronously (unchanged)
Structurally invalid showOptionsThrows synchronouslyThrows synchronously (unchanged)

A destroyed ad always throws. Otherwise, the not-loaded and in-flight checks reject first, so invalid showOptions throw only on a loaded ad with no show in flight. The error messages are the same as before. If you wrapped show() in a synchronous try / catch to handle not-loaded or already-showing, move that handling to the promise:

ts
// v17.1 and earlier: not-loaded and already-requested were thrown synchronously.
try {
  interstitial.show();
} catch (error) {
  console.warn(error);
}

// v17.2 and newer: not-loaded, already-showing, and platform declines come back on the promise.
interstitial.show().catch(error => {
  console.warn(error);
});
// A destroyed instance, or invalid options on a loaded ad, still throw synchronously (programmer
// error) — fix the call site.

The existing fullscreen hooks (useInterstitialAd, useRewardedAd, useRewardedInterstitialAd, useAppOpenAd) are unchanged: their show absorbs both channels, so an onPress={() => show()} is a no-op on failure and hook call sites need no change. The new useGAMInterstitialAd shares the same press-safe show.

Preload pools have been public since the first v17 release, so pooled fullscreen ads get a small delta of their own. A destroyed PooledAd now throws synchronously instead of rejecting, matching MobileAd and the rest of the API's "using a destroyed object is a programmer error" convention. If you were relying on pooledAd.show() rejecting after the ad was destroyed, move that handling to a synchronous try / catch (or simply don't call show() on a destroyed or consumed pooled ad).

The ad returned by usePooledAd moves a little further. In v17.1 and earlier its show() was an async wrapper, so every failure, including a destroyed ad and invalid options, came back as a rejection. It now keeps the same two channels as PooledAd.show(). Neither is press-safe like the fullscreen hooks' show.

Conditionv17.1 and earlier PooledAdv17.1 and earlier usePooledAd adv17.2 and newer (both)
Show already requested (in flight)RejectsRejectsRejects (unchanged)
Platform declines to presentRejectsRejectsRejects (unchanged)
Ad has been destroyedRejectsRejectsThrows synchronously
Invalid showOptions, no show in flightThrows synchronouslyRejectsThrows synchronously (unchanged for PooledAd)

A pooled ad is always loaded when you poll it, so there is no not-loaded case.

Additive: ResponseInfo and paid telemetry

After a successful load, read responseInfo on the ad (or hook / multi-format handle). Load failures — including clean no-fill — may carry the same record on error.responseInfo (or top-level on multi-format results).

Paid events expose a compact snapshot (PaidResponseInfo) without the full adapterResponses list. Public paid field names use currency (not native currencyCode) and optional valueMicros as a decimal string.

ts
import { AdEventType, InterstitialAd, TestIds } from 'react-native-google-mobile-ads';

const ad = InterstitialAd.createForAdRequest(TestIds.INTERSTITIAL);

ad.addAdEventListener(AdEventType.LOADED, () => {
  console.log(ad.responseInfo?.loadedAdapterResponse?.adSourceName);
});

ad.addAdEventListener(AdEventType.ERROR, error => {
  // Routine no-fill still has reason 'no-fill' and may include responseInfo.
  console.log(error.reason, error.phase, error.responseInfo?.responseId);
});

ad.load();

Full recipes: Revenue telemetry and auction diagnostics.

Additive: structured errors (reason + phase)

Every structured failure carries:

FieldRole
codeLegacy string (deprecated in v17; prefer reason; removed in v18)
messageHuman-readable text
reasonStable machine reason (no-fill, network-error, …)
phase'load' or 'show'
responseInfo?Auction record when the platform attached one

There is no SHOW_FAILED event. Fail-to-show arrives as AdEventType.ERROR with phase: 'show'. On Android, presentation failures that previously emitted nothing now emit that single ERROR — filter on phase so load and show outcomes stay distinct.

ts
ad.addAdEventListener(AdEventType.ERROR, error => {
  if (error.phase === 'show') {
    // Presentation failed; do not treat as a load/no-fill.
    return;
  }
  if (error.reason === 'no-fill' || error.reason === 'mediation-no-fill') {
    // Routine empty response — retry or continue without treating as a crash.
    return;
  }
  console.warn('load failure', error.reason, error.message);
});

On fullscreen hooks that use the options form, use status (not error !== null) to tell routine 'no-fill' from 'error'. Details: Revenue telemetry and auction diagnostics (section “Distinct no-fill vs failure”).

Additive: lifecycle — destroy(), ownership, impression

Fullscreen and native ads expose idempotent destroy(): it releases JS listeners and asks native to drop the holder. Destroyed instances ignore late events and load(); show() on a destroyed instance throws synchronously.

ts
const unsub = ad.addAdEventListener(AdEventType.CLOSED, () => {
  unsub();
  ad.destroy();
});

Ownership rules that bite in production

SituationDo this
Imperative create / load / showYou own destroy() when finished
Options-form fullscreen hookHook cleans up on unmount / identity change; prefer leaving it alone
usePooledAd / useMultiFormatAd still ownsDo not call destroy() — call release() first if you need ownership
After release()You own destroy() and any staleness check
Pool poll() filled resultOwnership transferred; destroy the held ad when done

AdEventType.IMPRESSION is additive (no payload). Hooks also expose an impression boolean on the options-form result.

Reload after CLOSED or fail-to-show reuses the same request id once native holders auto-evict — you do not need a new class instance solely because the previous show ended.

Fullscreen hooks: positional form deprecated

Passing an options object opts into the v17 result (status, autoLoad, structured error). The positional form still works, is deprecated in v17, and is removed in v18.

tsx
// Before (deprecated)
const { isLoaded, load, show, error } = useInterstitialAd(unit);
useEffect(() => {
  if (consentReady) load();
}, [consentReady, load]);

// After
const { status, show, error } = useInterstitialAd({
  adUnitId: unit,
  autoLoad: consentReady,
});
PositionalOptions form
isLoadedstatus === 'loaded'
isShowingstatus === 'showing'
isClosedstatus === 'closed'
error?: Errorerror: AdError | null + 'no-fill' status arm
load / show / destroySee below; options also adds retry

Options-form destroy() destroys the current ad, creates a fresh idle instance from the current arguments, and does not load it even when autoLoad is true; later load() or retry() uses that replacement. Positional and imperative-ad destroy() only destroy the current instance.

autoLoad is a load policy, not a second placement identity. Setting it false stops future automatic loads; it does not cancel an in-flight request (platforms do not expose load cancellation). See React hooks.

Automatic loading does not re-fire after 'closed'. Call load() / retry() (or flip autoLoad with a new consent-ready value) when you want the next ad.

Optional: pools and multi-format

Warm inventory and native-or-banner competitive requests are opt-in. Prefer presets — do not hand-roll capability matrices.

NeedGuide
Fullscreen pool + poll at show timePreload pools and multi-format recipes
Count-1 native or GAM bannerSame guide · MultiFormatAdPresets.nativeOrBanner
Types, expiry, ownershipGenerated AdPool reference

Optional: scoped mediation adapter packages

Third-party network adapters ship as separate packages under @react-native-google-mobile-ads/<network> (for example applovin, facebook, unity). Install only the networks you mediate; they are not required for AdMob-only apps. Follow Mediation for AdMob UI setup and native wiring.

Native SDK version overrides

v17 pins the Google Mobile Ads and User Messaging Platform SDK versions in the package. Those defaults are the supported and release-tested combination. If an app must satisfy a native mediation-adapter constraint, it can take ownership of the versions.

Android uses the existing React Native Gradle version map. Add only the entries you need to the root project's android/build.gradle:

groovy
rootProject.ext {
  def reactNative = has('react-native') ? get('react-native') : [:]
  reactNative.versions = (reactNative.versions ?: [:]) + [
    googleMobileAds: [
      sdk: '25.5.0',
      nextGenSdk: '1.5.0',
    ],
    ads: [
      consent: '4.0.0',
    ],
  ]
  set('react-native', reactNative)
}

The app map wins over the package defaults (sdkVersions.android.googleMobileAds, sdkVersions.android.googleMobileAdsNextGen, and sdkVersions.android.googleUmp). Include nextGenSdk only when you need to override the Next-Gen pin; classic builds ignore it. On iOS, set either Podfile globals before declaring the React Native pods:

ruby
$RNGoogleMobileAdsSDKVersion = '13.10.0'
$RNGoogleUmpSDKVersion = '3.1.0'

or set the prefixed environment variables while installing pods:

bash
RNGMA_IOS_GOOGLE_MOBILE_ADS_SDK_VERSION=13.10.0 \
RNGMA_IOS_GOOGLE_UMP_SDK_VERSION=3.1.0 \
bundle exec pod install

iOS precedence is environment variable, then Podfile global, then package pin. This is also the Expo/EAS bridge: configure the two environment variables for the native build. The Expo config plugin deliberately has no SDK version parameters or app.json fields. Expo Android projects use native Gradle configuration after generating native projects.

Overriding transfers compatibility testing to the app. An override is not a statement that arbitrary SDK versions are supported, and adapters do not change the Google Mobile Ads SDK for you. Check every mediation adapter's compatibility table and test the resolved native dependency graph. Release tooling continues to validate the package default pins in the example Podfile.lock; app-local overrides do not change that invariant.

These controls only select versions of the already chosen Android backend (classic play-services-ads or Next-Gen ads-mobile-sdk). They do not flip classic ↔ Next-Gen. Backend selection is a separate build-time flag — see GMA Next-Gen SDK (Android) (v17 classic default / Next-Gen opt-in; v18 flips the default).

Troubleshooting

Ads still load, but analytics / retries look wrong

SymptomLikely cause / fix
Treating every error !== null as a hard failOptions-form hooks populate error on 'no-fill' too — branch on status
Looking for SHOW_FAILEDDoes not exist — use ERROR with phase: 'show'
Android never saw show failures beforeExpected — Android now emits one ERROR (phase: 'show') on fail-to-present
Paid payload missing currencyCodePublic field is currency
Full waterfall missing on every paid eventBy design — use load-time ResponseInfo for waterfalls; paid is compact

Destroy / ownership surprises

SymptomLikely cause / fix
Hook still reports filled after you called destroy()Destroyed hook-owned inventory — release() first, or let the hook destroy
Post-show events never fire after pooled showHook-owned show destroys the ad on CLOSED — release() before show if you need events after close
Late LOADED after a newer load() / destroy()Stale generation — ignored by design; do not treat as a second fill

Hooks and pools

SymptomLikely cause / fix
Options-form hook stuck on 'idle'autoLoad is false — confirm echoed autoLoad on the result
Next ad never warms after dismissalAutomatic load does not re-fire after 'closed' — call load() / retry()
useAdPool / usePooledAd stuck on absent / emptypoolId typo or missing AdPoolProvider entry
Two screens starve a depth-1 poolTwo usePooledAd(sameId) owners competing
Positional useInterstitialAd(unit) struck throughDeprecated — pass an options object

Fill and setup (unchanged)

Account approval, new units, test devices, and applicationId issues still dominate “no ads” reports. See Common reasons ads do not show and Ad Inspector.

SymptomLikely cause / fix
googleMobileAds/timeout ~ten seconds after initializeSDK GADErrorTimeout forwarding — not a bridge timer; see common reasons

Diagnostics dump for issue reports

Kind of bugInclude
Classic load / show / fillAd Inspector outcome, ad unit, test device, platform SDK version
Auction / mediation mixSummarized load-time ResponseInfo (Revenue telemetry)
Pools / multi-format / preloadJSON.stringify(getAdCapabilities(), null, 2) (Preload pools diagnostics)
Structured error handlingreason, phase, code, message, and whether responseInfo was present

What this guide does not cover

  • Removing shims or dropping deprecated positional hooks (v18)
  • Multi-count requests (numberOfAds / requestCount > 1)
  • Mediation host SDKs (MAX, CloudX, …) — out of this package surface
  • Invented eCPM / lift helpers — not part of the public API

Related guides