Пример #1
0
        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;
        }
Пример #2
0
 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;
        }
Пример #4
0
 void msadcontrol_ErrorOccurred(object sender, Microsoft.Advertising.WinRT.UI.AdErrorEventArgs e)
 {
     throw new NotImplementedException();
 }
Пример #5
0
 private void adQuestionPage_ErrorOccurred(object sender, Microsoft.Advertising.WinRT.UI.AdErrorEventArgs e)
 {
 }
Пример #6
0
 private void AdControl_ErrorOccurred(object sender, Microsoft.Advertising.WinRT.UI.AdErrorEventArgs e)
 {
     System.Diagnostics.Debug.WriteLine("Ad Error: {0},{1}", e.ErrorCode, e.Error);
 }
Пример #7
0
 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();
        }
Пример #9
0
 private void Ad_ErrorOccurred(object sender, Microsoft.Advertising.WinRT.UI.AdErrorEventArgs e)
 {
     debug.Text = sender.ToString() + " " + e.ErrorCode.ToString();
 }
Пример #10
0
 private void AdControl_ErrorOccurred(object sender, Microsoft.Advertising.WinRT.UI.AdErrorEventArgs e)
 {
     Debug.WriteLine($"ErrorCode:{e.ErrorCode}, ErrorMessage:{e.ErrorMessage}");
 }
Пример #11
0
 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);
 }
Пример #12
0
 private void _ad_ErrorOccurred(object sender, Microsoft.Advertising.WinRT.UI.AdErrorEventArgs e)
 {
     Marshal(this.errorCallback, e);
 }
Пример #13
0
 private void AdBanner_ErrorOccurred(object sender, Microsoft.Advertising.WinRT.UI.AdErrorEventArgs e)
 {
 }