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

اختيار النظام الأساسي: Android iOS Unity Android (قديم)

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

إذا كانت هذه السياسة تنطبق عليك، يحدّد المثال التالي العنوان والرسالة ونص الزر لإعلام المستخدمين بمشاركة البيانات:

[SerializeField, Tooltip("Canvas panel for the location consent overlay.")]
private GameObject _consentOverlay;

[SerializeField, Tooltip("Title text for the location consent overlay.")]
private Text _titleText;

[SerializeField, Tooltip("Message text for the location consent overlay.")]
private Text _messageText;

[SerializeField, Tooltip("OK button for the location consent overlay.")]
private Button _okButton;

[SerializeField, Tooltip("OK button text for the location consent overlay.")]
private Text _okButtonText;

/// <summary>
/// Presents the location consent overlay to the user.
/// </summary>
public void PresentConsentOverlay()
{
    if (_consentOverlay == null)
    {
        return;
    }

    _titleText.text = "TITLE";
    _messageText.text = "MESSAGE_TEXT";
    _okButtonText.text = "BUTTON_TEXT";

    _okButton.onClick.RemoveAllListeners();
    _okButton.onClick.AddListener(() =>
    {
        _consentOverlay.SetActive(false);
        // TODO: Add any consent gathering logic.
        Debug.Log("CONSENT_RECEIVED_LOG_MESSAGE");
    });

    _consentOverlay.SetActive(true);
}

غيِّر القيم في السلسلة على الشكل التالي:

  • ‫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

  • ‫CONSENT_RECEIVED_LOG_MESSAGE: الرسالة المسجّلة التي يتم تسجيلها عندما يمنح المستخدم موافقته، على سبيل المثال، Consent received