BBASMAdErrorHandler.h
1.29 KB
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
//
// BBASMAdErrorHandler.h
// SWAN
//
// Created by baidu on 2018/10/30.
// Copyright © 2018年 baidu. All rights reserved.
//
#import <Foundation/Foundation.h>
#define BBASMAppAdAttachErrorStatus @"3010000"
#define BBASMAppAdShowingErrorStatus @"3010006"
#define BBASMAppAdShowingErrorMsg @"广告正在展示中,不能请求广告"
#define BBASMAppAdRepeatRequestErrorStatus @"3010005"
#define BBASMAppAdRepeatRequestErrorMsg @"广告正在拉取中,不能重复请求"
#define BBASMAppAdParamsCheckErrorStatus @"3010007"
#define BBASMAppAdParamsCheckErrorMsg @"appId、appSid、adUnitid其中一个为空,不能请求广告"
#define BBASMAppAdNoAvaliableErrorStatus @"3010004"
#define BBASMAppAdNoAvaliableErrorMsg @"没有可以展示的广告"
#define BBASMAppNoAdErrorStatus @"200000"
#define BBASMAppNoAdErrorMsg @"无广告返回"
/**
* 网络连接错误
*/
FOUNDATION_EXPORT NSString * const kBBASM_NETWORK_CONNECT_ERROR;
/**
* 没有可以展示的广告
*/
FOUNDATION_EXPORT NSString * const kBBASM_NO_AD_CAN_SHOW;
/**
* 无广告数据
*/
FOUNDATION_EXPORT NSString * const kBBASM_NO_AD_DATA;
@interface BBASMAdErrorHandler : NSError
+ (NSDictionary *)getDicWithCode:(NSString *)code;
@end