Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8924203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T07:20:47+00:00 2026-06-15T07:20:47+00:00

I found a few scattered responses to similar problems (mostly with Windows Phone 7)

  • 0

I found a few scattered responses to similar problems (mostly with Windows Phone 7) but wanted to post an answer that contained all requirements for Windows Phone 8 Ads.

I’ve been having some issues setting an ad up in Windows Phone 8. Every time I ran the emulator I ran into an issue where the app would run but the ad would not show up.

The app ran properly but I noticed in the output console that the following exception was logged:

An exception of type 'Microsoft.Advertising.Shared.AdException' occurred in Microsoft.Advertising.Mobile.DLL and wasn't handled before a managed/native boundary

Ads show up fine in one app I am developing but not another and the exception does not show any helpful information.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T07:20:49+00:00Added an answer on June 15, 2026 at 7:20 am

    I figured out how to catch the exception and see what the issue actually was (which was a large amount of missing capabilities in my Manifest file). In order to try and catch the exception from the AdControl and get the data I needed, I added the following to my page.

    Catch Ad Control Errors

        public MainPage()
        {
            InitializeComponent();
    
            AdUnit.ErrorOccurred += AdUnit_ErrorOccurred;
        }
    
        void AdUnit_ErrorOccurred(object sender, Microsoft.Advertising.AdErrorEventArgs e)
        {
            throw new NotImplementedException();
        }
    

    Which showed me that I was missing the MEDIALIB permission and the PHONEDIALER permission. I ran some testing and determined that any app that runs ads will require the following permissions:

    Required Permissions

    ID_CAP_IDENTIFY_USER
    ID_CAP_MEDIALIB_PHOTO
    ID_CAP_NETWORKING
    ID_CAP_PHONEDIALER
    ID_CAP_WEBBROWSERCOMPONENT
    

    Set Parameters

    From other posts I’ve read it is also important to make sure you set your ad units width/height properly to 480/80, if it is auto and doesn’t have the minimum demensions then the ad will not show.

    Make sure that to view it in the emulator you can only use test ApplicationId and AdUnitId. PubCenter credentials will only work in a published application.

    <UI:AdControl x:Name="AdUnit" Height="80" Width="480"
        AdUnitId="Image480_80" ApplicationId="test_client" />
    

    Hide or Swap Failed/Empty Ad Controls

    If your AdControl fails it leaves a big empty space in your ad. You can either hide it or swap it with an ad from another network. To do this, catch the exception as shown above (AdUnit_ErrorOccurred) and added the following:

    To Hide:

    AdUnit.Height = 0;
    AdUnit.Visibility = System.Windows.Visibility.Collapsed;
    

    Setting the visibility didn’t work on its own, the height has to be set to 0 as well.

    Swap Ad:

    Instead of hiding the AdControl, you could show an alternate ad bar from a service like http://www.adduplex.com.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've found a few posts that are similar in nature to this but they
I found a few questions similar to this one here on SO, but none
I've found a few tutorials that explain how to use the windows API to
I've found a few questions on modelling many-to-many relationships, but nothing that helps me
i found few similar questions here but from answers i didn't get the whole
I have found a few examples that relate to WPF, but none for Silverlight.
I've found a few other people asking this question, but the answers for their
I've found a few answers for this using mySQL alone, but I was hoping
I've found a few answers on how to change your company name, but is
I've searched quite a bit and found a few solutions that did not end

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.