अगर आपने Google को अपने उपयोगकर्ताओं की जगह की सटीक जानकारी का डेटा दिया है, तो Google पब्लिशर से जुड़ी नीतियां आपको सहमति लेने से जुड़ी ज़रूरी शर्तें और एक सूचना देती हैं.
अगर यह नीति आप पर लागू होती है, तो यहां दिए गए उदाहरण में टाइटल, मैसेज, और बटन के टेक्स्ट को सेट करके, उपयोगकर्ताओं को डेटा शेयर करने के बारे में बताया गया है:
Kotlin
protectedfunpresentConsentOverlay(context:Context){AlertDialog.Builder(context).setTitle("TITLE").setMessage("MESSAGE_TEXT").setNeutralButton("BUTTON_TEXT"){dialog,which->dialog.cancel()Log.d("APP_TAG","CONSENT_RECEIVED_LOG_MESSAGE")}.show()}// To use the previous function, call:presentConsentOverlay(this)
Java
protectedvoidpresentConsentOverlay(Contextcontext){newAlertDialog.Builder(context).setTitle("TITLE").setMessage("MESSAGE_TEXT").setNeutralButton("BUTTON_TEXT",newDialogInterface.OnClickListener(){@OverridepublicvoidonClick(DialogInterfacedialog,intwhich){dialog.cancel();Log.d("APP_TAG","CONSENT_RECEIVED_LOG_MESSAGE");}}).show();}// To use the previous method, call:presentConsentOverlay(this);
इनकी जगह ये डालें:
TITLE: सहमति वाले डायलॉग बॉक्स का टाइटल, जैसे कि Location data.
MESSAGE_TEXT: सहमति वाले डायलॉग बॉक्स का टेक्स्ट, उदाहरण के लिए:
We may use your location and share with third parties for the
purposes of personalized advertising, analytics, and attributions. To learn
more, visit our privacy policy at example.com.
BUTTON_TEXT: सहमति वाले डायलॉग बॉक्स के बटन का टेक्स्ट. उदाहरण के लिए, OK.
APP_TAG: आपके ऐप्लिकेशन का लॉग टैग, जैसे कि MainActivity.
CONSENT_RECEIVED_LOG_MESSAGE: उपयोगकर्ता की सहमति मिलने पर रिकॉर्ड किया जाने वाला लॉग मैसेज. उदाहरण के लिए, Consent received.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2026-10-16 (UTC) को अपडेट किया गया."],[],["Google's updated Publisher Policies require publishers to notify users about sharing precise location data for ads. Publishers must obtain user consent for this data sharing. Example code snippets in Kotlin and Java are provided to show how to inform users via a consent overlay. The code displays a message stating that the app may use and share user location for personalized advertising, analytics, and attribution, and directs users to the privacy policy for further information. Customization of the provided code is needed.\n"]]