Skip to main content

Platform differences

The Swift and Kotlin implementations follow the same TypeScript specs. These are the differences that reach your code or build.

TopiciOSAndroid
Ads SDKGoogle Mobile Ads SDK 13 (13.13.0 or later), Swift Package ManagerGMA Next-Gen SDK ads-mobile-sdk 1.7.0
Minimum OSiOS 16NitroUI's minimum
App ID sourceGADApplicationIdentifier in Info.plistcom.google.android.gms.ads.APPLICATION_ID meta-data in AndroidManifest.xml
AdmobError.codeNumeric GADErrorCode as a stringSDK ErrorCode name
Banner unitsPointsdp
Foreground signalUIApplication.willEnterForegroundNotificationProcessLifecycleOwner ON_START, ignoring the first one (cold start)
SDK startOn the main threadOn a background thread
Extra Gradle changesNoneAdds androidx.lifecycle:lifecycle-process; excludes org.chromium.net:cronet-embedded
testAdUnitId valuesGoogle's iOS sample unitsGoogle's Android sample units

Google's sample ad units​

Admob.testAdUnitId(format) returns these:

FormatiOSAndroid
bannerca-app-pub-3940256099942544/2435281174ca-app-pub-3940256099942544/9214589741
interstitialca-app-pub-3940256099942544/4411468910ca-app-pub-3940256099942544/1033173712
rewardedca-app-pub-3940256099942544/1712485313ca-app-pub-3940256099942544/5224354917
rewardedInterstitialca-app-pub-3940256099942544/6978759866ca-app-pub-3940256099942544/5354046379
appOpenca-app-pub-3940256099942544/5575463023ca-app-pub-3940256099942544/9257395921