YMAAdErrorCode
Objective-C
enum YMAAdErrorCode : NSInteger {}
Swift
enum YMAAdErrorCode : Int
Error descriptions.
- YMAAdErrorCodeEmptyAdUnitID
- YMAAdErrorCodeInvalidUUID
- YMAAdErrorCodeNoSuchAdUnitID
- YMAAdErrorCodeNoFill
- YMAAdErrorCodeBadServerResponse
- YMAAdErrorCodeAdSizeMismatch
- YMAAdErrorCodeAdTypeMismatch
- YMAAdErrorCodeServiceTemporarilyNotAvailable
- YMAAdErrorCodeAdHasAlreadyBeenPresented
- YMAAdErrorCodeNilPresentingViewController
- YMAAdErrorCodeIncorrectFullscreenView
The AdUnitId
was omitted when loading the ad.
Declaration
Objective-C
YMAAdErrorCodeEmptyAdUnitID
Swift
case emptyAdUnitID = 0
An invalid Application ID
was specified.
Declaration
Objective-C
YMAAdErrorCodeInvalidUUID
Swift
case invalidUUID = 1
The AdUnitId
specified when loading the ad wasn’t found.
Declaration
Objective-C
YMAAdErrorCodeNoSuchAdUnitID
Swift
case noSuchAdUnitID = 2
The ad is loaded successfully, but there aren’t any available ads to display.
Declaration
Objective-C
YMAAdErrorCodeNoFill
Swift
case noFill = 3
Unexpected server response when loading the ad.
Declaration
Objective-C
YMAAdErrorCodeBadServerResponse
Swift
case badServerResponse = 4
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
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
The service is temporarily unavailable. Try sending the request again later.
Declaration
Objective-C
YMAAdErrorCodeServiceTemporarilyNotAvailable
Swift
case serviceTemporarilyNotAvailable = 7
An interstitial ad can be displayed only once.
Declaration
Objective-C
YMAAdErrorCodeAdHasAlreadyBeenPresented
Swift
case adHasAlreadyBeenPresented = 8
ViewController for interstitial ads is nil
.
Declaration
Objective-C
YMAAdErrorCodeNilPresentingViewController
Swift
case nilPresentingViewController = 9