public static void Ad_AppOpenManager(Activity context) { try { switch (AppSettings.ShowAdMobAppOpen) { case true: { if (CountAppOpen == AppSettings.ShowAdMobAppOpenCount) { CountAppOpen = 0; AppOpenManager appOpenManager = new AppOpenManager(context); appOpenManager.ShowAdIfAvailable(); } else { AdsFacebook.InitInterstitial(context); } CountAppOpen++; break; } default: AdsFacebook.InitInterstitial(context); break; } } catch (Exception exception) { Methods.DisplayReportResultTrack(exception); } }
public MyFullScreenContentCallback(AppOpenManager appOpenManager, FullScreenContentCallback listener) { try { Listener = listener; AppOpenAdManager = appOpenManager; } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }