This page is the reference for every option supported by the Expo config plugin, alongside the equivalent bare
app.json keys under the react-native-google-mobile-ads block.
Setup context lives in the installation guides: Install with Expo and
Install with React Native CLI. This page documents every key the
plugin and bare app.json path accept, including options not covered there.
| Expo plugin (camelCase) | Bare app.json (snake_case) | Default | Platforms | Purpose |
|---|---|---|---|---|
androidAppId | android_app_id | — (required) | Android | AdMob Android App ID. |
iosAppId | ios_app_id | — (required) | iOS | AdMob iOS App ID. |
androidSdk | android_sdk | classic | Android | Android ads backend (classic | legacy | nextgen). |
delayAppMeasurementInit | delay_app_measurement_init | false | Android, iOS | Delay app measurement until the SDK initializes or loads an ad. |
optimizeInitialization | optimize_initialization | true | Android | Optimize SDK initialization. |
optimizeAdLoading | optimize_ad_loading | true | Android | Optimize ad loading. |
skAdNetworkItems | sk_ad_network_items | — | iOS | SKAdNetwork identifiers. |
userTrackingUsageDescription | user_tracking_usage_description | — | iOS | App Tracking Transparency usage description string. |
There are no other plugin keys. Rebuild native code after changing any of these values.
Pass options as the second element of the plugin tuple in app.json, app.config.js, or app.config.ts:
// <project-root>/app.json
{
"expo": {
"plugins": [
[
"react-native-google-mobile-ads",
{
"androidAppId": "ca-app-pub-xxxxxxxx~xxxxxxxx",
"iosAppId": "ca-app-pub-xxxxxxxx~xxxxxxxx"
}
]
]
}
}Sets the AdMob Android App ID on
com.google.android.gms.ads.APPLICATION_ID in the Android manifest.
Omitting this value causes a console warning from the Expo plugin (or a Gradle warning for bare apps). The native Google Mobile Ads SDK will crash on Android startup without a valid App ID.
See Google AdMob for where to find the App ID in the AdMob console.
Sets GADApplicationIdentifier in the iOS Info.plist.
Omitting this value causes a console warning from the Expo plugin (or an iOS config-script warning for bare apps). The native Google Mobile Ads SDK will crash on iOS without a valid App ID.
Selects which Google Mobile Ads Android SDK this library links at native build time. Accepted
values: classic, legacy, and nextgen.
| Value | Effect |
|---|---|
classic | Classic play-services-ads backend (default when the key / Gradle property is omitted). |
legacy | Synonym for classic. |
nextgen | GMA Next-Gen SDK (ads-mobile-sdk). |
The Expo config plugin writes the Gradle property RNGMA_ANDROID_BACKEND when androidSdk is set.
For bare React Native, precedence is:
- Gradle project property
-PRNGMA_ANDROID_BACKEND=… RNGMA_ANDROID_BACKENDinandroid/gradle.propertiesandroid_sdkin thereact-native-google-mobile-adsblock ofapp.json
When nothing is set, the library defaults to classic. Rebuild native Android after changing the
backend.
Why and when to switch, mediation and Google Ad Manager compatibility, requirements, and full Expo / bare examples: GMA Next-Gen SDK (Android).
When true, delays Google Mobile Ads app measurement until the Mobile Ads SDK is initialized or an ad is
loaded. Default: false.
- Android: writes
com.google.android.gms.ads.DELAY_APP_MEASUREMENT_INITin the manifest. - iOS: writes
GADDelayAppMeasurementInitinInfo.plist.
Use this when you gather consent before ads — see Delaying app measurement.
Android-only flags that set Google's
OPTIMIZE_INITIALIZATION
and
OPTIMIZE_AD_LOADING
manifest meta-data. Both default to true (matching Google Mobile Ads SDK 24+ defaults).
These keys have no iOS equivalent. On Expo, the config plugin always writes both meta-data entries
(using the defaults when the keys are omitted). On bare React Native, the same defaults are applied
via Android manifest placeholders when the keys are omitted from app.json.
An array of SKAdNetwork identifiers
merged into SKAdNetworkItems in Info.plist. Identifiers already present are left unchanged;
missing ones are appended. Keep this list up to date — Google's published list changes over time.
See the installation guides for a full example list: Expo · React Native CLI.
Sets NSUserTrackingUsageDescription in Info.plist — the string shown in Apple's App Tracking
Transparency prompt. Request authorization at runtime as described in
Consent & privacy basics.
"userTrackingUsageDescription": "This identifier will be used to deliver personalized ads to you."Bare equivalent:
"user_tracking_usage_description": "This identifier will be used to deliver personalized ads to you."