Exemplo n.º 1
0
 public static void onAdmobEventCallBack(string adtype, string eventName, string msg)
 {
     //   Debug.Log("c# receive callback " + adtype + "  " + eventName + "  " + msg);
     if (adtype == "banner")
     {
         if (Admob.Instance().bannerEventHandler != null)
         {
             Admob.Instance().bannerEventHandler(eventName, msg);
         }
     }
     else if (adtype == "interstitial")
     {
         if (Admob.Instance().interstitialEventHandler != null)
         {
             Admob.Instance().interstitialEventHandler(eventName, msg);
         }
     }
     else if (adtype == "rewardedVideo")
     {
         if (Admob.Instance().rewardedVideoEventHandler != null)
         {
             Admob.Instance().rewardedVideoEventHandler(eventName, msg);
         }
     }
     else if (adtype == "nativeBanner")
     {
         if (Admob.Instance().nativeBannerEventHandler != null)
         {
             Admob.Instance().nativeBannerEventHandler(eventName, msg);
         }
     }
 }
Exemplo n.º 2
0
 public static Admob Instance()
 {
     if(_instance == null)
     {
         _instance = new Admob();
         _instance.preInitAdmob ();
     }
     return _instance;
 }
Exemplo n.º 3
0
 public static Admob Instance()
 {
     if (_instance == null)
     {
         _instance = new Admob();
         _instance.preInitAdmob();
     }
     return(_instance);
 }
Exemplo n.º 4
0
 public static void onAdmobEventCallBack(string adtype, string eventName, string msg)
 {
     //   Debug.Log("c# receive callback " + adtype + "  " + eventName + "  " + msg);
     if (adtype == "banner")
     {
         Admob.Instance().bannerEventHandler(eventName, msg);
     }
     if (adtype == "interstitial")
     {
         Admob.Instance().interstitialEventHandler(eventName, msg);
     }
 }