정확한 위치 데이터 정책

사용자의 정확한 위치 데이터를 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).