Updated: March 23, 2014
Published: April 2, 2014
To use the error handling events, you must reference the Microsoft.Advertising.Mobile.dll assembly. 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/Silverlight markup, 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
Get product support or 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. There is no product support through this alias. Documentation feedback only.