private void DevCenterAdControl_ErrorOccurred(object sender, Microsoft.Advertising.WinRT.UI.AdErrorEventArgs e) { PlatformBase.Current.Logger.Log(LogLevels.Error, $"DevCenterAdControl_ErrorOccurred: {e.ErrorCode} - {e.ErrorMessage}"); var dic = new System.Collections.Generic.Dictionary <string, string>(); dic.Add("ErrorCode", e.ErrorCode.ToString()); dic.Add("ErrorMessage", e.ErrorMessage); PlatformBase.Current.Analytics.Event("DevCenterAdControl_ErrorOccurred", dic); devCenterAd.Visibility = Visibility.Collapsed; adDuplex.Visibility = Visibility.Visible; }
private void AdControl_ErrorOccurred(object sender, Microsoft.Advertising.WinRT.UI.AdErrorEventArgs e) { if (e.ErrorCode == Microsoft.Advertising.ErrorCode.NoAdAvailable) { adControl.Visibility = Visibility.Collapsed; } else { adControl.Resume(); } }
private void OnAdError(object sender, Microsoft.Advertising.WinRT.UI.AdErrorEventArgs e) { CheckBox.IsChecked = true; switch (e.ErrorCode) { case MicrosoftAdvertising.ErrorCode.NoAdAvailable: AdsText.Text = "No ad is available."; break; case MicrosoftAdvertising.ErrorCode.NetworkConnectionFailure: AdsText.Text = "A connection to the network could not be established."; break; default: AdsText.Text = "An unknown error occured."; break; } AdsText.Visibility = Visibility.Visible; }
void msadcontrol_ErrorOccurred(object sender, Microsoft.Advertising.WinRT.UI.AdErrorEventArgs e) { throw new NotImplementedException(); }
private void adQuestionPage_ErrorOccurred(object sender, Microsoft.Advertising.WinRT.UI.AdErrorEventArgs e) { }
private void AdControl_ErrorOccurred(object sender, Microsoft.Advertising.WinRT.UI.AdErrorEventArgs e) { System.Diagnostics.Debug.WriteLine("Ad Error: {0},{1}", e.ErrorCode, e.Error); }
private void adMainPage_ErrorOccurred(object sender, Microsoft.Advertising.WinRT.UI.AdErrorEventArgs e) { //adMainPage.Visibility = Visibility.Collapsed; //adMainPage.Refresh(); }
private void ad_PubCenter_ErrorOccurred(object sender, Microsoft.Advertising.WinRT.UI.AdErrorEventArgs e) { Debug.WriteLine("Pubcenter: " + e.ErrorMessage); RefreshNewAdSet(); }
private void Ad_ErrorOccurred(object sender, Microsoft.Advertising.WinRT.UI.AdErrorEventArgs e) { debug.Text = sender.ToString() + " " + e.ErrorCode.ToString(); }
private void AdControl_ErrorOccurred(object sender, Microsoft.Advertising.WinRT.UI.AdErrorEventArgs e) { Debug.WriteLine($"ErrorCode:{e.ErrorCode}, ErrorMessage:{e.ErrorMessage}"); }
private void _ad_ErrorOccurred(object sender, Microsoft.Advertising.WinRT.UI.AdErrorEventArgs e) { Microsoft.UnityPlugins.AdErrorEventArgs arg = new Microsoft.UnityPlugins.AdErrorEventArgs( (Microsoft.UnityPlugins.ErrorCode)e.ErrorCode, e.ErrorMessage); Marshal(this.errorCallback, arg); }
private void _ad_ErrorOccurred(object sender, Microsoft.Advertising.WinRT.UI.AdErrorEventArgs e) { Marshal(this.errorCallback, e); }
private void AdBanner_ErrorOccurred(object sender, Microsoft.Advertising.WinRT.UI.AdErrorEventArgs e) { }