-
Notifications
You must be signed in to change notification settings - Fork 1
/
GADRequestError.h
56 lines (41 loc) · 1.55 KB
/
GADRequestError.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//
// GADRequestError.h
// Google AdMob Ads SDK
//
// Copyright 2011 Google Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
@class GADRequest;
extern NSString *const kGADErrorDomain;
// NSError codes for GAD error domain.
typedef NS_ENUM(NSInteger, GADErrorCode) {
// The ad request is invalid. The localizedFailureReason error description
// will have more details. Typically this is because the ad did not have the
// ad unit ID or root view controller set.
kGADErrorInvalidRequest,
// The ad request was successful, but no ad was returned.
kGADErrorNoFill,
// There was an error loading data from the network.
kGADErrorNetworkError,
// The ad server experienced a failure processing the request.
kGADErrorServerError,
// The current device's OS is below the minimum required version.
kGADErrorOSVersionTooLow,
// The request was unable to be loaded before being timed out.
kGADErrorTimeout,
// Will not send request because the interstitial object has already been
// used.
kGADErrorInterstitialAlreadyUsed,
// The mediation response was invalid.
kGADErrorMediationDataError,
// Error finding or creating a mediation ad network adapter.
kGADErrorMediationAdapterError,
// The mediation request was successful, but no ad was returned from any
// ad networks.
kGADErrorMediationNoFill,
// Attempting to pass an invalid ad size to an adapter.
kGADErrorMediationInvalidAdSize
};
// This class represents the error generated due to invalid request parameters.
@interface GADRequestError : NSError
@end