Richtlinie zu genauen Standortdaten
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Wenn Sie genaue Standortdaten Ihrer Nutzer an Google weitergeben, finden Sie in den Google-Richtlinien für Publisher Anforderungen zur Einwilligung und einen Hinweis.
Wenn diese Richtlinie auf Sie zutrifft, wird im folgenden Beispiel der Titel, die Nachricht und der Schaltflächentext festgelegt, um Ihre Nutzer über die Datenweitergabe zu informieren:
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);
Ersetzen Sie Folgendes:
TITLE: Der Titel des Einwilligungsdialogfelds, z. B. Location data.
MESSAGE_TEXT: Der Text des Dialogs zur Einholung von Einwilligungen, z. B.:
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: Der Text der Schaltfläche im Dialog zur Einholung von Einwilligungen, z. B. OK.
APP_TAG: Das Log-Tag Ihrer Anwendung, z. B. MainActivity.
CONSENT_RECEIVED_LOG_MESSAGE: der Logeintrag, der aufgezeichnet werden soll, wenn der Nutzer seine Einwilligung erteilt, z. B. Consent received.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2026-10-03 (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"]]