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.
| Area | Guidance |
|---|---|
| Class names and call shapes | InterstitialAd.createForAdRequest, load(), show(), event listeners |
| Banner / native components | Existing props and load paths keep working |
Legacy error code/message | Unchanged string values on existing paths |
| Consent / request config | Same entry points; a few additive optional fields |
You can upgrade, ship, and adopt new APIs later.
- 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
minSdkVersionto 24. - Upgrade
react-native-google-mobile-adsand rebuild native apps (pods / Gradle). - Keep using create / load / show until you need a new surface.
- Prefer branching on structured
reason/phase(and hookstatus) over legacycodestrings. - Call
destroy()(or let hooks /release()ownership rules do it) when you finish with an ad. - Optionally adopt telemetry, pools, multi-format, or scoped adapter packages — see below.
- 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.
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):
| Condition | v17.1 and earlier | v17.2 and newer |
|---|---|---|
| Not loaded yet | Throws synchronously | Rejects the returned promise |
| Show already requested (in flight) | Throws synchronously | Rejects the returned promise |
| Platform declines to present | Rejects | Rejects (unchanged) |
| Ad has been destroyed | Throws synchronously | Throws synchronously (unchanged) |
Structurally invalid showOptions | Throws synchronously | Throws 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:
// 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.
| Condition | v17.1 and earlier PooledAd | v17.1 and earlier usePooledAd ad | v17.2 and newer (both) |
|---|---|---|---|
| Show already requested (in flight) | Rejects | Rejects | Rejects (unchanged) |
| Platform declines to present | Rejects | Rejects | Rejects (unchanged) |
| Ad has been destroyed | Rejects | Rejects | Throws synchronously |
Invalid showOptions, no show in flight | Throws synchronously | Rejects | Throws synchronously (unchanged for PooledAd) |
A pooled ad is always loaded when you poll it, so there is no not-loaded case.
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.
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.
Every structured failure carries:
| Field | Role |
|---|---|
code | Legacy string (deprecated in v17; prefer reason; removed in v18) |
message | Human-readable text |
reason | Stable 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.
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”).
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.
const unsub = ad.addAdEventListener(AdEventType.CLOSED, () => {
unsub();
ad.destroy();
});Ownership rules that bite in production
| Situation | Do this |
|---|---|
| Imperative create / load / show | You own destroy() when finished |
| Options-form fullscreen hook | Hook cleans up on unmount / identity change; prefer leaving it alone |
usePooledAd / useMultiFormatAd still owns | Do not call destroy() — call release() first if you need ownership |
After release() | You own destroy() and any staleness check |
Pool poll() filled result | Ownership 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.
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.
// 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,
});| Positional | Options form |
|---|---|
isLoaded | status === 'loaded' |
isShowing | status === 'showing' |
isClosed | status === 'closed' |
error?: Error | error: AdError | null + 'no-fill' status arm |
load / show / destroy | See 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.
Warm inventory and native-or-banner competitive requests are opt-in. Prefer presets — do not hand-roll capability matrices.
| Need | Guide |
|---|---|
| Fullscreen pool + poll at show time | Preload pools and multi-format recipes |
| Count-1 native or GAM banner | Same guide · MultiFormatAdPresets.nativeOrBanner |
| Types, expiry, ownership | Generated AdPool reference |
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.
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:
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:
$RNGoogleMobileAdsSDKVersion = '13.10.0'
$RNGoogleUmpSDKVersion = '3.1.0'or set the prefixed environment variables while installing pods:
RNGMA_IOS_GOOGLE_MOBILE_ADS_SDK_VERSION=13.10.0 \
RNGMA_IOS_GOOGLE_UMP_SDK_VERSION=3.1.0 \
bundle exec pod installiOS 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).
| Symptom | Likely cause / fix |
|---|---|
Treating every error !== null as a hard fail | Options-form hooks populate error on 'no-fill' too — branch on status |
Looking for SHOW_FAILED | Does not exist — use ERROR with phase: 'show' |
| Android never saw show failures before | Expected — Android now emits one ERROR (phase: 'show') on fail-to-present |
Paid payload missing currencyCode | Public field is currency |
| Full waterfall missing on every paid event | By design — use load-time ResponseInfo for waterfalls; paid is compact |
| Symptom | Likely 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 show | Hook-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 |
| Symptom | Likely cause / fix |
|---|---|
Options-form hook stuck on 'idle' | autoLoad is false — confirm echoed autoLoad on the result |
| Next ad never warms after dismissal | Automatic load does not re-fire after 'closed' — call load() / retry() |
useAdPool / usePooledAd stuck on absent / empty | poolId typo or missing AdPoolProvider entry |
| Two screens starve a depth-1 pool | Two usePooledAd(sameId) owners competing |
Positional useInterstitialAd(unit) struck through | Deprecated — pass an options object |
Account approval, new units, test devices, and applicationId issues still dominate
“no ads” reports. See
Common reasons ads do not show and
Ad Inspector.
| Symptom | Likely cause / fix |
|---|---|
googleMobileAds/timeout ~ten seconds after initialize | SDK GADErrorTimeout forwarding — not a bridge timer; see common reasons |
| Kind of bug | Include |
|---|---|
| Classic load / show / fill | Ad Inspector outcome, ad unit, test device, platform SDK version |
| Auction / mediation mix | Summarized load-time ResponseInfo (Revenue telemetry) |
| Pools / multi-format / preload | JSON.stringify(getAdCapabilities(), null, 2) (Preload pools diagnostics) |
| Structured error handling | reason, phase, code, message, and whether responseInfo was present |
- 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
- GMA Next-Gen SDK (Android) — Android classic / Next-Gen build-time selection
- Revenue telemetry and auction diagnostics
- Preload pools and multi-format recipes
- Ad formats
- React hooks
- Mediation
- Common reasons ads do not show
- Migrating to v15 — prior Android Kotlin floor note
- Generated API reference — public types and symbol-level guidance