commit | author | age
|
96fe76
|
1 |
// |
L |
2 |
// GADRequestError.h |
|
3 |
// Google Mobile Ads SDK |
|
4 |
// |
|
5 |
// Copyright 2011 Google LLC. All rights reserved. |
|
6 |
// |
|
7 |
|
|
8 |
#import <Foundation/Foundation.h> |
|
9 |
#import <GoogleMobileAds/GoogleMobileAdsDefines.h> |
|
10 |
|
|
11 |
/// Google AdMob Ads error domain. |
|
12 |
FOUNDATION_EXPORT NSString *_Nonnull const GADErrorDomain; |
|
13 |
|
|
14 |
/// NSError codes for GAD error domain. |
|
15 |
typedef NS_ENUM(NSInteger, GADErrorCode) { |
|
16 |
/// The ad request is invalid. The localizedFailureReason error description will have more |
|
17 |
/// details. Typically this is because the ad did not have the ad unit ID or root view |
|
18 |
/// controller set. |
|
19 |
GADErrorInvalidRequest = 0, |
|
20 |
|
|
21 |
/// The ad request was successful, but no ad was returned. |
|
22 |
GADErrorNoFill = 1, |
|
23 |
|
|
24 |
/// There was an error loading data from the network. |
|
25 |
GADErrorNetworkError = 2, |
|
26 |
|
|
27 |
/// The ad server experienced a failure processing the request. |
|
28 |
GADErrorServerError = 3, |
|
29 |
|
|
30 |
/// The current device's OS is below the minimum required version. |
|
31 |
GADErrorOSVersionTooLow = 4, |
|
32 |
|
|
33 |
/// The request was unable to be loaded before being timed out. |
|
34 |
GADErrorTimeout = 5, |
|
35 |
|
|
36 |
/// The mediation response was invalid. |
|
37 |
GADErrorMediationDataError = 7, |
|
38 |
|
|
39 |
/// Error finding or creating a mediation ad network adapter. |
|
40 |
GADErrorMediationAdapterError = 8, |
|
41 |
|
|
42 |
/// Attempting to pass an invalid ad size to an adapter. |
|
43 |
GADErrorMediationInvalidAdSize = 10, |
|
44 |
|
|
45 |
/// Internal error. |
|
46 |
GADErrorInternalError = 11, |
|
47 |
|
|
48 |
/// Invalid argument error. |
|
49 |
GADErrorInvalidArgument = 12, |
|
50 |
|
|
51 |
/// Received invalid response. |
|
52 |
GADErrorReceivedInvalidResponse = 13, |
|
53 |
|
|
54 |
/// A mediation ad network adapter received an ad request, but did not fill. The adapter's error |
|
55 |
/// is included as an underlyingError. |
|
56 |
GADErrorMediationNoFill = 9, |
|
57 |
|
|
58 |
/// Will not send request because the ad object has already been used. |
|
59 |
GADErrorAdAlreadyUsed = 19, |
|
60 |
|
|
61 |
/// Will not send request because the application identifier is missing. |
|
62 |
GADErrorApplicationIdentifierMissing = 20, |
|
63 |
}; |