public Builder AddMediationExtras(MediationExtras extras) { this.MediationExtras.Add(extras); return(this); }
internal static void SetMediationExtras() { var consent = PlayerPrefs.GetString(consentStringPref, ""); if (consent.Length == 0 || consent == consentDenied || consent == consentAccepted) { return; } var active = MobileAds.GetActiveNetworks(); if (active.Length != consent.Length) { return; } var result = new Dictionary <string, string>(); for (int i = 0; i < consent.Length; i++) { if (consent[i] != '-') { var tag = GetNetworkTag(active[i]); result[tag + "_gdpr"] = consent[i].ToString(); //result[tag + "_ccpa"] = consent[i].ToString(); } } if (result.Count > 0) { MediationExtras.SetGlobalEtras(result); } }