YMAAdErrorCode

Objective-C

enum YMAAdErrorCode : NSInteger {}

Swift

enum YMAAdErrorCode : Int

Error descriptions.

  1. YMAAdErrorCodeEmptyAdUnitID
  2. YMAAdErrorCodeInvalidUUID
  3. YMAAdErrorCodeNoSuchAdUnitID
  4. YMAAdErrorCodeNoFill
  5. YMAAdErrorCodeBadServerResponse
  6. YMAAdErrorCodeAdSizeMismatch
  7. YMAAdErrorCodeAdTypeMismatch
  8. YMAAdErrorCodeServiceTemporarilyNotAvailable
  9. YMAAdErrorCodeAdHasAlreadyBeenPresented
  10. YMAAdErrorCodeNilPresentingViewController
  11. YMAAdErrorCodeIncorrectFullscreenView

YMAAdErrorCodeEmptyAdUnitID

The AdUnitId was omitted when loading the ad.

Declaration

Objective-C

YMAAdErrorCodeEmptyAdUnitID

Swift

case emptyAdUnitID = 0

YMAAdErrorCodeInvalidUUID

An invalid Application ID was specified.

Declaration

Objective-C

YMAAdErrorCodeInvalidUUID

Swift

case invalidUUID = 1

YMAAdErrorCodeNoSuchAdUnitID

The AdUnitId specified when loading the ad wasn’t found.

Declaration

Objective-C

YMAAdErrorCodeNoSuchAdUnitID

Swift

case noSuchAdUnitID = 2

YMAAdErrorCodeNoFill

The ad is loaded successfully, but there aren’t any available ads to display.

Declaration

Objective-C

YMAAdErrorCodeNoFill

Swift

case noFill = 3

YMAAdErrorCodeBadServerResponse

Unexpected server response when loading the ad.

Declaration

Objective-C

YMAAdErrorCodeBadServerResponse

Swift

case badServerResponse = 4

YMAAdErrorCodeAdSizeMismatch

The ad size in the request does not match the ad size specified in the Partner interface for this ad block.

Declaration

Objective-C

YMAAdErrorCodeAdSizeMismatch

Swift

case adSizeMismatch = 5

YMAAdErrorCodeAdTypeMismatch

The ad type in the request does not match the ad type specified in the Partner interface for this ad block.

Declaration

Objective-C

YMAAdErrorCodeAdTypeMismatch

Swift

case adTypeMismatch = 6

YMAAdErrorCodeServiceTemporarilyNotAvailable

The service is temporarily unavailable. Try sending the request again later.

Declaration

Objective-C

YMAAdErrorCodeServiceTemporarilyNotAvailable

Swift

case serviceTemporarilyNotAvailable = 7

YMAAdErrorCodeAdHasAlreadyBeenPresented

An interstitial ad can be displayed only once.

Declaration

Objective-C

YMAAdErrorCodeAdHasAlreadyBeenPresented

Swift

case adHasAlreadyBeenPresented = 8

YMAAdErrorCodeNilPresentingViewController

ViewController for interstitial ads is nil.

Declaration

Objective-C

YMAAdErrorCodeNilPresentingViewController

Swift

case nilPresentingViewController = 9

YMAAdErrorCodeIncorrectFullscreenView

Incorrect view for interstitial ads.

Declaration

Objective-C

YMAAdErrorCodeIncorrectFullscreenView

Swift

case incorrectFullscreenView = 10