精確位置資料政策

如果您將使用者的精確位置資料傳送給 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。