private void AnalyzeReferrer(InstallReferrerInfo data) { Debug.Log($"In AnalyzeReferrer"); InstallReferrerManager.Instance.ReferrerInformationCollected -= AnalyzeReferrer; if (data is null || data.IsException) { Debug.Log($"ERROR! REFERRER IS ORGANIC ||" + $" error={data?.Error}" + $" isException={data?.IsException}" + $" installReferrer={data?.InstallReferrer}"); RefValue = "organic"; }
private void Instance_ReferrerInformationCollected(InstallReferrerInfo data) { Button.interactable = true; if (string.IsNullOrEmpty(data.Error) == false) { Debug.LogErrorFormat("Deferred Deep Link Error!\n{0}\nIs Exception: {1}", data.Error, data.IsException); Error.text = data.Error; IsException.text = data.IsException.ToString(); return; } InstallTime.text = data.InstallTime.ToString("G"); InstallReferer.text = data.InstallReferrer; PlayInstant.text = data.GooglePlayInstant.ToString(); ReferrerClickTime.text = data.ReferrerClickTime.ToString("G"); }