nitro-ui-admob
Google Mobile Ads (AdMob) for NitroUI apps: banner, interstitial, rewarded, rewarded interstitial and app open ads. It uses the Google Mobile Ads SDK 13 on iOS (Swift Package Manager) and the GMA Next-Gen SDK on Android, and is built with Nitro 1.0 (nitro-core 1.0.0-alpha.nightly.138).
bun add nitro-ui-admob
What it covers
| Capability | API | Guide |
|---|---|---|
| Banner ads | <BannerAd> | Banner ads |
| Interstitial ads | InterstitialAd | Full-screen ads |
| Rewarded ads | RewardedAd | Rewarded ads |
| Rewarded interstitials | RewardedInterstitialAd | Rewarded ads |
| App open ads | AppOpenAd, startAppOpenAds | App open ads |
| Keeping an ad ready | AdPreloader | Preloading |
| Test devices and privacy | Admob.setRequestConfiguration | Request configuration |
| Revenue reporting | onAdPaid on every format | Revenue |
Requirements
| Requirement | Version |
|---|---|
nitro-ui-renderer | 0.3.0 or later (peer dependency) |
react | 19 or later (peer dependency) |
nitro-core | 1.0.0-alpha.nightly.138.g43e09c161101, exactly |
| iOS | 16 or later; Google Mobile Ads SDK 13.13.0 or later via Swift Package Manager |
| Android | GMA Next-Gen SDK (ads-mobile-sdk) 1.7.0 |
Consent (UMP) and the App Tracking Transparency prompt are not part of this package. Gather consent with a separate package first, then pass the outcome to Admob.setRequestConfiguration and load ads.
Next steps
- Install the package and align
nitro-core. - Add your AdMob app ID to
Info.plistandAndroidManifest.xml. - Show a test ad.