ReGame Google Mobile Ads
org.regameengine.google-mobile-ads
Consent-first Google Mobile Ads banners, interstitials, rewarded ads, paid events, and native lifecycle management.
Version 1.0.0
MITReGame ≥0.1.0 <1.0.0iOSAndroid- Refreshes Google User Messaging Platform consent before SDK initialization and ad requests.
- Owns one lifecycle-safe native banner, interstitial, and rewarded slot.
- Supports non-personalized requests, test-device configuration, adaptive banners, and rewarded server-side verification.
- Rejects new loads and releases loaded ads whenever UMP no longer permits requests.
- Pins Google Mobile Ads 25.0.0 on Android and 13.1.0 on iOS.
- Does not include app-open, native, rewarded-interstitial, or mediation-specific APIs.
import * as GoogleMobileAds from "org.regameengine.google-mobile-ads"
let consent = await GoogleMobileAds.gatherConsent({
"tagForUnderAgeOfConsent": false
})
if (consent.canRequestAds) {
await GoogleMobileAds.initialize()
}