นโยบายข้อมูลตำแหน่งที่แน่นอน

เลือกแพลตฟอร์ม: 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