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); } } }
public static Admob Instance() { if(_instance == null) { _instance = new Admob(); _instance.preInitAdmob (); } return _instance; }
public static Admob Instance() { if (_instance == null) { _instance = new Admob(); _instance.preInitAdmob(); } return(_instance); }
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); } }