private static void InitAdMob() { MobileAds.Initialize(AdMobIds.AppId); #if !UNITY_EDITOR preloadedAdmob = new AdMobInterstitialAdTool(); #endif }
public static AdTool Create() { #if UNITY_EDITOR return(new UnityAdTool()); #else var admob = preloadedAdmob; preloadedAdmob = new AdMobInterstitialAdTool(); return(admob); #endif }