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);