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
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);
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-06-24 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-06-24 UTC."],[[["Publisher first-party ID, previously called same app key, enables more relevant and personalized ads by utilizing data gathered from your apps."],["This feature is automatically enabled but can be deactivated using `MobileAds.putPublisherFirstPartyIdEnabled(false)` in your code."],["For further guidance on navigating Google Play and Android privacy shifts, refer to the Privacy strategies for Android resource."]]],["The document outlines key considerations for app preparation regarding Google Play and Android privacy changes, directing users to \"Privacy strategies for Android.\" It introduces the Publisher first-party ID (formerly same app key), enabled by default, which allows for more personalized ads using collected app data. Developers can disable this feature using the `MobileAds.putPublisherFirstPartyIdEnabled(false)` method in both Kotlin and Java. This method deactivates the Publisher first-party ID.\n"]]