Updated: August 2, 2013
Published: June 4, 2013
To use the error handling events, you must reference the Microsoft.Advertising.Mobile.dllassembly. By including the Microsoft.Advertising.Mobile assembly in your project, you will be able to reference the functionality of the AdErrorEventArgs class.
For more information about that assembly and the classes it contains, see Microsoft.Advertising.Mobile Namespace.
Apps Targeting Windows Phone 8
Handling an AdControl error event follows the standard patterns and practices of the .NET framework. For an overview of event handling, see the topic How to: Raise and Consume Events.
To handle AdControl errors, you:
Set ErrorOccurred to the name of the event handler delegate.
In XAML, you set the ErrorOccurred event to the value of your error handler delegate using an assignment. Here is an example that uses the name “OnAdError” for the error handling delegate.
Below is an example an error handling function named OnAdError_ErrorOccurred that handles the ErrorOccurred event (C#).
Support and Feedback
Report a bug in the product by visiting the Windows Phone Dev Center support page (scroll down to the section "Microsoft Advertising support").
Send feedback about this documentation to email@example.com.