public static bool IsBannerOnScreen(int id) { if (!_IsInited) { Debug.LogWarning("IsBannerOnScreen shoudl be called only after Init function. Call ignored"); return(false); } switch (Application.platform) { case RuntimePlatform.IPhonePlayer: if (UltimateMobileSettings.Instance.IOSAdEdngine == UM_IOSAdEngineOprions.GoogleMobileAd) { return(GoogleMobileAd.GetBanner(id).IsOnScreen); } else { return(iAdBannerController.instance.GetBanner(id).IsOnScreen); } case RuntimePlatform.Android: return(GoogleMobileAd.GetBanner(id).IsOnScreen); case RuntimePlatform.WP8Player: return(GoogleMobileAd.GetBanner(id).IsOnScreen); } return(false); }
public static void RefreshBanner(int id) { if (!_IsInited) { Debug.LogWarning("DestroyCurrentBanner shoudl be called only after Init function. Call ignored"); return; } switch (Application.platform) { case RuntimePlatform.IPhonePlayer: if (UltimateMobileSettings.Instance.IOSAdEdngine == UM_IOSAdEngineOprions.GoogleMobileAd) { GoogleMobileAd.GetBanner(id).Refresh(); } break; case RuntimePlatform.Android: GoogleMobileAd.GetBanner(id).Refresh(); break; case RuntimePlatform.WP8Player: GoogleMobileAd.GetBanner(id).Refresh(); break; } }
public static bool IsBannerLoaded(int id) { if (!_IsInited) { Debug.LogWarning("IsBannerLoaded shoudl be called only after Init function. Call ignored"); return(false); } switch (Application.platform) { case RuntimePlatform.IPhonePlayer: if (UltimateMobileSettings.Instance.IOSAdEdngine == UM_IOSAdEngineOprions.GoogleMobileAd) { return(GoogleMobileAd.GetBanner(id).IsLoaded); } break; case RuntimePlatform.Android: if (UltimateMobileSettings.Instance.PlatformEngine == UM_PlatformDependencies.Amazon) { return(SA_AmazonAdsManager.Instance.IsBannerLoaded(id)); } else { return(GoogleMobileAd.GetBanner(id).IsLoaded); } case RuntimePlatform.WP8Player: return(GoogleMobileAd.GetBanner(id).IsLoaded); } return(false); }
public static void ShowBanner(int id) { if (!_IsInited) { Debug.LogWarning("DestroyCurrentBanner shoudl be called only after Init function. Call ignored"); return; } switch (Application.platform) { case RuntimePlatform.IPhonePlayer: if (UltimateMobileSettings.Instance.IOSAdEdngine == UM_IOSAdEngineOprions.GoogleMobileAd) { GoogleMobileAd.GetBanner(id).Show(); } else { //iAdBannerController.instance.GetBanner(id).Show(); } break; case RuntimePlatform.Android: if (UltimateMobileSettings.Instance.PlatformEngine == UM_PlatformDependencies.Amazon) { SA_AmazonAdsManager.Instance.HideBanner(false, id); } else { GoogleMobileAd.GetBanner(id).Show(); } break; #if UNITY_4_6 || UNITY_4_7 || UNITY_5_0 || UNITY_5_1 || UNITY_5_2 case RuntimePlatform.WP8Player: #else case RuntimePlatform.WSAPlayerARM: case RuntimePlatform.WSAPlayerX64: case RuntimePlatform.WSAPlayerX86: #endif GoogleMobileAd.GetBanner(id).Show(); break; } }
public static bool IsBannerOnScreen(int id) { if (!_IsInited) { Debug.LogWarning("IsBannerOnScreen shoudl be called only after Init function. Call ignored"); return(false); } switch (Application.platform) { case RuntimePlatform.IPhonePlayer: if (UltimateMobileSettings.Instance.IOSAdEdngine == UM_IOSAdEngineOprions.GoogleMobileAd) { return(GoogleMobileAd.GetBanner(id).IsOnScreen); } break; case RuntimePlatform.Android: if (UltimateMobileSettings.Instance.PlatformEngine == UM_PlatformDependencies.Amazon) { return(SA_AmazonAdsManager.Instance.IsBannerOnScreen(id)); } else { return(GoogleMobileAd.GetBanner(id).IsOnScreen); } #if UNITY_4_6 || UNITY_4_7 || UNITY_5_0 || UNITY_5_1 || UNITY_5_2 case RuntimePlatform.WP8Player: #else case RuntimePlatform.WSAPlayerARM: case RuntimePlatform.WSAPlayerX64: case RuntimePlatform.WSAPlayerX86: #endif return(GoogleMobileAd.GetBanner(id).IsOnScreen); } return(false); }