示例#1
0
        void ShowInterstitial()
        {
            ADHandlerEvents showEvents = new ADHandlerEvents(Presage.Instance);

            showEvents.AdClosed += (st, et) =>
            {
                System.Diagnostics.Debug.WriteLine("Ad closed");
            };

            showEvents.AdFound += (st, et) =>
            {
                System.Diagnostics.Debug.WriteLine("Ad found");
            };

            showEvents.AdNotFound += (st, et) =>
            {
                System.Diagnostics.Debug.WriteLine("Ad not found");
            };

            showEvents.AdError += (st, et) =>
            {
                System.Diagnostics.Debug.WriteLine("Ad error - code: " + et.Code);
            };

            showEvents.AdDisplayed += (st, et) =>
            {
                System.Diagnostics.Debug.WriteLine("Ad displayed");
            };

            Presage.Instance.ShowInterstitial(showEvents);
        }
示例#2
0
        void ShowInterstitialClick(object sender, EventArgs ea)
        {
            ADHandlerEvents loadEvents = new ADHandlerEvents(Presage.Instance);

            loadEvents.AdClosed += (s, e) =>
            {
                System.Diagnostics.Debug.WriteLine("Ad closed");
            };


            loadEvents.AdNotFound += (s, e) =>
            {
                System.Diagnostics.Debug.WriteLine("Ad not found");
            };

            loadEvents.AdError += (s, e) =>
            {
                System.Diagnostics.Debug.WriteLine("Ad error - code: " + e.Code);
            };

            loadEvents.AdDisplayed += (s, e) =>
            {
                System.Diagnostics.Debug.WriteLine("Ad displayed");
            };

            loadEvents.AdFound += (s, e) =>
            {
                System.Diagnostics.Debug.WriteLine("Ad found");
                ShowInterstitial();
            };
            Presage.Instance.LoadInterstitial(loadEvents);
        }
示例#3
0
        void OnAdToServeButtonClick(object sender, EventArgs ea)
        {
            ADHandlerEvents interstitialEvents = new ADHandlerEvents(Presage.Instance);

            interstitialEvents.AdClosed += (s, e) =>
            {
                System.Diagnostics.Debug.WriteLine("Ad closed");
            };

            interstitialEvents.AdFound += (s, e) =>
            {
                System.Diagnostics.Debug.WriteLine("Ad found");
            };

            interstitialEvents.AdNotFound += (s, e) =>
            {
                System.Diagnostics.Debug.WriteLine("Ad not found");
            };

            interstitialEvents.AdError += (s, e) =>
            {
                System.Diagnostics.Debug.WriteLine("Ad error - code: " + e.Code);
            };

            interstitialEvents.AdDisplayed += (s, e) =>
            {
                System.Diagnostics.Debug.WriteLine("Ad displayed");
            };
            Presage.Instance.AdToServe("interstitial", interstitialEvents);
        }
示例#4
0
        void OnAdToServeButtonClick(object sender, EventArgs ea)
        {
            ADHandlerEvents interstitialEvents = new ADHandlerEvents(Presage.Instance);
            interstitialEvents.AdClosed += (s, e) =>
            {
                System.Diagnostics.Debug.WriteLine("Ad closed");
            };

            interstitialEvents.AdFound += (s, e) =>
            {
                System.Diagnostics.Debug.WriteLine("Ad found");
            };

            interstitialEvents.AdNotFound += (s, e) =>
            {
                System.Diagnostics.Debug.WriteLine("Ad not found");
            };

            interstitialEvents.AdError += (s, e) =>
            {
                System.Diagnostics.Debug.WriteLine("Ad error - code: " + e.Code);
            };

            interstitialEvents.AdDisplayed += (s, e) =>
            {
                System.Diagnostics.Debug.WriteLine("Ad displayed");
            };
            Presage.Instance.AdToServe("interstitial", interstitialEvents);
        }
示例#5
0
        void ShowInterstitial()
        {
            ADHandlerEvents showEvents = new ADHandlerEvents(Presage.Instance);
            showEvents.AdClosed += (st, et) =>
            {
                System.Diagnostics.Debug.WriteLine("Ad closed");
            };

            showEvents.AdFound += (st, et) =>
            {
                System.Diagnostics.Debug.WriteLine("Ad found");
            };

            showEvents.AdNotFound += (st, et) =>
            {
                System.Diagnostics.Debug.WriteLine("Ad not found");
            };

            showEvents.AdError += (st, et) =>
            {
                System.Diagnostics.Debug.WriteLine("Ad error - code: " + et.Code);
            };

            showEvents.AdDisplayed += (st, et) =>
            {
                System.Diagnostics.Debug.WriteLine("Ad displayed");
            };

            Presage.Instance.ShowInterstitial(showEvents);
        }
示例#6
0
        void ShowInterstitialClick(object sender, EventArgs ea)
        {
            ADHandlerEvents loadEvents = new ADHandlerEvents(Presage.Instance);

            loadEvents.AdClosed += (s, e) =>
            {
                System.Diagnostics.Debug.WriteLine("Ad closed");
            };

            loadEvents.AdNotFound += (s, e) =>
            {
                System.Diagnostics.Debug.WriteLine("Ad not found");
            };

            loadEvents.AdError += (s, e) =>
            {
                System.Diagnostics.Debug.WriteLine("Ad error - code: " + e.Code);
            };

            loadEvents.AdDisplayed += (s, e) =>
            {
                System.Diagnostics.Debug.WriteLine("Ad displayed");
            };

            loadEvents.AdFound += (s, e) =>
            {
                System.Diagnostics.Debug.WriteLine("Ad found");
                ShowInterstitial();
            };
            Presage.Instance.LoadInterstitial(loadEvents);
        }