Để thảo luận và đưa ra ý kiến phản hồi về các sản phẩm của chúng tôi, hãy tham gia kênh Discord chính thức của AdMob trong máy chủ Cộng đồng quảng cáo và đo lường của Google.
Để biết những điểm cần cân nhắc chính khi chuẩn bị ứng dụng cho những thay đổi về quyền riêng tư của Google Play và Android, hãy xem Các chiến lược về quyền riêng tư cho Android.
Mã nhận dạng bên thứ nhất của nhà xuất bản (trước đây gọi là khoá cho cùng ứng dụng)
Điều kiện tiên quyết: SDK quảng cáo trên thiết bị di động của Google phiên bản 21.4.0 trở lên
SDK quảng cáo trên thiết bị di động của Google đã giới thiệu Mã nhận dạng bên thứ nhất của nhà xuất bản (trước đây gọi là cùng một khoá ứng dụng) để giúp bạn phân phối quảng cáo được cá nhân hoá và phù hợp hơn bằng cách sử dụng dữ liệu thu thập được từ các ứng dụng của bạn.
Mã nhận dạng bên thứ nhất của nhà xuất bản được bật theo mặc định, nhưng bạn có thể tắt mã nhận dạng này bằng cách sử dụng phương thức sau.
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,["Cập nhật lần gần đây nhất: 2025-08-31 UTC."],[[["\u003cp\u003ePublisher first-party ID (formerly same app key) in Google Mobile Ads SDK helps deliver personalized ads using app data and is enabled by default.\u003c/p\u003e\n"],["\u003cp\u003eYou can disable Publisher first-party ID using \u003ccode\u003eMobileAds.putPublisherFirstPartyIdEnabled(false)\u003c/code\u003e in your app's code (Kotlin or Java).\u003c/p\u003e\n"],["\u003cp\u003eThis feature requires Google Mobile Ads SDK 21.4.0 or higher and the API name changed in version 22.6.0 but remains compatible with previous versions.\u003c/p\u003e\n"],["\u003cp\u003eFor further guidance on Android privacy and Google Play compliance, refer to the Privacy strategies for Android resource.\u003c/p\u003e\n"]]],["The content focuses on the transition from \"same app key\" to \"Publisher first-party ID\" within the Google Mobile Ads SDK. This ID, enabled by default, uses data from apps to personalize ads. It requires SDK version 21.4.0 or higher. Version 22.6.0 updated the API name, but previous versions (21.4.0 to 22.5.0) still work seamlessly. Publishers can disable the Publisher first-party ID using `MobileAds.putPublisherFirstPartyIdEnabled(false)` in Kotlin or Java. Also advises to check for Android privacy strategies.\n"],null,["# Privacy strategies\n\nSelect platform: [Android](/admob/android/privacy/strategies \"View this page for the Android platform docs.\") [iOS](/admob/ios/privacy/strategies \"View this page for the iOS platform docs.\") [Unity](/admob/unity/privacy/strategies \"View this page for the Unity platform docs.\")\n\n\u003cbr /\u003e\n\nFor key considerations when preparing your app for Google Play and Android\nprivacy changes, see\n\n[Privacy strategies for Android](//support.google.com/admob/answer/11402075).\n\n\nPublisher first-party ID, formerly known as same app key\n--------------------------------------------------------\n\n**Prerequisites:\nGoogle Mobile Ads SDK\n21.4.0 or\nhigher**\n\n| **Note:** Same app key has been renamed to [Publisher first-party ID](//support.google.com/admob/answer/11402075#publisher-first-party-id) . The same app key API changed to reflect Publisher first-party ID in version 22.6.0. This change doesn't impact existing activation of same app key for Google Mobile Ads SDK versions 21.4.0 to 22.5.0. All applicable SDK versions process the identifier seamlessly.\n\n\u003cbr /\u003e\n\nThe\n\n\nGoogle Mobile Ads SDK\n\n\nintroduced\n[Publisher first-party ID](//support.google.com/admob/answer/11402075#publisher-first-party-id),\nformerly known as same app key to help you deliver more relevant and\npersonalized ads by using data collected from your apps.\n\nPublisher first-party ID is enabled by default, but you can disable it using the\nfollowing method. \n\n### Kotlin\n\n // Disables Publisher first-party ID, formerly known as same app key.\n MobileAds.putPublisherFirstPartyIdEnabled(false)\n\n### Java\n\n // Disables Publisher first-party ID, formerly known as same app key.\n MobileAds.putPublisherFirstPartyIdEnabled(false);\n\n\u003cbr /\u003e"]]