public void InitFyber(string userid) { Fyber.With(Fyber_APP_ID) .WithUserId(userid) .WithSecurityToken(Fyber_Security_Token) .Start(); offerWallRequester = OfferWallRequester.Create(); offerWallRequester.Request(); offerWallRequester.CloseOnRedirect(false); }
public bool ShowOfferwallAd(Offerwall_Co _Co) { #if UNITY_EDITOR Debug.Log("Show " + _Co + " Offerwall"); return(CheckOfferwallAvailable(_Co)); #endif switch (_Co) { case Offerwall_Co.IS: if (IronSource.Agent.isOfferwallAvailable()) { IronSource.Agent.showOfferwall(); return(true); } break; case Offerwall_Co.AdGem: if (AdGem.offerWallReady) { AdGem.showOfferWall(); return(true); } break; case Offerwall_Co.Fyber: if (ofwScripts == null) { ofwScripts = transform.GetComponent <ShowOfferwallAds>(); } if (ofwScripts.ofwAd != null) { ofwScripts.ofwAd.Start(); ofwScripts.ofwAd = null; offerWallRequester = OfferWallRequester.Create(); offerWallRequester.Request(); offerWallRequester.CloseOnRedirect(false); return(true); } break; default: break; } return(false); }