ErrorCode Enum

Definition

Defines the error codes that can be returned by the ErrorCode property.

public enum class ErrorCode
enum ErrorCode
[Windows.Foundation.Metadata.Version(1)]
public enum ErrorCode
var value = Microsoft.Advertising.ErrorCode.unknown
Public Enum ErrorCode
Inheritance
System.Enum
ErrorCode
Attributes

Additional features and requirements

Software Development Kit
Minimum supported OS
Windows 10 (10.0.10240.0)

Fields

Cancelled 11

The action was cancelled.

ClientConfiguration 3

The AdControl or InterstitialAd has not been configured properly.

CreativeError 8

The ad creative experienced an error.

FileOperationFailure 12

An error occurred while performing a file operation.

InvalidServerResponse 5

The server response contained invalid data.

MraidOperationFailure 9

An error occurred while performing an MRAID operation triggered by the ad.

NetworkConnectionFailure 2

A connection to the network could not be established.

NoAdAvailable 1

No ad is available.

Other 6

The error cannot be classified as one of the known errors.

ParseToBOMFailure 13

An error occurred while extracting data from the ad payload.

RefreshNotAllowed 7

Banner ad refresh is not allowed for 60 seconds after the ad is displayed. If you receive additional error text saying “refresh not performed because ad is not on screen” then check to make sure the size of the AdControl is set to a size that can display a banner ad.

ServerSideError 4

The ad server network has reported that a server error has occurred.

Success 10

The action succeeded.

Unknown 0

An exception has been thrown but the state or cause cannot be determined.

ValidationFailure 14

An error occurred during validation of the ad payload.

Applies to

See also