Config plugin

Reference for the Expo config plugin options and the bare app.json equivalents.

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.

Options (Expo plugin ↔ bare app.json)

Expo plugin (camelCase)Bare app.json (snake_case)DefaultPlatformsPurpose
androidAppIdandroid_app_id— (required)AndroidAdMob Android App ID.
iosAppIdios_app_id— (required)iOSAdMob iOS App ID.
androidSdkandroid_sdkclassicAndroidAndroid ads backend (classic | legacy | nextgen).
delayAppMeasurementInitdelay_app_measurement_initfalseAndroid, iOSDelay app measurement until the SDK initializes or loads an ad.
optimizeInitializationoptimize_initializationtrueAndroidOptimize SDK initialization.
optimizeAdLoadingoptimize_ad_loadingtrueAndroidOptimize ad loading.
skAdNetworkItemssk_ad_network_items—iOSSKAdNetwork identifiers.
userTrackingUsageDescriptionuser_tracking_usage_description—iOSApp Tracking Transparency usage description string.

There are no other plugin keys. Rebuild native code after changing any of these values.

Where configuration lives

Pass options as the second element of the plugin tuple in app.json, app.config.js, or app.config.ts:

json
// <project-root>/app.json
{
  "expo": {
    "plugins": [
      [
        "react-native-google-mobile-ads",
        {
          "androidAppId": "ca-app-pub-xxxxxxxx~xxxxxxxx",
          "iosAppId": "ca-app-pub-xxxxxxxx~xxxxxxxx"
        }
      ]
    ]
  }
}

App IDs

androidAppId / android_app_id

Sets the AdMob Android App ID on com.google.android.gms.ads.APPLICATION_ID in the Android manifest.

See Google AdMob for where to find the App ID in the AdMob console.

iosAppId / ios_app_id

Sets GADApplicationIdentifier in the iOS Info.plist.

Android SDK backend

androidSdk / android_sdk

Selects which Google Mobile Ads Android SDK this library links at native build time. Accepted values: classic, legacy, and nextgen.

ValueEffect
classicClassic play-services-ads backend (default when the key / Gradle property is omitted).
legacySynonym for classic.
nextgenGMA 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:

  1. Gradle project property -PRNGMA_ANDROID_BACKEND=…
  2. RNGMA_ANDROID_BACKEND in android/gradle.properties
  3. android_sdk in the react-native-google-mobile-ads block of app.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).

App measurement delay

delayAppMeasurementInit / delay_app_measurement_init

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_INIT in the manifest.
  • iOS: writes GADDelayAppMeasurementInit in Info.plist.

Use this when you gather consent before ads — see Delaying app measurement.

Android optimization flags

optimizeInitialization / optimize_initialization

optimizeAdLoading / optimize_ad_loading

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.

SKAdNetwork (iOS)

skAdNetworkItems / sk_ad_network_items

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.

App Tracking Transparency (iOS)

userTrackingUsageDescription / user_tracking_usage_description

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.

json
"userTrackingUsageDescription": "This identifier will be used to deliver personalized ads to you."

Bare equivalent:

json
"user_tracking_usage_description": "This identifier will be used to deliver personalized ads to you."