ResultCode
@objc
public enum ResultCode : Int
Enum representing the result codes for various operations within the Prebid SDK.
This enum provides a range of result codes indicating different outcomes or errors that may occur during SDK operations. Each case corresponds to a specific result or error, which helps in diagnosing issues and understanding the status of SDK operations.
-
The demand fetch request was successful.
Declaration
Swift
case prebidDemandFetchSuccess = 0
-
The Prebid server was not specified in the request.
Declaration
Swift
case prebidServerNotSpecified
-
The account ID provided is not recognized by the Prebid server.
Declaration
Swift
case prebidInvalidAccountId
-
The config ID provided is not recognized by the Prebid server.
Declaration
Swift
case prebidInvalidConfigId
-
The size requested is not recognized by the Prebid server.
Declaration
Swift
case prebidInvalidSize
-
There was a network error during the operation.
Declaration
Swift
case prebidNetworkError
-
The Prebid server encountered an error while processing the request.
Declaration
Swift
case prebidServerError
-
The Prebid server did not return any bids.
Declaration
Swift
case prebidDemandNoBids
-
The demand request timed out.
Declaration
Swift
case prebidDemandTimedOut
-
The URL of the Prebid server is invalid.
Declaration
Swift
case prebidServerURLInvalid
-
An unknown error occurred within the Prebid SDK.
Declaration
Swift
case prebidUnknownError
-
The structure of the response received is invalid.
Declaration
Swift
case prebidInvalidResponseStructure = 1000
-
An internal error occurred within the SDK.
Declaration
Swift
case prebidInternalSDKError = 7000
-
Incorrect arguments were provided to the SDK.
Declaration
Swift
case prebidWrongArguments
-
No VAST tag was found in the media data.
Declaration
Swift
case prebidNoVastTagInMediaData
-
Misuse of the SDK was detected.
Declaration
Swift
case prebidSDKMisuse = 8000
-
SDK misuse due to a previous fetch operation not being completed yet.
Declaration
Swift
case prebidSDKMisusePreviousFetchNotCompletedYet
-
The Prebid request does not contain any parameters.
Declaration
Swift
case prebidInvalidRequest
-
Returns a descriptive name for the result code.
Declaration
Swift
public func name() -> String