forked from ludei/atomic-plugins-ads
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLDAdService.h
100 lines (82 loc) · 2.12 KB
/
LDAdService.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#import "LDAdBanner.h"
#import "LDAdInterstitial.h"
/**
* Ad Service Configuration (adunits)
*/
@protocol LDAdServiceSettings<NSObject>
/**
* Banner adunit
*/
@property (nonatomic, strong) NSString * banner;
/**
* Banner adunit for iPad (optional).
* If it is not specified, the banner adunit will be used.
*/
@property (nonatomic, strong) NSString * bannerIpad;
/**
* Interstitial adunit.
*/
@property (nonatomic, strong) NSString * interstitial;
/**
* Interstitial adunit for iPad (optional).
* If it is not specified, the interstitial adunit will be used.
*/
@property (nonatomic, strong) NSString * interstitialIpad;
@end
/**
* Ad Service Protocol
*/
@protocol LDAdServiceProtocol
@property (nonatomic, strong) NSObject<LDAdServiceSettings> * settings;
/**
* Create AdBanner with default size and adunit (taken from settings).
*
* @return The created banner.
*/
-(LDAdBanner *) createBanner;
/**
*
* @param adUnit Optional banner adunit, taken from settingsw if not specified
*/
/**
* Create AdBanner with custom adunit and size
*
* @param adunit The adunit.
* @param size The size of te ad.
*
* @return The custom ad.
*/
-(LDAdBanner *) createBanner: (NSString *) adunit size:(LDAdBannerSize) size;
/**
* Create AdInterstitial with default adunit.
*
* @return The interstitial.
*/
-(LDAdInterstitial *) createInterstitial;
/**
* Create AdInterstitial with specific adunit.
*
* @param adunit The adunit.
*
* @return The interstitial.
*/
-(LDAdInterstitial *) createInterstitial:(NSString *) adunit;
/**
* Create a video only interstitital with specific adunit.
* This method fallbacks to the default createInterstitial when the network doesn't support video only interstitial from client API
*
* @param adunit The adunit.
*
* @return The interstitial.
*/
-(LDAdInterstitial *) createVideoInterstitial:(NSString *) adunit;
/**
* Create a Rewarded video interstitial with specific adunit.
*
* @param adunit The adunit.
*
* @return The interstitial.
*/
-(LDAdInterstitial *) createRewardedVideo:(NSString *) adunit;
@end
typedef NSObject<LDAdServiceProtocol> LDAdService;