react-native-applovin-max 5.7.2 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/android/build.gradle +2 -2
- package/android/src/main/java/com/applovin/mediation/adapters/GoogleAdManagerMediationAdapter.java.saved +1616 -0
- package/android/src/main/java/com/applovin/mediation/adapters/{GoogleMediationAdapter.java.saved → GoogleMediationAdapter.java.old} +126 -49
- package/android/src/main/java/com/applovin/mediation/adapters/MintegralMediationAdapter.java.old +1481 -0
- package/ios/AppLovinMAX.m +1 -9
- package/ios/AppLovinMAX.xcodeproj/project.pbxproj +4 -4
- package/ios/AppLovinMAX.xcworkspace/xcuserdata/hiroshi.watanabe.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/AppLovinMAXNativeAdView.m +8 -1
- package/ios/Podfile +1 -1
- package/package.json +2 -1
- package/react-native-applovin-max.podspec +1 -1
- package/src/AdView.tsx +251 -0
- package/src/AppLovinMAX.ts +24 -0
- package/src/AppOpenAd.ts +128 -0
- package/src/BannerAd.ts +175 -0
- package/src/EventEmitter.ts +27 -0
- package/src/InterstitialAd.ts +128 -0
- package/src/MRecAd.ts +147 -0
- package/src/Privacy.ts +6 -0
- package/src/RewardedAd.ts +144 -0
- package/src/TargetingData.ts +168 -0
- package/src/index.ts +21 -0
- package/src/nativeAd/NativeAdView.tsx +161 -0
- package/src/nativeAd/NativeAdViewComponents.tsx +185 -0
- package/src/nativeAd/NativeAdViewProvider.tsx +35 -0
- package/src/types/AdEvent.ts +26 -0
- package/src/types/AdInfo.ts +348 -0
- package/src/types/AdProps.ts +60 -0
- package/src/types/AdViewProps.ts +36 -0
- package/src/types/AppLovinMAX.ts +86 -0
- package/src/types/AppOpenAd.ts +3 -0
- package/src/types/BannerAd.ts +47 -0
- package/src/types/Configuration.ts +11 -0
- package/src/types/FullscreenAd.ts +135 -0
- package/src/types/InterstitialAd.ts +3 -0
- package/src/types/MRecAd.ts +13 -0
- package/src/types/NativeAd.ts +50 -0
- package/src/types/NativeAdViewProps.ts +17 -0
- package/src/types/Privacy.ts +73 -0
- package/src/types/RewardedAd.ts +18 -0
- package/src/types/ViewAd.ts +158 -0
- package/src/types/index.ts +4 -0
- package/src/AppLovinMAXAdView.js +0 -231
- package/src/AppLovinMAXEventListeners.js +0 -419
- package/src/NativeAdComponents.js +0 -208
- package/src/NativeAdView.js +0 -164
- package/src/NativeAdViewProvider.js +0 -19
- package/src/TargetingData.js +0 -104
- package/src/index.js +0 -291
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import type { AdEventListener } from "./AdEvent";
|
|
2
|
+
import type { AdInfo, AdLoadFailedInfo, AdRevenueInfo, AdDisplayFailedInfo } from "./AdInfo";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Define a fullscreen ad (i.e Intestitial / Rewarded / AppOpen)
|
|
6
|
+
*/
|
|
7
|
+
export type FullscreenAdType = {
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Whether or not this ad is ready to be shown.
|
|
11
|
+
*
|
|
12
|
+
* @param adUnitId The Ad Unit ID to load ads for.
|
|
13
|
+
*/
|
|
14
|
+
isAdReady(adUnitId: string): Promise<boolean>;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Loads an interstitial ad.
|
|
18
|
+
*
|
|
19
|
+
* @param adUnitId The Ad Unit ID to load ads for.
|
|
20
|
+
*/
|
|
21
|
+
loadAd(adUnitId: string): void;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Show the loaded interstitial ad, optionallly for a given placement and custom data to tie ad
|
|
25
|
+
* events to.
|
|
26
|
+
*
|
|
27
|
+
* @param adUnitId The Ad Unit ID to load ads for.
|
|
28
|
+
* @param placement The placement to tie the showing ad's events to.
|
|
29
|
+
* @param customData The custom data to tie the showing ad's events to. Maximum size is 8KB.
|
|
30
|
+
*/
|
|
31
|
+
showAd(adUnitId: string, placement?: string | null, customData?: string | null): void;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Sets an extra key/value parameter for the ad.
|
|
35
|
+
*
|
|
36
|
+
* @param adUnitId The Ad Unit ID to load ads for.
|
|
37
|
+
* @param key Parameter key.
|
|
38
|
+
* @param value Parameter value.
|
|
39
|
+
*/
|
|
40
|
+
setExtraParameter(adUnitId: string, key: string, value: string | null): void;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Set a local extra parameter to pass to the adapter instances.
|
|
44
|
+
*
|
|
45
|
+
* @param adUnitId The Ad Unit ID to load ads for.
|
|
46
|
+
* @param key Parameter key.
|
|
47
|
+
* @param value Parameter value.
|
|
48
|
+
*/
|
|
49
|
+
setLocalExtraParameter(adUnitId: string, key: string, value: any): void;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Adds the specified event listener to receive {@link AdInfo} when a new ad has been loaded.
|
|
53
|
+
*
|
|
54
|
+
* @param listener Listener to be notified.
|
|
55
|
+
*/
|
|
56
|
+
addAdLoadedEventListener(listener: AdEventListener<AdInfo>): void;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Removes the event listener to receive {@link AdInfo} when a new ad has been loaded.
|
|
60
|
+
*/
|
|
61
|
+
removeAdLoadedEventListener(): void;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Adds the specified event listener to receive {@link AdLoadFailedInfo} when an ad could not be loaded.
|
|
65
|
+
*
|
|
66
|
+
* @param listener Listener to be notified.
|
|
67
|
+
*/
|
|
68
|
+
addAdLoadFailedEventListener(listener: AdEventListener<AdLoadFailedInfo>): void;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Removes the event listener to receive {@ link adLoadFailedInfo} when an ad could not be loaded.
|
|
72
|
+
*/
|
|
73
|
+
removeAdLoadFailedEventListener(): void;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Adds the specified event listener to receive {@link AdInfo} when the ad is clicked.
|
|
77
|
+
*
|
|
78
|
+
* @param listener Listener to be notified.
|
|
79
|
+
*/
|
|
80
|
+
addAdClickedEventListener(listener: AdEventListener<AdInfo>): void;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Removes the event listener to receive {@link AdInfo} when the ad is clicked.
|
|
84
|
+
*/
|
|
85
|
+
removeAdClickedEventListener(): void;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Adds the specified event listener to receive {@link AdInfo} when the ad is displayed.
|
|
89
|
+
*
|
|
90
|
+
* @param listener Listener to be notified.
|
|
91
|
+
*/
|
|
92
|
+
addAdDisplayedEventListener(listener: AdEventListener<AdInfo>): void;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Removes the event listener to receive {@link AdInfo} when the ad is displayed.
|
|
96
|
+
*/
|
|
97
|
+
removeAdDisplayedEventListener(): void;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Adds the specified event listener to receive {@link AdDisplayFailedInfo} when the ad is failed to
|
|
101
|
+
* display.
|
|
102
|
+
*
|
|
103
|
+
* @param listener Listener to be notified.
|
|
104
|
+
*/
|
|
105
|
+
addAdFailedToDisplayEventListener(listener: AdEventListener<AdDisplayFailedInfo>): void;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Removes the event listener to receive {@link AdDisplayFailedInfo} when the ad is failed to display.
|
|
109
|
+
*/
|
|
110
|
+
removeAdFailedToDisplayEventListener(): void;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Adds the specified event listener to receive {@link AdInfo} when the ad is hidden.
|
|
114
|
+
*
|
|
115
|
+
* @param listener Listener to be notified.
|
|
116
|
+
*/
|
|
117
|
+
addAdHiddenEventListener(listener: AdEventListener<AdInfo>): void;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Removes the event listener to receive {@link AdInfo} when the ad is hidden.
|
|
121
|
+
*/
|
|
122
|
+
removeAdHiddenEventListener(): void;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Adds the specified event listener to receive {@link AdRevenueInfo} when the ad revenue is paid.
|
|
126
|
+
*
|
|
127
|
+
* @param listener Listener to be notified.
|
|
128
|
+
*/
|
|
129
|
+
addAdRevenuePaidListener(listener: AdEventListener<AdRevenueInfo>): void;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Removes the event listener to receive {@link AdRevenueInfo} when the ad revenue is paid.
|
|
133
|
+
*/
|
|
134
|
+
removeAdRevenuePaidListener(): void;
|
|
135
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ViewAdType } from "./ViewAd";
|
|
2
|
+
import type { AdViewPosition } from "../AdView";
|
|
3
|
+
|
|
4
|
+
export type MRecAdType = ViewAdType & {
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Creates a MREC at the specified position.
|
|
8
|
+
*
|
|
9
|
+
* @param adUnitId The Ad Unit ID to to load ads for.
|
|
10
|
+
* @param position {@link AdViewPosition} position.
|
|
11
|
+
*/
|
|
12
|
+
createAd(adUnitId: string, position: AdViewPosition): void;
|
|
13
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a native ad for rendering `NativeAdView`. Internal use only.
|
|
3
|
+
*/
|
|
4
|
+
export type NativeAd = {
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The native ad title text.
|
|
8
|
+
*/
|
|
9
|
+
title?: string | null;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* The native ad advertiser text.
|
|
13
|
+
*/
|
|
14
|
+
advertiser?: string | null;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The native ad body text.
|
|
18
|
+
*/
|
|
19
|
+
body?: string | null;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* The native ad CTA button text.
|
|
23
|
+
*/
|
|
24
|
+
callToAction?: string | null;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Whether or not this has an image icon.
|
|
28
|
+
*/
|
|
29
|
+
image?: boolean;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* The URL string of the icon.
|
|
33
|
+
*/
|
|
34
|
+
url?: string | null;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* The star rating of the native ad.
|
|
38
|
+
*/
|
|
39
|
+
starRating?: number | null;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Whether or not the Options view is available.
|
|
43
|
+
*/
|
|
44
|
+
isOptionsViewAvailable: boolean;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Whether or not the Media view is available.
|
|
48
|
+
*/
|
|
49
|
+
isMediaViewAvailable: boolean;
|
|
50
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { AdProps } from "./AdProps";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A handler of {@link NativeAdView}.
|
|
5
|
+
*/
|
|
6
|
+
export type NativeAdViewHandler = {
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Loads a native ad.
|
|
10
|
+
*/
|
|
11
|
+
loadAd(): void;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Represents a {@link NativeAdView}.
|
|
16
|
+
*/
|
|
17
|
+
export type NativeAdViewProps = AdProps;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export type PrivacyType = {
|
|
2
|
+
|
|
3
|
+
/**********************************************************************************/
|
|
4
|
+
/* Privacy */
|
|
5
|
+
/**********************************************************************************/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Show the user consent dialog to the user using one from AppLovin's SDK.
|
|
9
|
+
*/
|
|
10
|
+
showConsentDialog(): Promise<void>;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Sets whether or not the user has provided consent for information-sharing with AppLovin.
|
|
14
|
+
*
|
|
15
|
+
* @param hasUserConsent true if the user has provided consent for information sharing.
|
|
16
|
+
*/
|
|
17
|
+
setHasUserConsent(hasUserConsent: boolean): void;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Checks if user has set consent for information sharing.
|
|
21
|
+
*/
|
|
22
|
+
hasUserConsent(): Promise<boolean>;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Marks the user as age-restricted (i.e. under 16).
|
|
26
|
+
*
|
|
27
|
+
* @param isAgeRestrictedUser true if the user is age restricted (i.e. under 16).
|
|
28
|
+
*/
|
|
29
|
+
setIsAgeRestrictedUser(isAgeRestrictedUser: boolean): void;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Checks if the user is age-restricted.
|
|
33
|
+
*/
|
|
34
|
+
isAgeRestrictedUser(): Promise<boolean>;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Sets whether or not the user has opted out of the sale of their personal information.
|
|
38
|
+
*
|
|
39
|
+
* @param doNotSell true if the user has opted out of the sale of their personal information.
|
|
40
|
+
*/
|
|
41
|
+
setDoNotSell(doNotSell: boolean): void;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Checks if the user has opted out of the sale of their personal information.
|
|
45
|
+
*/
|
|
46
|
+
isDoNotSell(): Promise<boolean>;
|
|
47
|
+
|
|
48
|
+
/**********************************************************************************/
|
|
49
|
+
/* TERM FLow */
|
|
50
|
+
/**********************************************************************************/
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Enable the MAX Terms Flow.
|
|
54
|
+
*
|
|
55
|
+
* @param enabled Enable the MAX Terms Flow.
|
|
56
|
+
*/
|
|
57
|
+
setConsentFlowEnabled(enabled: boolean): Promise<void>;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* URL for your company’s privacy policy. This is required in order to enable the Terms Flow.
|
|
61
|
+
*
|
|
62
|
+
* @param urlString The URL string to point your company’s privacy policy.
|
|
63
|
+
*/
|
|
64
|
+
setPrivacyPolicyUrl(urlString: string): Promise<void>;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* URL for your company’s terms of service. This is optional; you can enable the Terms Flow with
|
|
68
|
+
* or without it.
|
|
69
|
+
*
|
|
70
|
+
* @param urlString The URL string to point your company’s terms of service.
|
|
71
|
+
*/
|
|
72
|
+
setTermsOfServiceUrl(urlString: string): Promise<void>;
|
|
73
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { AdEventListener } from "./AdEvent";
|
|
2
|
+
import type { AdRewardInfo } from "./AdInfo";
|
|
3
|
+
import type { FullscreenAdType } from "./FullscreenAd";
|
|
4
|
+
|
|
5
|
+
export type RewardedAdType = FullscreenAdType & {
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Adds the specified event listener to receive {@link AdRewardInfo} when the ad is rewarded.
|
|
9
|
+
*
|
|
10
|
+
* @param listener Listener to be notified.
|
|
11
|
+
*/
|
|
12
|
+
addAdReceivedRewardEventListener(listener: AdEventListener<AdRewardInfo>): void;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Removes the event listener to receive {@link AdRewardInfo} when the ad is rewarded.
|
|
16
|
+
*/
|
|
17
|
+
removeAdReceivedRewardEventListener(): void;
|
|
18
|
+
};
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import type { AdEventListener } from "./AdEvent";
|
|
2
|
+
import type { AdInfo, AdLoadFailedInfo, AdRevenueInfo } from "./AdInfo";
|
|
3
|
+
import type { AdViewPosition } from "../AdView";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Define a view based ad (i.e. Banner / MREC)
|
|
7
|
+
*/
|
|
8
|
+
export type ViewAdType = {
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Destroys the banner/mrec.
|
|
12
|
+
*
|
|
13
|
+
* @param adUnitId The Ad Unit ID to to load ads for.
|
|
14
|
+
*/
|
|
15
|
+
destroyAd(adUnitId: string): void;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Shows the banner/mrec.
|
|
19
|
+
*
|
|
20
|
+
* @param adUnitId The Ad Unit ID to to load ads for.
|
|
21
|
+
*/
|
|
22
|
+
showAd(adUnitId: string): void;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Hides the banner/mrec.
|
|
26
|
+
*
|
|
27
|
+
* @param adUnitId The Ad Unit ID to to load ads for.
|
|
28
|
+
*/
|
|
29
|
+
hideAd(adUnitId: string): void;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Sets a placement to tie the showing ad’s events to.
|
|
33
|
+
*
|
|
34
|
+
* @param adUnitId The Ad Unit ID to to load ads for.
|
|
35
|
+
* @param placement The placement to tie the showing ad's events to.
|
|
36
|
+
*/
|
|
37
|
+
setPlacement(adUnitId: string, placement: string | null): void;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Sets custom data to tie the showing ad’s events to.
|
|
41
|
+
*
|
|
42
|
+
* @param adUnitId The Ad Unit ID to to load ads for.
|
|
43
|
+
* @param customData The custom data to tie the showing ad's events to. Maximum size is 8KB.
|
|
44
|
+
*/
|
|
45
|
+
setCustomData(adUnitId: string, customData: string | null): void;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Updates the banner/mrec position.
|
|
49
|
+
*
|
|
50
|
+
* @param adUnitId The Ad Unit ID to to load ads for.
|
|
51
|
+
* @param bannerPosition {@link AdViewPosition} position.
|
|
52
|
+
*/
|
|
53
|
+
updatePosition(adUnitId: string, bannerPosition: AdViewPosition): void;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Sets an extra key/value parameter for the ad.
|
|
57
|
+
*
|
|
58
|
+
* @param adUnitId The Ad Unit ID to to load ads for.
|
|
59
|
+
* @param key Key parameter.
|
|
60
|
+
* @param value Value parameter.
|
|
61
|
+
*/
|
|
62
|
+
setExtraParameter(adUnitId: string, key: string, value: string | null): void;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Set a local extra parameter to pass to the adapter instances.
|
|
66
|
+
*
|
|
67
|
+
* @param adUnitId The Ad Unit ID to to load ads for.
|
|
68
|
+
* @param key Key parameter.
|
|
69
|
+
* @param value Value parameter.
|
|
70
|
+
*/
|
|
71
|
+
setLocalExtraParameter(adUnitId: string, key: string, value: any): void;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Starts or resumes auto-refreshing of the banner/mrec.
|
|
75
|
+
*
|
|
76
|
+
* @param adUnitId The Ad Unit ID to to load ads for.
|
|
77
|
+
*/
|
|
78
|
+
startAutoRefresh(adUnitId: string): void;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Pauses auto-refreshing of the banner/mrec.
|
|
82
|
+
*
|
|
83
|
+
* @param adUnitId The Ad Unit ID to to load ads for.
|
|
84
|
+
*/
|
|
85
|
+
stopAutoRefresh(adUnitId: string): void;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Adds the specified event listener to receive {@link AdInfo} when a new ad has been loaded.
|
|
89
|
+
*
|
|
90
|
+
* @param listener Listener to be notified.
|
|
91
|
+
*/
|
|
92
|
+
addAdLoadedEventListener(listener: AdEventListener<AdInfo>): void;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Removes the event listener to receive {@link AdInfo} when a new ad has been loaded.
|
|
96
|
+
*/
|
|
97
|
+
removeAdLoadedEventListener(): void;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Adds the specified event listener to receive {@link AdLoadFailedInfo} when an ad could not be loaded.
|
|
101
|
+
*
|
|
102
|
+
* @param listener Listener to be notified.
|
|
103
|
+
*/
|
|
104
|
+
addAdLoadFailedEventListener(listener: AdEventListener<AdLoadFailedInfo>): void;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Removes the event listener to receive {@link AdLoadFailedInfo} when an ad could not be loaded.
|
|
108
|
+
*/
|
|
109
|
+
removeAdLoadFailedEventListener(): void;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Adds the specified event listener to receive {@link AdInfo} when the ad is clicked.
|
|
113
|
+
*
|
|
114
|
+
* @param listener Listener to be notified.
|
|
115
|
+
*/
|
|
116
|
+
addAdClickedEventListener(listener: AdEventListener<AdInfo>): void;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Removes the event listener to receive {@link AdInfo} when the ad is clicked.
|
|
120
|
+
*/
|
|
121
|
+
removeAdClickedEventListener(): void;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Adds the specified event listener to receive {@link AdInfo} when the ad is collapsed.
|
|
125
|
+
*
|
|
126
|
+
* @param listener Listener to be notified.
|
|
127
|
+
*/
|
|
128
|
+
addAdCollapsedEventListener(listener: AdEventListener<AdInfo>): void;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Removes the event listener to receive {@link AdInfo} when the ad is collapsed.
|
|
132
|
+
*/
|
|
133
|
+
removeAdCollapsedEventListener(): void;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Adds the specified event listener to receive {@link AdInfo} when the ad is expanded.
|
|
137
|
+
*
|
|
138
|
+
* @param listener Listener to be notified.
|
|
139
|
+
*/
|
|
140
|
+
addAdExpandedEventListener(listener: AdEventListener<AdInfo>): void;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Removes the event listener to receive {@link AdInfo} when the ad is expanded.
|
|
144
|
+
*/
|
|
145
|
+
removeAdExpandedEventListener(): void;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Adds the specified event listener to receive {@link AdRevenueInfo} when the ad revenue is paid.
|
|
149
|
+
*
|
|
150
|
+
* @param listener Listener to be notified.
|
|
151
|
+
*/
|
|
152
|
+
addAdRevenuePaidListener(listener: AdEventListener<AdRevenueInfo>): void;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Removes the event listener to receive {@link AdRevenueInfo} when the ad revenue is paid.
|
|
156
|
+
*/
|
|
157
|
+
removeAdRevenuePaidListener(): void;
|
|
158
|
+
};
|