Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
        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();
                    }
                }
            };
        }