For key considerations when preparing your app for Google Play and Android
privacy changes, see
Privacy strategies for Android.
Publisher first-party ID, formerly known as same app key
Prerequisites:
Google Mobile Ads SDK
21.4.0 or
higher
The
Google Mobile Ads SDK
introduced
Publisher first-party ID,
formerly known as same app key to help you deliver more relevant and
personalized ads by using data collected from your apps.
Publisher first-party ID is enabled by default, but you can disable it using the
following method.
Kotlin
// Disables Publisher first-party ID, formerly known as same app key.MobileAds.putPublisherFirstPartyIdEnabled(false)
Java
// Disables Publisher first-party ID, formerly known as same app key.MobileAds.putPublisherFirstPartyIdEnabled(false);
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],["The content focuses on the transition from \"same app key\" to \"Publisher first-party ID\" within the Google Mobile Ads SDK. This ID, enabled by default, uses data from apps to personalize ads. It requires SDK version 21.4.0 or higher. Version 22.6.0 updated the API name, but previous versions (21.4.0 to 22.5.0) still work seamlessly. Publishers can disable the Publisher first-party ID using `MobileAds.putPublisherFirstPartyIdEnabled(false)` in Kotlin or Java. Also advises to check for Android privacy strategies.\n"],null,[]]