Skip to main content

Installation

If you are using react-native >= 0.60 you just need to do a simple:

npm install @react-native-admob/admob --save

Android Setup

Add your AdMob App ID to AndroidManifest.xml, as described in the Google Mobile Ads SDK documentation.

iOS Setup

From the command line run (inside the ios folder):

pod install

Then, update your Info.plist as described in the Google Mobile Ads SDK documentation.

Allow iOS Static Frameworks

If you are using Static Frameworks on iOS, you need to manually enable this for the project. To enable Static Framework support, add the following global to the top of your /ios/Podfile file:

$RNAdMobAsStaticFramework = true

Requesting IDFA on iOS 14

On iOS 14 onwards, you need to request IDFA access through App Tracking Transparency Dialog to show targeted ads to the user. For that you can use react-native-tracking-transparency.