/// <summary> /// Updates consent at runtime /// </summary> /// <param name="consent">the new consent</param> public void UpdateConsent(UserConsent consent, UserConsent ccpaConsent) { AppOptions appOptions = Ads.GetAppOptions(); if (consent == UserConsent.Unset || consent == UserConsent.Accept) { appOptions.GdprConsentString = "1"; } else { appOptions.GdprConsentString = "0"; } if (debug) { Debug.Log(this + " Update consent to " + consent); ScreenWriter.Write(this + " Update consent to " + consent); } Ads.SetAppOptions(appOptions); }