public override void init(string platformId, string unitId, AdDelegate adDelegate = null) { #if UNITY_ANDROID Vungle.init(platformId, ""); #elif UNITY_IOS Vungle.init("", platformId); #else #endif AdManager.OnEnableVungle(); }
public override void init(string platformId, string unitId, AdDelegate adDelegate = null) { Adzones = new string[] { unitId }; AdColony.Configure(Application.version, platformId, Adzones); AdColony.OnVideoStarted += AdManager.onAdStartedEvent; AdColony.OnVideoFinished += (isShown) => { if (isShown) { if (AdManager.AdShowSucessed != null) { AdManager.AdShowSucessed(); } } else { if (AdManager.AdShowFailed != null) { AdManager.AdShowFailed(); } } }; }