Privacy strategies
Stay organized with collections
Save and categorize content based on your preferences.
For key considerations when preparing your app for Google Play and Android
privacy changes, see
Privacy strategies for Android.
The
Next Gen 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);
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-15 UTC.
[[["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-08-15 UTC."],[[["The Google Mobile Ads SDK now uses Publisher first-party ID (formerly same app key) to enhance ad relevance and personalization using app-collected data."],["Publisher first-party ID is enabled by default but can be disabled using `MobileAds.putPublisherFirstPartyIdEnabled(false)` in your code."],["For comprehensive guidance on navigating Google Play and Android privacy changes, including detailed information about Publisher first-party ID, refer to the Privacy strategies for Android resource."]]],["The document outlines the Publisher first-party ID, previously called the same app key, which is a feature in the Google Mobile Ads SDK designed to improve ad relevance using app data. It is enabled by default. To disable this feature, developers can use the `MobileAds.putPublisherFirstPartyIdEnabled(false)` method in either Kotlin or Java. Further privacy considerations for Android apps and Google Play are detailed in the \"Privacy strategies for Android\" link.\n"]]