Install the AdMob Plus package and configure it for Android and iOS.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/admob-plus/admob-plus/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
React Native project initialized (0.60.0+)
AdMob account with app registered
Installation
Link Native Dependencies
For React Native 0.60+, the package auto-links. Just install iOS dependencies:
For React Native < 0.60, manual linking is required. See React Native documentation.
Configure Android
Add your AdMob App ID to
android/app/src/main/AndroidManifest.xml:AndroidManifest.xml
Replace
ca-app-pub-xxx~xxx with your actual Android AdMob App ID.Platform-Specific Setup
Android Requirements
- Minimum SDK: 21 (Android 5.0)
- Google Play Services: Automatically included via Gradle
iOS Requirements
- iOS Version: 12.0+
- CocoaPods: Required for dependency management
.podspec that manages the Google Mobile Ads SDK.
App Tracking Transparency (iOS)
For iOS 14+, add the tracking usage description toInfo.plist:
Info.plist
Verification
Run your app to verify the installation:Troubleshooting
Build fails on Android
Build fails on Android
- Clean the build:
cd android && ./gradlew clean && cd .. - Ensure Google Play Services is available
- Check that the AdMob App ID is correctly set in AndroidManifest.xml
Build fails on iOS
Build fails on iOS
- Try reinstalling pods:
cd ios && pod deintegrate && pod install && cd .. - Clean build folder in Xcode: Product → Clean Build Folder
- Ensure the AdMob App ID is correctly set in Info.plist
Module not found error
Module not found error
- Clear Metro bundler cache:
npx react-native start --reset-cache - Reinstall node modules:
rm -rf node_modules && npm install - For iOS, reinstall pods:
cd ios && pod install && cd ..
Next Steps
Usage Guide
Learn how to display ads in your React Native app