ErrorOccurred (JavaScript: onErrorOccurred) - Windows 8.0

Updated: August 2, 2013

Published: June 4, 2013

Raised when the AdControl encounters an operational error.

Namespace: Microsoft.Advertising.WinRT.UI (in Microsoft.Advertising.WinRT.UI.winmd)

JavaScript Library: ad.js



public event System.EventHandler<AdErrorEventArgs> ErrorOccurred


var errorEventHandler = function (sender, evt) {
// use either or both of evt.errorMessage or evt.errorCode

For error messages and codes see ErrorCode Enumeration.

Support and Feedback

Get product support or report a bug in the advertising SDK by visiting the Windows 8 Dev Center support page (scroll down to the section "Microsoft Advertising support").

Send feedback about this documentation to There is no product support through this alias. Documentation feedback only.

Community Additions