Skip to main content
0.1.0Nitro 1.0 · iOS and Android

AdMob for
NitroUI apps

Banner, interstitial, rewarded, rewarded interstitial and app open ads on the Google Mobile Ads SDK 13 (iOS) and the GMA Next-Gen SDK (Android), with typed Swift and Kotlin implementations.

$bun add nitro-ui-admob

Every AdMob format

One package for the five formats, plus the helpers Google recommends around them.

Built for production

The details around the ads, handled in Swift and Kotlin and typed in TypeScript.

A small, typed API

Static loaders return native ad objects. Assign callbacks, call show() once, and let the helpers handle expiry and retries.

Read the guides
import { Admob, BannerAd, InterstitialAd } from 'nitro-ui-admob'

Admob.setRequestConfiguration({ maxAdContentRating: 'teen' })

const ad = await InterstitialAd.load(Admob.testAdUnitId('interstitial'))
ad.onAdDismissed = () => console.log('dismissed')
ad.show()

function Footer() {
return <BannerAd adUnitId={Admob.testAdUnitId('banner')} />
}
5
Ad formats
6
Banner sizes
8
Banner events
iOS 16+
Swift Package minimum

Ship your first ad

Install the package, add your AdMob app ID to the native config, and show a test ad.

Start the setup