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)
 {
     if (Advertisement.isSupported)
     {
         Advertisement.Initialize(platformId);
     }
     else
     {
         Debug.Log("Platform not supported");
     }
 }
Exemplo n.º 3
0
        public override void init(string platformId, string unitId, AdDelegate adDelegate = null)
        {
            this.interstitialId = platformId;
            this.bannerId       = unitId;

            if (this.interstitialId != null && (!this.interstitialId.Equals("")))
            {
                load();
            }
            //RequestBannerGoogle ();
        }
Exemplo n.º 4
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();
                    }
                }
            };
        }
Exemplo n.º 5
0
 public SGIAd(SGAdConfig.SGAdConfigElement config, AdDelegate adDelegate) : base(config, adDelegate)
 {
 }
Exemplo n.º 6
0
 public override void init(string platformId, string unitId, AdDelegate adDelegate = null)
 {
     KSiAd.init();
 }
Exemplo n.º 7
0
 public SGUnityAD(SGAdConfig.SGAdConfigElement config, AdDelegate adDelegate) : base(config, adDelegate)
 {
 }
Exemplo n.º 8
0
 public abstract void init(string platformId, string unitId, AdDelegate adDelegate);
Exemplo n.º 9
0
 public AdBase(SGAdConfig.SGAdConfigElement config, AdDelegate adDelegate)
 {
     this.config = config;
     init(config.platformId, config.bannerId, adDelegate);
 }
Exemplo n.º 10
0
//		public static void  AdShowSucessed(){
//		}

        public static void InitAdEvent(AdDelegate adShowSucessed = null, AdDelegate adShowFailed = null, AdDelegate adStartEvent = null)
        {
            AdShowSucessed = adShowSucessed;
            AdShowFailed   = adShowFailed;
            AdStartEvent   = adStartEvent;
        }