Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-native-google-mobile-ads

invertase125.2kApache-2.015.3.1TypeScript support: included

React Native Google Mobile Ads is an easy way to monetize mobile apps with targeted, in-app advertising.

react, react-native, admob, mobile ads, google ads, gdpr, banner ad, rewarded ad, interstitial, ad consent

readme


React Native Google Mobile Ads

NPM downloads NPM version License

Chat on Discord Follow on Twitter Follow on Facebook


React Native Google Mobile Ads allows you to monetize your app with AdMob; a React Native wrapper around the native Google-Mobile-Ads SDKs for both iOS and Android.

React Native Google Mobile Ads is built with three key principals in mind;

  • 🧪 Well tested
    • the module is extensively tested to >95% coverage (getting there after moving from react-native-firebase!)
  • 👁 Well typed
    • first class support for Typescript included
  • 📄 Well documented
    • full reference & installation documentation alongside detailed guides and FAQs

Ad formats

App open

App open ads are a special ad format intended for publishers wishing to monetize their app load screens.

App open ad

Learn More

Banner ad units display rectangular ads that occupy a portion of an app's layout. They stay on screen while users are interacting with the app, either anchored at the top or bottom of the screen or inline with content as the user scrolls. Banner ads can refresh automatically after a certain period of time.

Anchored adaptive

A dynamically sized banner that is full-width and auto-height. Anchored adaptive banners are expected to be always on-screen, locked to the screen’s top or bottom.

Anchored adaptive

Learn More

Inline adaptive

Inline adaptive banners are larger, taller banners compared to anchored adaptive banners. They are of variable height, and can be as tall as the device screen. They are intended to be placed in scrolling content.

Inline adaptive

Learn More

Collapsible

Collapsible banner ads are intended to improve performance of anchored ads that are otherwise a smaller size.

Collapsible banner

Learn More

Fixed size (legacy)

The Google Mobile Ads SDK supports fixed ad sizes for situations where adaptive banners ads don't meet your needs. Banner (320x50), Large banner (320x100), Medium rectangle (300x250), full banner (468x60) and leaderboard (728x90).

Learn More

Native

Native ads allow you to customize the look and feel of the ads that appear in your app. You decide how and where they're placed, so the layout is more consistent your app's design.

Native

Learn More

Interstitial

Interstitial ad units show full-page ads in your app. Place them at natural breaks & transitions in your app's interface, such as after level completion in a gaming app.

Interstitial

Learn More

Rewarded

AdMob rewarded ad units allow you to reward users with in-app items for interacting with video ads, playable ads, and surveys.

Rewarded

Learn More

Rewarded Interstitial

Rewarded interstitial is a type of incentivized ad format that allows you offer rewards for ads that appear automatically during natural app transitions. Unlike rewarded ads, users aren't required to opt-in to view a rewarded interstitial.

Rewarded interstitial

Learn More

Migrating to the New Architecture Status (backwards compatible)

This package can be used in both The Old and The New Architecture. When using The New Architecture, some legacy code will still be used though. See status below:

Platform Feature Status
iOS Mobile Ads SDK Methods (Turbo Native Module) ✅ Complete
iOS Banners (Fabric Native Component) ✅ Complete
iOS Full Screen Ads (Turbo Native Module) ✅ Complete
iOS Native Ads (Turbo Native Module, Fabric Native Component) ✅ Complete
iOS User Messaging Platform (Turbo Native Module) ✅ Complete
iOS EventEmitter (Turbo Native Module) ⏳ To-Do
iOS Revenue Precision Constants (Turbo Native Module) ✅ Complete
Android Mobile Ads SDK Methods (Turbo Native Module) ⏳ To-Do
Android Banners (Fabric Native Component) ⏳ To-Do
Android Full Screen Ads (Turbo Native Module) ⏳ To-Do
Android Native Ads (Turbo Native Module, Fabric Native Component) ✅ Complete
Android User Messaging Platform (Turbo Native Module) ⏳ To-Do
Android EventEmitter (Turbo Native Module) ⏳ To-Do
Android Revenue Precision Constants (Turbo Native Module) ⏳ To-Do

Documentation

Contributing

License


Built and maintained by Invertase.

changelog

15.3.1 (2025-05-24)

Bug Fixes

  • expo: make the config plugin idempotent (67b30da)

15.3.0 (2025-05-23)

Features

  • deps: update mobile ads sdk - ios 12.4.0 android 24.3.0 (57a91ce)

15.2.0 (2025-04-30)

Features

  • deps: update mobile ads sdk - ios 12.3.0 (1934f80)

15.1.0 (2025-04-15)

Features

  • deps: update mobile ads sdk - android 24.2.0 (1f71d9c)

15.0.0 (2025-03-23)

⚠ BREAKING CHANGES

  • deps: requires kotlin 2.1.0

Features

  • deps: update mobile ads sdk - android 24.1.0 (52a4e67)

14.11.0 (2025-03-23)

Features

  • deps: update mobile ads sdk - ios 12.2.0 (c88d8c0)

Bug Fixes

  • Revert "feat(deps): update mobile ads sdk - ios 12.2.0 android 24.1.0" (f26a903)
  • Revert "Revert "fix: resolve AndroidManifest conflict for AD_SERVICES_CONFIG (#660)"" (972f432)

14.10.1 (2025-03-15)

Bug Fixes

  • docs: small grammar fixes (234a6bb)
  • docs: typos (5989fbf)
  • in sdk 24.0.0 OPTIMIZE_INITIALIZATION and OPTIMIZE_AD_LOADING are set to true by default (b6be994)

Reverts

  • Revert "fix: resolve AndroidManifest conflict for AD_SERVICES_CONFIG (#660)" (ebe1d1d), closes #660

14.10.0 (2025-03-15)

Features

  • deps: update mobile ads sdk - ios 12.2.0 android 24.1.0 (9287eaa)

Bug Fixes

  • docs: typos (5989fbf)
  • in sdk 24.0.0 OPTIMIZE_INITIALIZATION and OPTIMIZE_AD_LOADING are set to true by default (b6be994)

Reverts

  • Revert "fix: resolve AndroidManifest conflict for AD_SERVICES_CONFIG (#660)" (ebe1d1d), closes #660

14.10.0 (2025-03-15)

Features

  • deps: update mobile ads sdk - ios 12.2.0 android 24.1.0 (9287eaa)

Bug Fixes

  • in sdk 24.0.0 OPTIMIZE_INITIALIZATION and OPTIMIZE_AD_LOADING are set to true by default (b6be994)

Reverts

  • Revert "fix: resolve AndroidManifest conflict for AD_SERVICES_CONFIG (#660)" (ebe1d1d), closes #660

14.9.1 (2025-02-26)

Bug Fixes

  • android: fix for android build on RN77 (39e3f7d)

14.9.0 (2025-02-04)

Features

  • ios: update mobile ads sdk to 12.0.0 with source code changes (a716c32)

14.8.1 (2025-01-23)

Bug Fixes

  • ios: register asset view properly in old arch (b1ea6c1)

14.8.0 (2024-12-30)

Features

  • Initial Native Ad Support (f68d987)

14.7.2 (2024-12-18)

Bug Fixes

  • gatherConsent missing options, remove js helpers from native module spec (46145b9)

14.7.1 (2024-12-12)

Bug Fixes

  • warning requiresMainQueueSetup (b6c2ee7)

14.7.0 (2024-12-11)

Features

  • update mobile ads sdk, ump sdk and add new geography options (8562627)

14.6.0 (2024-12-09)

Features

  • ios: precision constants on new arch (1a503f2)
  • ios: UMP consent SDK on new arch (19e9379)

14.5.0 (2024-12-03)

Features

  • ios: full screen ads on new arch (4e1cf8f)

14.4.3 (2024-12-02)

Bug Fixes

  • android: use currentActivity in initialize if !null, aids use of mediation adapters (#664) (410bcdc)

14.4.2 (2024-11-24)

Bug Fixes

  • resolve AndroidManifest conflict for AD_SERVICES_CONFIG (#660) (831bb8f)

14.4.1 (2024-11-23)

Bug Fixes

  • missing default requestagent (d56ac12)

14.4.0 (2024-11-15)

Features

  • gather consent method to make user consent easier (#654) (9a9e5e5)

14.3.1 (2024-11-13)

Bug Fixes

  • android: disable coalescing of native events (#646) (fce51b1)

14.3.0 (2024-11-12)

Features

14.2.5 (2024-10-08)

Bug Fixes

  • type tests were messing with type generation (#643) (63bbb54)

14.2.4 (2024-10-07)

Bug Fixes

  • android: fixup java->kotlin transition from 622 (e62bcb4)
  • jest setup was voiding custom turbo mocks (#636) (8866d8a)

14.2.3 (2024-08-23)

Bug Fixes

14.2.2 (2024-08-09)

Bug Fixes

  • hotfix building without an app.json file (fe0f4f2)

14.2.1 (2024-07-26)

Bug Fixes

  • expo managed project detection (79acdc2)

14.2.0 (2024-07-23)

Features

  • video: add support for video ad volume control (c1d821d)

14.1.0 (2024-07-16)

Features

  • deps: mobile ads sdk upgrade - ios 11.7.0 android 23.2.0 (5f0486f)

14.0.1 (2024-07-12)

Bug Fixes

  • android: replace deprecated onCatalystInstanceDestroy method (816c269)

14.0.0 (2024-07-12)

⚠ BREAKING CHANGES

  • Add expo config plugin

Features

13.6.1 (2024-07-04)

Bug Fixes

  • android: commands mapped incorrectly (cf9ee6e)

13.6.0 (2024-07-04)

Features

  • make reloading a banner on foreground easier with a hook (af5ca02)

Bug Fixes

  • types: update react-native dev dep, forward-port typings (dbb0208)

Performance Improvements

  • ci: avoid big globs in hashFiles (3093345)

13.5.0 (2024-05-21)

Features

  • add method to reload banner ad (2a57487)

13.4.0 (2024-05-20)

Features

  • deps: mobile ads sdk upgrade - ios 11.5.0 android 23.1.0 (a34c7ba)

13.3.1 (2024-05-19)

Bug Fixes

  • topNative name changed to topNativeEvent. (b4cbea3)
  • Typescript error in the docs (4ad8bc7)

13.3.0 (2024-05-13)

Features

  • android: Add support for ArrayList (7303730)

13.2.1 (2024-05-02)

Bug Fixes

  • banner, ios: banner not destroyed in new arch (2d8bdb5)
  • banner, ios: fixed memory leak (5cbf0e9)

13.2.0 (2024-04-03)

Features

Bug Fixes

  • android build error 'onAdLoaded' overrides nothing (bd52c12)

13.1.0 (2024-03-26)

Features

  • deps: mobile ads sdk upgrade - ios 11.2.0 android 23.0.0 (099add4)

13.0.2 (2024-03-05)

Bug Fixes

  • TestIds.ADAPTIVE_BANNER undefined type error (ffbc7b1)

13.0.1 (2024-02-22)

Bug Fixes

  • to support app privacy manifests, cocoapods has to be at >= 1.12.0 (ac8e06e)

13.0.0 (2024-02-22)

⚠ BREAKING CHANGES

  • deps: mobile ads sdk upgrade - ios 11.0.1, ump sdk 2.2.0

Features

  • deps: mobile ads sdk upgrade - ios 11.0.1, ump sdk 2.2.0 (d924586)

12.11.0 (2024-02-19)

Features

  • android: potentially improves mediation performance for banners (#527) (32f550a)

Bug Fixes

  • consent: the package returns the wrong value for consent for 'Create a personalized content profile' purpose (7aef863)

12.10.0 (2024-01-11)

Features

  • add method to check if consent for purpose 1 was given (8fcee30)

12.9.0 (2024-01-09)

Features

  • ios, android: Add support for app.config.js (#517) (be39d5a)

Reverts

  • Revert "chore(docs): update gathering consent info" (a82412b)

12.8.0 (2024-01-03)

Features

  • add method to check if gdpr applies (011d68d)

12.7.1 (2023-12-31)

Bug Fixes

  • banners not properly destroyed (ef85d87)

12.7.0 (2023-12-30)

Features

  • initialize sdk in parallel (3a427ee)

12.6.0 (2023-12-05)

Features

  • collapsible banner ads (beta) (345aaae)

Bug Fixes

  • remove redundant requestPersonalizedAdsOnly from docs (replaced by UMP) (79468a7)

12.5.1 (2023-12-05)

Bug Fixes

12.5.0 (2023-12-05)

Features

  • deps: mobile ads sdk upgrade - ios 10.14.0 android 22.5.0 (f3a8146)

12.4.0 (2023-11-10)

Features

  • exposes impression-level ad revenue events (969dbfa)

12.3.0 (2023-10-08)

Features

  • deps, ios: mobile ads sdk upgrade - ios 10.12.0 (6c86072)

12.2.0 (2023-09-25)

Features

  • deps: mobile ads sdk upgrade - ios 10.10.0 android 22.4.0 (96b2450)

12.1.2 (2023-09-11)

Bug Fixes

  • android: crash when activity context not available (7c89579)
  • android: race condition getting current activity (b3a09e1)

12.1.1 (2023-09-01)

Bug Fixes

  • missing events of type GAMAdEventType in addAdEventListener (073cc21)

12.1.0 (2023-08-29)

Features

  • consent: expose the new loadAndShowConsentFormIfRequired method (509f9b7)

12.0.0 (2023-08-13)

⚠ BREAKING CHANGES

  • Alters the return types of two methods

Features

  • return consent info whenever it changes (f04ac01)

11.7.0 (2023-08-07)

Features

  • deps, ios: mobile ads sdk upgrade - 10.9.0 (cb682f3)

11.6.5 (2023-08-05)

Bug Fixes

  • banner ad not showing when requestoptions absent (e0f7982)

11.6.4 (2023-08-04)

Bug Fixes

  • ios: support new arch in rn 0.70 (589a0fa)

11.6.3 (2023-08-01)

Bug Fixes

11.6.2 (2023-07-31)

Bug Fixes

  • export AdsConsentPrivacyOptionsRequirementStatus (43988a3)

11.6.1 (2023-07-28)

Bug Fixes

  • android: race condition getting current activity (5a8788b)

11.6.0 (2023-07-27)

Features

  • expose showPrivacyOptionsForm method (284b2f3)

Bug Fixes

  • ios: Build support on both architectures (2eac953)

11.5.0 (2023-07-25)

Features

  • google ump sdk upgrade - 2.1.0 (848986d)

Bug Fixes

  • android: example app gradle plugin location (57ec80c)

11.4.1 (2023-07-25)

Bug Fixes

  • ios: incompatible integer to pointer conversion (e25113d)

11.4.0 (2023-07-24)

Features

  • deps: mobile ads sdk upgrade - ios 10.8.0 android 22.2.0 (fa0ca9e)

11.3.0 (2023-07-24)

Features

  • ios: sdk methods and banners on new architecture (3ee9d02)

11.2.0 (2023-07-18)

Features

  • catalyst: support building on catalyst, though ads will not work (#389) (ab55792)

11.1.1 (2023-06-16)

Bug Fixes

  • android: android build error issue fixed for RN 0.72 "Cannot set the value of read-only property 'force' " (16ad8ec)

11.1.0 (2023-06-08)

Features

  • deps: mobile ads sdk upgrade - ios 10.6.0 (fe8ed90)

11.0.0 (2023-05-30)

⚠ BREAKING CHANGES

  • Updated minimum supported Xcode version to 14.1.
    • armv7 is not supported in Xcode 14 and has been removed from the SDK.
  • The minimum deployment target has been increased to iOS 11.0.

Features

  • deps: mobile ads sdk upgrade - ios 10.5.0 android 22.1.0 (37e5e7d)

10.3.2 (2023-05-03)

Bug Fixes

10.3.1 (2023-04-19)

Bug Fixes

  • ios: incompatibility with react-native-version (5ead5f0)

10.3.0 (2023-04-18)

Features

  • ios: add SKAdNetwork identifiers trough app.json (7ccbb6b)

10.2.0 (2023-04-14)

Features

  • deps: mobile ads sdk upgrade - ios 10.3.0 / android 22.0.0 (61bee9a)

10.1.3 (2023-04-13)

Bug Fixes

  • Solved issue with method recordManualImpression for GAMBannerAd (#363) (a7dbc74)

10.1.2 (2023-04-12)

Bug Fixes

  • android-debug: use activity for GAM (984247f)

10.1.1 (2023-04-09)

Reverts

  • Revert "fix(android banner): debug menu opening" (19b7e5a)

10.1.0 (2023-04-04)

Features

  • ads-module: open debug menu programmatically (3480f1b)

10.0.1 (2023-03-22)

Bug Fixes

  • android banner: debug menu opening (3b1f34c)

10.0.0 (2023-03-07)

⚠ BREAKING CHANGES

  • deps: - Ads are no longer served on iOS 11. iOS 12 is required to retrieve ads, though iOS 10 is still supported.
  • Building with bitcode is no longer supported. Disabling bitcode in your mobile apps is now required to integrate the Google Mobile Ads SDK (iOS).

Features

  • deps: mobile ads sdk upgrade - ios 10.2.0 / android 21.5.0 (feb7eb3)

9.1.2 (2023-02-22)

Bug Fixes

  • banner, android: support props for multiple view instances (8c61e8b)

9.1.1 (2023-01-22)

Bug Fixes

  • banner, ios: Fix not able to receive banner app event on iOS (e9ff699)

9.1.0 (2023-01-13)

Features

  • deps: mobile ads SDK upgrade - iOS 9.14.0 / android 21.4.0 (c81eeb6)

9.0.0 (2023-01-10)

⚠ BREAKING CHANGES

  • move GAM-exclusive FLUID type to new GAMBanner const

Bug Fixes

  • move GAM-exclusive FLUID type to new GAMBanner const (85545f6)

8.2.3 (2023-01-10)

Bug Fixes

  • ios: adaptive banner should take safe areas into account (c34fe1a)
  • type: fixed mobileAds initialize response status type #515 (e0a7d29)

8.2.2 (2022-11-27)

Bug Fixes

  • ios: use fully-specified path to required head utility (fe69aa4)

8.2.1 (2022-10-30)

Bug Fixes

  • deps: android sdk 21.3.0 / ios sdk 9.12.0 (dbb9ed3)

8.2.0 (2022-10-15)

Features

  • allow load to be called again after error (066986c)

8.1.2 (2022-10-12)

Bug Fixes

  • android, release: rewrite helper to avoid reflection / proguard issues (58839ce)

8.1.1 (2022-09-29)

Bug Fixes

  • ios, config: fix typo in ios_app_id error message (f0fe8e8), closes #219
  • ios: correctly handle utf-8 chars in ios-config.sh (d2e1d44), closes #194

8.1.0 (2022-09-16)

Features

  • deps: native admob SDK bumps - iOS 9.10.0 / android 21.2.0 (b6b5c6f)

8.0.1 (2022-09-07)

Bug Fixes

  • android: robustly handle full-screen load exceptions (fa79d87)
  • deps: android sdk 21.1.0 / ios sdk 9.9.0 (3778a89)

8.0.0 (2022-09-06)

⚠ BREAKING CHANGES

  • hooks: isLoaded becomes false after a fullscreen ad was shown.

Features

  • hooks: automatically set isLoaded to false (#199) (9d0ecac)

7.0.1 (2022-06-26)

Bug Fixes

  • android, build: correct kotlin plugin dependency (d3e41e9)

7.0.0 (2022-06-24)

⚠ BREAKING CHANGES

  • android, sdk: your android app must have minSdkVersion of 19 or higher to use this version
  • ios, sdk: your Xcode version must be 13.2.1 or higher to use this version

Features

  • android, sdk: adopt native sdk v21, minSdkVersion now 19 (1f17e15)
  • android: init/load optimization toggles, default true, override in app.json (05cbc7a)
  • build-time error if app.json not configured correctly (9139bd8), closes #84
  • ios, sdk: use google-mobile-ads-sdk 9.6.0 (5ef755b)

6.3.0 (2022-05-31)

Features

6.2.5 (2022-05-14)

Bug Fixes

  • fix ad inspector callback error (c652d5e)
  • fix false error in rewarded interstitial with valid event type value (#148) (7ee21bf)

6.2.4 (2022-05-12)

Bug Fixes

  • android: send ad size before ad loads (3049ea3)

6.2.3 (2022-05-12)

Bug Fixes

  • ios: use python3, fixes issues on macOS 12.3+ (df4acef)

6.2.2 (2022-05-10)

Bug Fixes

  • allow undefined configuration properties (#138) (6a083fd)
  • batch banner ad prop update (c6aea8b)

6.2.1 (2022-05-06)

Bug Fixes

  • ios: already presenting another view controller (138df47)

6.2.0 (2022-05-04)

Features

  • add inline adaptive banners support (b0f084e)

6.1.0 (2022-04-29)

Features

  • add rewarded interstitial ad (10c6770)

6.0.1 (2022-04-28)

Bug Fixes

  • types: openAdInspector returns Promise, not function (#123) (ccbf881)

6.0.0 (2022-04-27)

⚠ BREAKING CHANGES

  • Event Listeners work differently now (#110)

There is a migration doc! The migration doc has code samples with the changes necessary, we hope it is easy - it is supposed to be easy https://github.com/invertase/react-native-google-mobile-ads/blob/main/docs/migrating-to-v6.mdx

Features

Bug Fixes

  • fix wrong hook return type omit (8bbc0ad)

5.1.1 (2022-04-19)

Bug Fixes

  • ios: avoid crash on ios < 14 without AppTrackingTransparency (d03f45a)

5.1.0 (2022-04-16)

Features

  • consent: add method that returns consent choices (be967bd)
  • hooks for all full screen ad types (#100) (0bd7ce8)

5.0.1 (2022-04-01)

Bug Fixes

  • android: use ApplicationContext so mediation adapter init works (d340943)

5.0.0 (2022-03-03)

⚠ BREAKING CHANGES

  • consent: migrate to UMP SDK (#82)

Features

Bug Fixes

  • android version and app keys (bab67ff)

4.2.0 (2022-02-14)

Features

4.1.3 (2022-02-10)

Bug Fixes

  • adRequestOptions ignored (e15809a)

4.1.2 (2022-02-07)

Bug Fixes

  • CHANGELOG: remove duplicate changelog chunk (d5e59e3)

4.0.0 (2022-02-07)

⚠ BREAKING CHANGES

  • typescript rewrite (#41)

Features

Bug Fixes

4.1.1 (2022-01-27)

Bug Fixes

  • point to the right native module (e1d7715)

4.1.0 (2022-01-26)

⚠ BREAKING CHANGES

  • Rename from @invertase/react-native-google-ads to react-native-google-mobile-ads to more accurately reflect underlying SDK names (#62)
    • Please change package.json to use the new package name
    • Please update all imports to new package name
    • Please change app.json key with app ids from react-native-google-ads to react-native-google-mobile-ads (and run pod install)

Features

4.0.2 (2022-01-24)

Bug Fixes

4.0.1 (2022-01-24)

Bug Fixes

  • android: no banner ads loaded in the first render (3dc74cf)

4.0.0 (2022-01-06)

⚠ BREAKING CHANGES

  • typescript rewrite (#41)

Features

Bug Fixes

  • release: allow semantic-release on beta branch (b2d1381)

3.4.0 (2021-12-29)

Features

3.3.0 (2021-12-29)

Features

3.2.1 (2021-12-28)

Bug Fixes

  • adUnitId in sendAdevent is nil on error (d633340)

3.2.0 (2021-12-13)

Features

  • expose native SDK initialize methods as new initialize API (#40) (3689b1f)

3.1.0 (2021-12-13)

Features

  • ios, banner: replace v7 methods with v8 methods (#37) (c53c657)

3.0.0 (2021-12-12)

⚠ BREAKING CHANGES

Please refer to upstream guides for suggestions on new usage. https://developers.google.com/admob/ios/migration and https://developers.google.com/admob/android/migration

  • compileSdkVersion now 31, change your app android build.gradle to 31 if you have not already. Note that JDK11 is required for stable compilation on compileSdkVersion 31, JDK8 has internal compiler errors with SDK31
  • onAdLeftApplication removed from the underlying SDK, use react-native built in AppState to determine app went to background
  • Smart banner ads removed; use adaptive banner ads. Set height/width explicitly taking into account device size
  • android SDK updated to underlying SDK 20

Features

  • android SDK updated to underlying SDK 20 (56c6058)
  • android, sdks: update to the latest v20 android admob sdk (#32) (291e504)

2.0.1 (2021-12-12)

Bug Fixes

  • rewarded ads crash & request configuration (#31) (382f146)

2.0.0 (2021-12-11)

  • feat(ios)!: Google Mobile Ads SDK 8 w/new testDeviceIdentifiers vs testDevices (#30) (bac264d), closes #30

BREAKING CHANGES

  • "testDevices" property no longer exists. You must use "testDeviceIdentifiers". The testDeviceIdentifiers property applies to all ad requests, while the old testDevices property was set per-request.

1.0.2 (2021-12-09)

Bug Fixes

  • incorrect rn config path (41a8eca)

1.0.1 (2021-12-08)

Bug Fixes

  • package is org-scoped, but public, allow npm publish (cd8fbb1)

1.0.0 (2021-12-08)

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

@react-native-firebase/admob has finally moved to react-native-google-ads 🎉! As AdMob isn't part anymore of RNFB, a lot of changes where necessary to extract it completely. Therefore keep in mind to test everything thoroughly as it's the first release.

  • config: Add your AdMob app id's (iOS/Android) to app.json and this package will take care of injecting the required entries in your Info.plist (during pod install run) & AndroidManifest.xml (during gradle build time).
  • docs: Improved documentation using the new docs.page

Bug Fixes

  • android app id from app.json works, example has detox integrated and working in android (24f83b2)
  • android: use correct module name for banner ads (#17) (7c7c8b5)
  • displaying banner ads, config in docs (#14) (21e4f42)
  • incorrect module naming (#10) (79f86b9)
  • interstitials and rewarded ads (#18) (9569b98)
  • ios: add ios config scripts missed in previous commit (227ca7c)
  • ios: ios app.json --> Info.plist auto-config works now (6c1f4d4)
  • ios: missing dollar signs in podspec version override (#8) (5984288)
  • release: remove npm config and git config as well (8139e88)
  • release: semantic release does not need the ssh key agent config (930bc03)
  • remove incorrect git branch ref in publish workflow, clean changelog (aec5b84)
  • test: link to jet package via named branch vs commit hash (#7) (151f6aa)

Features

  • example test in new test harness works (2041fa2)
  • native: native code extraction is complete and passes static type check (02c2af6)