Exemple #1
0
        void NendAdView_OnFailToReceiveAd(string message)
        {
            string[] errorInfo = message.Split(':');
            if (2 != errorInfo.Length)
            {
                return;
            }
            EventHandler <NendAdErrorEventArgs> handler = AdFailedToReceive;

            if (null != handler)
            {
                var args = new NendAdErrorEventArgs();
                args.ErrorCode = (NendErrorCode)int.Parse(errorInfo [0]);
                args.Message   = errorInfo [1];
                handler(this, args);
            }
        }
Exemple #2
0
        void NendAdIconLoader_OnFailToReceiveAd(string message)
        {
            string[] errorInfo = message.Split(':');
            if (2 != errorInfo.Length)
            {
                return;
            }
            EventHandler <NendAdErrorEventArgs> handler = AdFailedToReceive;

            if (null != handler)
            {
                NendAdErrorEventArgs args = new NendAdErrorEventArgs();
                args.ErrorCode = (NendErrorCode)int.Parse(errorInfo [0]);
                args.Message   = errorInfo [1];
                handler(this, args);
            }
            if (null != _callback)
            {
                _callback.OnFailToReceiveIconAd((NendErrorCode)int.Parse(errorInfo [0]), errorInfo [1]);
            }
        }
Exemple #3
0
 public void OnFailToReceiveIconAd(object sender, NendAdErrorEventArgs args)
 {
     Debug.Log("Fail: " + args.Message);
 }
 public void OnFailToReceiveIconAd(object sender, NendAdErrorEventArgs args)
 {
     Debug.Log(iconGameObject + " -> OnFailToReceiveIconAd: " + args.Message);
 }
 public void OnFailToReceiveBannerAd(object sender, NendAdErrorEventArgs args)
 {
     Debug.Log(bannerGameObject + " -> OnFailToReceiveBannerAd: " + args.ErrorCode.ToString() + ", " + args.Message);
 }
Exemple #6
0
 public void OnFailToReceiveBannerAd(object sender, NendAdErrorEventArgs args)
 {
     UnityEngine.Debug.Log("広告の受信に失敗しました。エラーメッセージ: " + args.Message);
 }