private void Home_ADS_AdMediatorError(object sender, Microsoft.AdMediator.Core.Events.AdMediatorFailedEventArgs e) { if (e.ErrorCode == AdMediatorErrorCode.NoAdAvailable & (CurrentApp.LicenseInformation.ProductLicenses["AdBlocker"].IsActive)) { Home_ADS.Visibility = Visibility.Collapsed; } else { Home_ADS.Visibility = Visibility.Visible; } }
private void AdTDT_AdMediatorError(object sender, Microsoft.AdMediator.Core.Events.AdMediatorFailedEventArgs e) { }
private void AdMediator_MainPage_AdMediatorError(object sender, Microsoft.AdMediator.Core.Events.AdMediatorFailedEventArgs e) { Debug.WriteLine("AdMediator_MainPage_AdMediatorError:" + e.Error + ", " + e.ErrorCode); // if (e.ErrorCode == AdMediatorErrorCode.NoAdAvailable) // AdMediator will not show an ad for this mediation cycle }