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);
[null,null,["Last updated 2025-09-12 UTC."],[],["The key update involves the renaming of \"same app key\" to \"Publisher first-party ID\" within the Google Mobile Ads SDK, specifically in version 22.6.0. This change does not affect prior activations in SDK versions 21.4.0 to 22.5.0. Publisher first-party ID is designed to enhance ad relevance using app data. It's enabled by default, but can be disabled using `MobileAds.putPublisherFirstPartyIdEnabled(false)` in Kotlin or Java. Consult the linked documentation for privacy strategies related to Android.\n"],null,[]]