-
Notifications
You must be signed in to change notification settings - Fork 1
/
_AdKit.hpp
100 lines (90 loc) · 2.71 KB
/
_AdKit.hpp
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
99
100
//
// _AdKit.hpp
// Maw Kit
//
// Created by Lluís Ulzurrun de Asanza Sàez on 18/02/16.
//
//
#ifndef _AdKit_hpp
#define _AdKit_hpp
namespace MK {
namespace AdKit {
/**
* Performs any initialization required by the ads adapter.
*
* @native
*
* @note Does not take into account whether ads are enabled or not,
* @note Do not call this method directly.
*
* @param interstitialUnitID ID of interstitial Ad unit to be queried.
* @param bottomBannerUnitID ID of bottom banner view Ad unit to be queried.
* @param bottomBannerSize Size of bottom banner view Ad.
* @param topBannerUnitID ID of top banner view Ad unit to be queried.
* @param topBannerSize Size of top banner view Ad.
* @param videoRewardUnitID ID of video reward Ad unit to be queried.
* @param adColonyAppID ID of AdColony app to be queried.
* @param adColonyZoneID ID of AdColony zone.
* @param adColonyCustomID AdColony custom param.
* @param testingDevices List of testing devices.
*/
void _init( std::string interstitialUnitID,
std::string bottomBannerUnitID,
BannerSize bottomBannerSize,
std::string topBannerUnitID,
BannerSize topBannerSize,
std::string videoRewardUnitID,
std::string adColonyAppID,
std::string adColonyZoneID,
std::string adColonyCustomID,
std::vector<std::string>
testingDevices );
/**
* Shows an interstitial ad.
*
* @native
*
* @note Does not take into account whether ads are enabled or not,
* @note Do not call this method directly.
*
* @param adUnitID ID of Ad unit to be queried.
*/
void _showInterstitial( std::string adUnitID );
/**
* Shows a top banner ad.
*
* @native
*
* @note Does not take into account whether ads are enabled or not,
* @note Do not call this method directly.
*
* @param adUnitID ID of Ad unit to be queried.
*/
void _showTopBanner( std::string adUnitID );
/**
* Shows a bottom banner ad.
*
* @native
*
* @note Does not take into account whether ads are enabled or not,
* @note Do not call this method directly.
*
* @param adUnitID ID of Ad unit to be queried.
*/
void _showBottomBanner( std::string adUnitID );
/**
* Shows a video reward ad.
*
* @native
*
* @note Does not take into account whether ads are enabled or not,
* @note Do not call this method directly.
*
* @param adUnitID ID of Ad unit to be queried.
* @param callback Callback to be called on video reward end. First parameter
* will be true if user should be rewarded.
*/
void _showVideoReward( std::string adUnitID, std::function<void( bool )> callback );
}; // namespace AdKit
}; // namespace MK
#endif /* _AdKit_hpp */