Share via


ErrorCode Enum

Definition

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

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

Additional features and requirements

Software Development Kit
Minimum supported OS
Windows 10 (10.0.10240.0)

Fields

Name Value Description
Unknown 0

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

NoAdAvailable 1

No ad is available.

NetworkConnectionFailure 2

A connection to the network could not be established.

ClientConfiguration 3

The AdControl or InterstitialAd has not been configured properly.

ServerSideError 4

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

InvalidServerResponse 5

The server response contained invalid data.

Other 6

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

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.

CreativeError 8

The ad creative experienced an error.

MraidOperationFailure 9

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

Success 10

The action succeeded.

Cancelled 11

The action was cancelled.

FileOperationFailure 12

An error occurred while performing a file operation.

ParseToBOMFailure 13

An error occurred while extracting data from the ad payload.

ValidationFailure 14

An error occurred during validation of the ad payload.

Applies to

See also