OOPulseAdError
Objective-C
enum OOPulseAdError : NSInteger {}
Swift
enum OOPulseAdError : Int, @unchecked Sendable
Potential errors encountered trying to play an ad.
When an error occurs, pass in the appropriate message in
-[OOPulseVideoAd adFailedWithError:] or
-[OOPulsePauseAd adFailedWithError:], depending on the type of ad the
error occurred on.
-
The request for the ad’s media file did not return a valid response.
Declaration
Objective-C
OOPulseAdErrorRequestFailed = 0Swift
case requestFailed = 0 -
The request for the ad’s media file did not complete, or playback timed out.
Declaration
Objective-C
OOPulseAdErrorTimedOutSwift
case timedOut = 1 -
The ad did not contain any supported media file formats.
Declaration
Objective-C
OOPulseAdErrorNoSupportedMediaFileSwift
case noSupportedMediaFile = 2 -
The video player could not display the ad’s media file.
Declaration
Objective-C
OOPulseAdErrorCouldNotPlaySwift
case couldNotPlay = 3 -
The ad type (OOPulsePauseAd, OOPulseVideoAd etc.) is not supported
Declaration
Objective-C
OOPulseAdErrorNotSupportedSwift
case notSupported = 4