سياسة بيانات الموقع الجغرافي الدقيق

اختيار النظام الأساسي: Android جديد Android iOS

فرضت التعديلات الأخيرة على سياسات الناشرين في Google متطلبات جديدة بشأن الإشعار والموافقة على الناشرين الذين يمرّرون بيانات الموقع الجغرافي الدقيقة للمستخدمين إلى Google لأغراض متعلقة بالإعلانات.

إذا كانت هذه السياسة تنطبق عليك، يعرض المقتطف التالي إحدى الطرق التي يمكنك من خلالها إبلاغ المستخدمين بمشاركة هذه البيانات:

Kotlin

protected fun presentConsentOverlay(context: Context) {
  AlertDialog.Builder(context)
      .setTitle("Location data")
      .setMessage("We may use your location, " +
          "and share it with third parties, " +
          "for the purposes of personalized advertising, " +
          "analytics, and attribution. " +
          "To learn more, visit our privacy policy " +
          "at https://myapp.com/privacy.")
      .setNeutralButton("OK") { dialog, which ->
        dialog.cancel()
        // TODO: replace the below log statement with code that specifies how
        // you want to handle the user's acknowledgement.
        Log.d("MyApp", "Got consent.")
      }
      .show()
}

// To use the above function:
presentConsentOverlay(this)

جافا

protected void presentConsentOverlay(Context context) {
  new AlertDialog.Builder(context)
      .setTitle("Location data")
      .setMessage("We may use your location, " +
          "and share it with third parties, " +
          "for the purposes of personalized advertising, " +
          "analytics, and attribution. " +
          "To learn more, visit our privacy policy " +
          "at https://myapp.com/privacy.")
  .setNeutralButton("OK", new DialogInterface.OnClickListener() {
    @Override
    public void onClick(DialogInterface dialog, int which) {
      dialog.cancel();
      // TODO: replace the below log statement with code that specifies how
      // you want to handle the user's acknowledgement.
      Log.d("MyApp", "Got consent.");
    }
  })
  .show();
}

// To use the above method:
presentConsentOverlay(this);