Ejemplo n.º 1
0
        /// <summary>
        /// Requests the ads.
        /// </summary>
        private void RequestAds()
        {
            IMAAdDisplayContainer adDisplayContainer = new IMAAdDisplayContainer(this.View, null);
            IMAAdsRequest         request            = new IMAAdsRequest(TestAdTagUrl, adDisplayContainer, this.ContentPlayhead, null);

            this.AdsLoader.RequestAdsWithRequest(request);
        }
Ejemplo n.º 2
0
        public void RequestAdsWithRequest(string request)
        {
            var view = new UIView(VideoPlayerController.View.Bounds);

            VideoPlayerController.SetAboveRenderingView(view);
            adDisplayContainer = new IMAAdDisplayContainer(view, null);
            _contentPlayhead   = new GMFContentPlayhead(VideoPlayerController);

            IMAAdsRequest adsRequest = new IMAAdsRequest(request, adDisplayContainer, _contentPlayhead, null);

            adsLoader.RequestAdsWithRequest(adsRequest);
        }
Ejemplo n.º 3
0
        void RequestAds()
        {
            // Create ad display container for ad rendering.
            var adDisplayContainer = new IMAAdDisplayContainer(this.View, this, null);
            // Create an ad request with our ad tag, display container, and optional user context.
            var request = new IMAAdsRequest(
                AdTagURLString,
                adDisplayContainer,
                contentPlayhead,
                new NSObject());

            adsLoader.RequestAdsWithRequest(request);
        }