Use this guide when you want warm inventory (poll when you need an ad) or a single request that may return native or banner. Prefer the presets below — do not invent capability matrices in app code.
Classic create/load/show and <BannerAd> / NativeAd keep working. Pools and
multi-format APIs are opt-in. Full TypeScript shapes live in the
generated API reference.
| Need | Reach for |
|---|---|
| Warm a fullscreen format and poll at show time | AdPoolPresets.fullscreen + AdPoolProvider / usePooledAd |
| One request: native or GAM banner winner (count 1) | MultiFormatAdPresets.nativeOrBanner + useMultiFormatAd |
| Warm display (native + banner) inventory | AdPoolPresets.display + provider / usePooledAd (depth 1, emulated) |
| Ask what this binary can do (diagnostics only) | getAdCapabilities() |
AdPools.create initializes the Google Mobile Ads SDK on Android and starts preloading
immediately. Create pools only after consent is resolved:
- Declarative: pass
enabled={consentReady}toAdPoolProvider.enableddefaults totrue.falsestops future creates only; it does not destroy, cancel, or tear down pools that already exist. - Imperative: call
AdPools.createonly after your consent flow has finished.
Canonical path for warming a single fullscreen format. Same pattern applies to
rewarded and app open; use AdFormat.REWARDED or AdFormat.APP_OPEN in the
preset.
import React, { useCallback, useMemo } from 'react';
import { Button } from 'react-native';
import {
AdEventType,
AdFormat,
AdPoolPresets,
AdPoolProvider,
TestIds,
usePooledAd,
} from 'react-native-google-mobile-ads';
const UNIT = TestIds.INTERSTITIAL;
const fullscreenPool = AdPoolPresets.fullscreen(AdFormat.INTERSTITIAL, UNIT);
const POOL_ID = fullscreenPool.poolId;
function LevelEndButton() {
const { poll, release } = usePooledAd(POOL_ID);
const onPress = useCallback(async () => {
const result = await poll();
if (result.status !== 'filled' || result.ad.format !== AdFormat.INTERSTITIAL) {
return;
}
const next = release();
if (!next || next.format !== AdFormat.INTERSTITIAL) {
next?.destroy();
return;
}
if (next.isStaleByPolicy()) {
next.destroy();
return;
}
const unsub = next.addAdEventListener(AdEventType.CLOSED, () => {
unsub();
next.destroy();
});
await next.show().catch(() => {
unsub();
next.destroy();
});
}, [poll, release]);
return <Button title="Continue (ad)" onPress={onPress} />;
}
export function AppWithFullscreenPool({ consentReady }: { consentReady: boolean }) {
const pools = useMemo(() => [fullscreenPool], []);
return (
<AdPoolProvider pools={pools} enabled={consentReady}>
<LevelEndButton />
</AdPoolProvider>
);
}Notes
- Read
poolIdfrom the preset config so provider and consumer share one typed id. - Prefer poll at show time. Holding a polled ad across a long session is your risk; the pool cannot refresh an ad it no longer owns.
- Default preset
bufferSizeis 1. Google recommends 2 per preload ID — pass{ bufferSize: 2 }when you want that depth under the app-wide cap. - There is no separate “pooled interstitial hook”: a polled fullscreen
PooledAdalready exposesshow()and the same event listeners. - Pooled
show(), on an imperativePooledAdor on the adusePooledAdreturns, has the same two error channels asInterstitialAd.show(). A show already in flight or a platform decline rejects the promise, so.catch()it. A destroyed ad throws synchronously, and so do invalidshowOptionswhen no show is in flight. It is not press-safe like the fullscreen hooks'show, andPooledAdhas no destroyed or loaded flag to check. Callshow()only on the ad you just polled or released (or on the hook'sadwhilestatus === 'filled'), never after you have destroyed it, keep one clear owner, andawaitit insidetry/catchor.catch()it.
Imperative equivalent (no React provider; run after consent is resolved):
import {
AdEventType,
AdFormat,
AdPools,
AdPoolPresets,
TestIds,
} from 'react-native-google-mobile-ads';
const pool = await AdPools.create(
AdPoolPresets.fullscreen(AdFormat.INTERSTITIAL, TestIds.INTERSTITIAL),
);
const result = await pool.poll();
if (result.status === 'filled' && result.ad.format === AdFormat.INTERSTITIAL) {
const ad = result.ad;
if (ad.isStaleByPolicy()) {
ad.destroy();
} else {
// show() resolves once presentation starts, not when the ad closes.
const offClosed = ad.addAdEventListener(AdEventType.CLOSED, () => {
offClosed();
ad.destroy();
});
try {
// Awaiting inside try catches both the rejection and a synchronous throw.
await ad.show();
} catch (error) {
offClosed();
ad.destroy();
console.warn(error);
}
}
}One AdLoader-style request. Formats compete; you get at most one winner.
Banner participation is Google Ad Manager only — use a GAM unit and
adServer: 'ad-manager' (the preset sets that for you).
import React from 'react';
import { ActivityIndicator, Text, View } from 'react-native';
import {
AdFormat,
BannerAdSize,
MultiFormatAdPresets,
MultiFormatBannerAdView,
NativeAdView,
NativeAsset,
NativeAssetType,
TestIds,
useMultiFormatAd,
} from 'react-native-google-mobile-ads';
// Use a GAM unit — AdMob ca-app-pub-… units hard-error when banner is requested.
const UNIT = TestIds.GAM_NATIVE;
export function MultiFormatFeedSlot({ consentReady }: { consentReady: boolean }) {
const { status, ads, errors, retry } = useMultiFormatAd({
adUnitId: UNIT,
requestOptions: MultiFormatAdPresets.nativeOrBanner([
BannerAdSize.MEDIUM_RECTANGLE,
BannerAdSize.BANNER,
]),
autoLoad: consentReady,
});
if (status === 'idle' || status === 'loading') return <ActivityIndicator />;
if (status === 'no-fill') {
return <Text onPress={retry}>Nothing to show, tap to retry</Text>;
}
if (status === 'error') {
return <Text onPress={retry}>Load failed: {errors[0]?.reason}. Tap to retry.</Text>;
}
const handle = ads[0];
if (!handle) return null;
return (
<View>
{handle.format === AdFormat.NATIVE ? (
<NativeAdView nativeAd={handle.ad}>
<NativeAsset assetType={NativeAssetType.HEADLINE}>
<Text>{handle.ad.headline}</Text>
</NativeAsset>
</NativeAdView>
) : (
<MultiFormatBannerAdView handle={handle} />
)}
</View>
);
}Notes
- Multi-format is not multi-count.
requestCountother than1is rejected. Multi-count is out of v1 and unsupported on mediated units. - Adaptive banner sizes are illegal here (no view width at request time).
FLUIDis also rejected:<MultiFormatBannerAdView>is sized fromhandle.sizeand cannot follow a fluid creative's rendered height. - Ad Manager custom native formats can compete too via
customNativeFormatIds— see Custom native (Ad Manager). <MultiFormatBannerAdView>is attach-only — it does not issue a second load.- Native winners use existing
<NativeAdView>viahandle.ad.
Neither iOS nor Android (classic or Next-Gen) ships an SDK display preloader for
banner / native in the current pins. AdPoolPresets.display still creates a usable
pool: the library fills depth 1 via the same count-1 multi-format request,
reports degraded: true with 'pool/emulated-no-sdk-preloader', and matches
getAdCapabilities().displayPreload === 'emulated'.
import React, { useCallback, useMemo } from 'react';
import { Button, Text, View } from 'react-native';
import {
AdFormat,
AdPoolPresets,
AdPoolProvider,
BannerAdSize,
MultiFormatBannerAdView,
NativeAdView,
NativeAsset,
NativeAssetType,
TestIds,
useAdPool,
usePooledAd,
} from 'react-native-google-mobile-ads';
const FEED_UNIT = TestIds.GAM_NATIVE; // replace with your GAM display unit
const displayPool = AdPoolPresets.display(FEED_UNIT, {
bannerSizes: [BannerAdSize.MEDIUM_RECTANGLE, BannerAdSize.BANNER],
});
const DISPLAY_POOL_ID = displayPool.poolId;
function FeedPlacement() {
const poolState = useAdPool(DISPLAY_POOL_ID);
const { status, poolStatus, available, observedCount, poll, ad } = usePooledAd(DISPLAY_POOL_ID);
const onShowNext = useCallback(() => {
void poll();
}, [poll]);
if (poolStatus === 'creating') return <Text>Warming display pool…</Text>;
if (poolStatus === 'error') {
return <Text onPress={poolState.retry}>Pool failed. Tap to retry.</Text>;
}
return (
<View>
{poolState.status === 'ready-degraded' ? (
<Text>Pool degraded: {poolState.pool.resolved.degradeReasons.join(', ')}</Text>
) : null}
<Text>
Available: {available ? 'yes' : 'no'} (count {observedCount})
</Text>
<Button title="Poll next ad" onPress={onShowNext} disabled={status === 'polling'} />
{ad?.format === AdFormat.BANNER ? <MultiFormatBannerAdView handle={ad} /> : null}
{ad?.format === AdFormat.NATIVE ? (
<NativeAdView nativeAd={ad.ad}>
<NativeAsset assetType={NativeAssetType.HEADLINE}>
<Text>{ad.ad.headline}</Text>
</NativeAsset>
</NativeAdView>
) : null}
</View>
);
}
export function AppWithDisplayPool() {
const pools = useMemo(() => [displayPool], []);
return (
<AdPoolProvider pools={pools}>
<FeedPlacement />
</AdPoolProvider>
);
}Notes
- Asking for
bufferSize > 1on a display pool loud-degrades to depth 1 (see below). - Do not mount two
usePooledAd(sameId)owners on a depth-1 pool — one starves the other. Give each placement its own pool, or make a single owner poll and pass the ad down. - Mixing fullscreen and display formats in one pool is a hard error.
Capabilities come from getAdCapabilities() for the linked backend
(ios / android-classic / android-next-gen). Android Next-Gen is a build-time
opt-in in v17 — see GMA Next-Gen SDK (Android).
| Surface | Behavior on tip |
|---|---|
| Fullscreen pools | SDK-managed preload — iOS and Android classic: experimental (iOS Beta / Android limited-alpha); Android Next-Gen (android-next-gen): App Open / Interstitial / Rewarded are supported |
| Rewarded interstitial pools | iOS only. Both Android backends create hard-error (pool/format-preload-unsupported) |
| Display pools | Library-emulated depth 1 on every backend; displayPreload: 'emulated' |
| Multi-format | GAM native ± banner, count 1 |
maxManagedPoolAds | Always null (server-delivered). Google's documented default app-wide cap is 6 |
poolResponseInfoPeek | SDK-managed peek: iOS and Android Next-Gen supported; Android classic unavailable (pool/peek-unsupported). Emulated display pools peek the library buffer without that gate on every backend |
Pooling improves readiness and may let the SDK optimize cache order among already-won ads. It is not evidence of yield lift. Do not claim that buffering or multi-format raises eCPM.
| Outcome | When | What you see |
|---|---|---|
| Loud degrade | Milder adjustment is safe (display depth > 1 → 1; emulated display) | resolved.degraded === true, degradeReasons, __DEV__ one-time warning |
| Hard error | Request is impossible (format drop, illegal size, unsupported mix) | AdPools.create / MultiFormatAdRequest.create reject or throw |
import { AdPoolPresets, AdPools, BannerAdSize, TestIds } from 'react-native-google-mobile-ads';
const pool = await AdPools.create(
AdPoolPresets.display(TestIds.GAM_NATIVE, {
bannerSizes: [BannerAdSize.MEDIUM_RECTANGLE],
bufferSize: 3, // not honourable on a display pool today
}),
);
pool.resolved.requestedBufferSize; // 3
pool.resolved.effectiveBufferSize; // 1
pool.resolved.degraded; // true
pool.resolved.degradeReasons;
// ['pool/degraded-buffer-size', 'pool/emulated-no-sdk-preloader']useAdPool surfaces the same pool as status: 'ready-degraded'.
Wrong — reinvent the matrix before every call:
const caps = getAdCapabilities();
if (caps.displayPreload === 'emulated') {
// hand-roll a one-shot load…
} else if (caps.fullscreenPreloadFormats[AdFormat.INTERSTITIAL] === 'experimental') {
// …
}Right — use presets, catch hard errors, read resolved when you care:
try {
const pool = await AdPools.create(
AdPoolPresets.fullscreen(AdFormat.INTERSTITIAL, unit, { bufferSize: 2 }),
);
if (pool.resolved.degraded) {
console.warn(pool.resolved.degradeReasons);
}
} catch (e) {
// e.g. rewarded interstitial on either Android backend → pool/format-preload-unsupported
}Reserve getAdCapabilities() for UI gating (hide a placement) or issue diagnostics —
not as a second config language.
When filing a bug, include:
JSON.stringify(getAdCapabilities(), null, 2);Useful fields: backend, sdkVersion, fullscreenPreloadFormats, displayPreload,
poolResponseInfoPeek, multiFormatNativeBanner, maxManagedPoolAds (expect null).
Google’s managed preload cache is app-wide across formats and preload IDs. The SDK
resolves the limit from server-delivered settings, so maxManagedPoolAds reports
null. Google documents a default limit of 6 preloaded ads, shared across all formats and
preload IDs, for iOS,
Android, and
Android Next-Gen.
Shallow pools coexist comfortably;
many deep pools will clamp. Read pool.resolved.effectiveBufferSize after create.
- Ad formats — classic create/load/show
- React hooks — fullscreen, native, and pool hooks
- Native ads — standalone native layouts
- Revenue telemetry and auction diagnostics —
responseInfo/ paid events on load and poll - Migrating to v17 — upgrade checklist, ownership, troubleshooting
- Generated pool reference — pool / multi-format types, expiry, and ownership rules