AI-generated Key Takeaways
-
The Google Mobile Ads SDK now uses Publisher first-party ID (formerly same app key) to deliver more relevant ads using app data.
-
Publisher first-party ID is enabled by default in Google Mobile Ads SDK 21.4.0 and higher.
-
You can disable Publisher first-party ID using
MobileAds.putPublisherFirstPartyIdEnabled(false)
in your code. -
While the name and API have changed, existing same app key activations for SDK versions 21.4.0 to 22.5.0 remain unaffected.
-
Refer to the Privacy strategies for Android page for key considerations regarding Google Play and Android privacy changes.
For key considerations when preparing your app for Google Play and Android privacy changes, see Privacy strategies for Android.
Publisher first-party ID
Prerequisites: Google Mobile Ads SDK 22.6.0 or higher
The Google Mobile Ads SDK introduced Publisher first-party ID, 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.
MobileAds.putPublisherFirstPartyIdEnabled(false)
Java
// Disables Publisher first-party ID.
MobileAds.putPublisherFirstPartyIdEnabled(false);