Example #1
0
        public void AdsLoadedWithData(IMAAdsLoader loader, IMAAdsLoadedData adsLoadedData)
        {
            adsManager          = adsLoadedData.AdsManager;
            adsManager.Delegate = this;

            IMAAdsRenderingSettings adsRenderingSettings = new IMAAdsRenderingSettings();

            adsRenderingSettings.WebOpenerPresentingController = this;
            adsManager.InitializeWithAdsRenderingSettings(adsRenderingSettings);
            //adsManager.Init();
        }
Example #2
0
        public void AdsLoadedWithData(IMAAdsLoader adsLoader, IMAAdsLoadedData adsLoadedData)
        {
            adsManager = adsLoadedData.AdsManager;
            // GMFContentPlayhead handles listening for time updates from the video player and passing those
            // to the AdsManager.

            adsManager.InitializeWithAdsRenderingSettings(null);

            adsManager.WeakDelegate      = this;
            _willEnterForegroundObserver = NSNotificationCenter.DefaultCenter.AddObserver(UIApplication.WillEnterForegroundNotification, ResumeAdOnForeground);
            adsManager.Start();
        }