GoogleMobileAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GADPresentationErrorCode
enum GADPresentationErrorCode : NSInteger {}
Error codes in the Google Mobile Ads SDK domain that surface due to errors when attempting to
present an ad.
-
Ad isn’t ready to be shown.
Declaration
Swift
case codeAdNotReady = 15
Objective-C
GADPresentationErrorCodeAdNotReady = 15
-
Ad is too large for the scene.
Declaration
Swift
case codeAdTooLarge = 16
Objective-C
GADPresentationErrorCodeAdTooLarge = 16
-
Declaration
Swift
case codeInternal = 17
Objective-C
GADPresentationErrorCodeInternal = 17
-
Ad has already been used.
Declaration
Swift
case codeAdAlreadyUsed = 18
Objective-C
GADPresentationErrorCodeAdAlreadyUsed = 18
-
Attempted to present ad from a non-main thread.
Declaration
Swift
case notMainThread = 21
Objective-C
GADPresentationErrorNotMainThread = 21
-
A mediation ad network adapter failed to present the ad. The adapter’s error is included as an
underlyingError.
Declaration
Swift
case mediation = 22
Objective-C
GADPresentationErrorMediation = 22
Except as otherwise noted, the content of this page is licensed under the
Creative Commons Attribution 4.0 License
, and code samples are licensed under the
Apache 2.0 License
. For details, see the
Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-02-23 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]