Guides › Kotlin (Android) › Google AdMob
AdMob in a Kotlin (Android) app: privacy policy & Data safety
In a Kotlin (Android) app, AdMob comes in through com.google.android.gms:play-services-ads in build.gradle or libs.versions.toml. Google collects the data below, but the store treats it as your app's collection: you declare it in Data safety and name Google in your privacy policy.
What to declare
| Data | Purpose | Google Play Data safety |
|---|---|---|
| Device identifiers identifiers for your device or app installation, such as an advertising ID or push token | Advertising or marketing, Analytics, Fraud prevention, security, and compliance | Device or other IDs › Device or other IDs Shared: Yes |
| Approximate location your approximate location, for example derived from your IP address | Advertising or marketing, Fraud prevention, security, and compliance | Location › Approximate location Shared: Yes |
| Advertising data information about ads you have seen or interacted with | Advertising or marketing, Analytics | App activity › Other actions Shared: Yes |
| App interactions how you use the app, such as screens viewed and features used | Advertising or marketing, Analytics | App activity › App interactions Shared: Yes |
| Diagnostics performance data such as launch time and battery or network usage | Analytics, Fraud prevention, security, and compliance | App info and performance › Diagnostics Shared: Yes |
| Data safety: shared with third parties? | Yes |
|---|
Kotlin (Android) notes
Advertising ID
AdMob's Android SDK (20.4.0 and later) declares the com.google.android.gms.permission.AD_ID permission for you; it's merged into your app's manifest. Answer "Yes" to the Advertising ID question in Play Console › App content, and declare Device or other IDs in Data safety.
Consent in the EEA, UK and Switzerland
Google requires a certified consent message for personalized ads there. Add Google's User Messaging Platform SDK (com.google.android.ump:user-messaging-platform) and show the form before requesting ads.
app-ads.txt
AdMob reads app-ads.txt from the developer website in your store listing. Check yours with the app-ads.txt checker.
Privacy policy text
This is the line StoreOK puts in the "Third-party services" section of your policy:
Google AdMob (Google) for advertising. Privacy policy
The policy also has to describe the data itself (the rows above), how long you keep it, and how users can ask for deletion. See a full example.
Using more than AdMob? Drop your build.gradle — StoreOK detects every SDK and writes the policy and Data safety answers to match. Read in your browser, no signup.
AdMob in other frameworks
google_mobile_adsReact Nativereact-native-google-mobile-adsExporeact-native-google-mobile-adsSwiftUI (iOS)swift-package-manager-google-mobile-adsOther SDKs in Kotlin (Android)
Based on Google's and the framework's public documentation and our SDK mapping. SDK behaviour changes between versions and configurations — verify against your own setup. This is not legal advice.