Install the AdMob Adapter SDK
Install and configure the RevenueCat AdMob adapter for iOS and Android
This feature is currently in beta. To enable it, visit the Ads page in your RevenueCat dashboard to opt in.
You must enable "Impression-level ad revenue" in your AdMob account before RevenueCat can receive ad revenue events. Follow Google's guide to turn on impression-level ad revenue.
The RevenueCat AdMob adapter wraps standard AdMob ad loading calls so RevenueCat can track ad events automatically. Install it once for your platform, then follow the AdMob SDK Integration guide to start tracking ads with loadAndTrack.
Requirements
- iOS
- Android
- Minimum iOS version: iOS 15.0+
- RevenueCat SDK:
purchases-ios5.0.0+ - AdMob SDK: Google Mobile Ads SDK 12.0.0+
- Swift only: This adapter does not expose Objective-C entrypoints. Use RevenueCat's base
AdTrackerAPIs directly for Objective-C integrations.
- Minimum SDK:
purchases-android8.0.0+ - AdMob SDK: Google Mobile Ads SDK 22.0.0+
Installation
- iOS
- Android
Add the AdMob adapter package via Swift Package Manager:
.package(url: "https://github.com/RevenueCat/purchases-ios-admob", from: "5.0.0")
Then add the RevenueCatAdMob product to your target.
If your project depends on RevenueCat via SPM, use the purchases-ios-spm package (not purchases-ios). The adapter declares this dependency correctly, but if you add RevenueCat separately, make sure both resolve from the same purchases-ios-spm repository to avoid duplicate package errors.
Add the AdMob adapter module to your app's build.gradle:
dependencies {
implementation 'com.revenuecat.purchases:purchases-admob:8.0.0+'
}
This module depends on the RevenueCat Purchases SDK and Google Mobile Ads SDK.
Next Steps
Once the adapter is installed, follow the integration guide: