| | |
| | | // |
| | | // GADPresentError.h |
| | | // GADPresentationError.h |
| | | // Google Mobile Ads SDK |
| | | // |
| | | // Copyright 2019 Google LLC. All rights reserved. |
| | | // |
| | | |
| | | #import <Foundation/Foundation.h> |
| | | #import <GoogleMobileAds/GADRequestError.h> |
| | | |
| | | /// Error codes in the Google Mobile Ads SDK domain that surface due to errors when attempting to |
| | | /// present an ad. |
| | | typedef NS_ENUM(NSInteger, GADPresentationErrorCode) { |
| | | typedef NS_ERROR_ENUM(GADErrorDomain, GADPresentationErrorCode){ |
| | | |
| | | /// Ad isn't ready to be shown. |
| | | GADPresentationErrorCodeAdNotReady = 15, |
| | |
| | | /// Attempted to present ad from a non-main thread. |
| | | GADPresentationErrorNotMainThread = 21, |
| | | |
| | | /// A mediation ad network adapter failed to present the ad. The adapter's error is included as an |
| | | /// underlyingError. |
| | | /// A mediation ad network adapter failed to present the ad. The adapter's |
| | | /// error is included as an underlyingError. |
| | | GADPresentationErrorMediation = 22, |
| | | }; |
| | | } NS_SWIFT_NAME(PresentationError); |