Skip to main content

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​

CapabilityAPIGuide
Banner ads<BannerAd>Banner ads
Interstitial adsInterstitialAdFull-screen ads
Rewarded adsRewardedAdRewarded ads
Rewarded interstitialsRewardedInterstitialAdRewarded ads
App open adsAppOpenAd, startAppOpenAdsApp open ads
Keeping an ad readyAdPreloaderPreloading
Test devices and privacyAdmob.setRequestConfigurationRequest configuration
Revenue reportingonAdPaid on every formatRevenue

Requirements​

RequirementVersion
nitro-ui-renderer0.3.0 or later (peer dependency)
react19 or later (peer dependency)
nitro-core1.0.0-alpha.nightly.138.g43e09c161101, exactly
iOS16 or later; Google Mobile Ads SDK 13.13.0 or later via Swift Package Manager
AndroidGMA 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​

  1. Install the package and align nitro-core.
  2. Add your AdMob app ID to Info.plist and AndroidManifest.xml.
  3. Show a test ad.