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); }
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); }
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); }
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); }
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); }
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); }