react-native-applovin-max 4.0.0 → 4.1.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/android/build.gradle +3 -3
- package/android/src/main/java/com/applovin/reactnative/AppLovinMAXAdView.java +52 -1
- package/android/src/main/java/com/applovin/reactnative/AppLovinMAXModule.java +208 -81
- package/android/src/main/java/com/applovin/reactnative/AppLovinMAXNativeAdView.java +71 -20
- package/ios/AppLovinMAX.h +2 -2
- package/ios/AppLovinMAX.m +209 -61
- package/ios/AppLovinMAXAdView.m +43 -2
- package/ios/AppLovinMAXNativeAdView.m +42 -7
- package/ios/Podfile +1 -1
- package/ios/Podfile.lock +4 -4
- package/package.json +1 -1
- package/react-native-applovin-max.podspec +2 -2
- package/src/TargetingData.js +1 -1
- package/src/index.js +381 -55
package/src/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { NativeModules, NativeEventEmitter } from "react-native";
|
|
2
2
|
import AdView, { AdFormat, AdViewPosition } from "./AppLovinMAXAdView";
|
|
3
|
-
import { TargetingData
|
|
3
|
+
import { TargetingData, AdContentRating, UserGender } from "./TargetingData";
|
|
4
4
|
import NativeAdView from "./NativeAdView";
|
|
5
5
|
|
|
6
6
|
const { AppLovinMAX } = NativeModules;
|
|
7
7
|
|
|
8
|
-
const VERSION = "4.
|
|
8
|
+
const VERSION = "4.1.0";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* This enum represents whether or not the consent dialog should be shown for this user.
|
|
@@ -48,7 +48,236 @@ const removeEventListener = (event) => {
|
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
+
const logUninitializedAccessError = (callingMethod) => {
|
|
52
|
+
console.warn( "ERROR: Failed to execute " + callingMethod + "() - please ensure the AppLovin MAX React Native module has been initialized by calling 'AppLovinMAX.initialize(...);'!" );
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/*---------*/
|
|
56
|
+
/* BANNERS */
|
|
57
|
+
/*---------*/
|
|
58
|
+
|
|
59
|
+
const createBanner = (adUnitId, bannerPosition) => {
|
|
60
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
61
|
+
logUninitializedAccessError('createBanner');
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
AppLovinMAX.createBanner(adUnitId, bannerPosition);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
const createBannerWithOffsets = (adUnitId, bannerPosition, xOffset, yOffset) => {
|
|
68
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
69
|
+
logUninitializedAccessError('createBannerWithOffsets');
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
AppLovinMAX.createBannerWithOffsets(adUnitId, bannerPosition, xOffset, yOffset);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
const setBannerBackgroundColor = (adUnitId, hexColorCode) => {
|
|
76
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
77
|
+
logUninitializedAccessError('setBannerBackgroundColor');
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
AppLovinMAX.setBannerBackgroundColor(adUnitId, hexColorCode);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
const setBannerPlacement = (adUnitId, placement) => {
|
|
84
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
85
|
+
logUninitializedAccessError('setBannerPlacement');
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
AppLovinMAX.setBannerPlacement(adUnitId, placement);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
const setBannerWidth = (adUnitId, width) => {
|
|
92
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
93
|
+
logUninitializedAccessError('setBannerWidth');
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
AppLovinMAX.setBannerWidth(adUnitId, width);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
const updateBannerPosition = (adUnitId, bannerPosition) => {
|
|
100
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
101
|
+
logUninitializedAccessError('updateBannerPosition');
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
AppLovinMAX.updateBannerPosition(adUnitId, bannerPosition);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
const updateBannerOffsets = (adUnitId, xOffset, yOffset) => {
|
|
108
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
109
|
+
logUninitializedAccessError('updateBannerOffsets');
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
AppLovinMAX.updateBannerOffsets(adUnitId, xOffset, yOffset);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
const setBannerExtraParameter = (adUnitId, key, value) => {
|
|
116
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
117
|
+
logUninitializedAccessError('setBannerExtraParameter');
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
AppLovinMAX.setBannerExtraParameter(adUnitId, key, value);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
const startBannerAutoRefresh = (adUnitId) => {
|
|
124
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
125
|
+
logUninitializedAccessError('startBannerAutoRefresh');
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
AppLovinMAX.startBannerAutoRefresh(adUnitId);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
const stopBannerAutoRefresh = (adUnitId) => {
|
|
132
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
133
|
+
logUninitializedAccessError('stopBannerAutoRefresh');
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
AppLovinMAX.stopBannerAutoRefresh(adUnitId);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
const showBanner = (adUnitId) => {
|
|
140
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
141
|
+
logUninitializedAccessError('showBanner');
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
AppLovinMAX.showBanner(adUnitId);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
const hideBanner = (adUnitId) => {
|
|
148
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
149
|
+
logUninitializedAccessError('hideBanner');
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
AppLovinMAX.hideBanner(adUnitId);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
const destroyBanner = (adUnitId) => {
|
|
156
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
157
|
+
logUninitializedAccessError('destroyBanner');
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
AppLovinMAX.destroyBanner(adUnitId);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/*-------*/
|
|
164
|
+
/* MRECS */
|
|
165
|
+
/*-------*/
|
|
166
|
+
|
|
167
|
+
const createMRec = (adUnitId, mrecPosition) => {
|
|
168
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
169
|
+
logUninitializedAccessError('createMRec');
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
AppLovinMAX.createMRec(adUnitId, mrecPosition);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
const setMRecBackgroundColor = (adUnitId, hexColorCode) => {
|
|
176
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
177
|
+
logUninitializedAccessError('setMRecBackgroundColor');
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
AppLovinMAX.setMRecBackgroundColor(adUnitId, hexColorCode);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
const setMRecPlacement = (adUnitId, placement) => {
|
|
184
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
185
|
+
logUninitializedAccessError('setMRecPlacement');
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
AppLovinMAX.setMRecPlacement(adUnitId, placement);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
const setMRecCustomData = (adUnitId, customData) => {
|
|
192
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
193
|
+
logUninitializedAccessError('setMRecCustomData');
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
AppLovinMAX.setMRecCustomData(adUnitId, customData);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
const updateMRecPosition = (adUnitId, mrecPosition) => {
|
|
200
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
201
|
+
logUninitializedAccessError('updateMRecPosition');
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
AppLovinMAX.updateMRecPosition(adUnitId, mrecPosition);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
const setMRecExtraParameter = (adUnitId, key, value) => {
|
|
208
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
209
|
+
logUninitializedAccessError('setMRecExtraParameter');
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
AppLovinMAX.setMRecExtraParameter(adUnitId, key, value);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
const startMRecAutoRefresh = (adUnitId) => {
|
|
216
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
217
|
+
logUninitializedAccessError('startMRecAutoRefresh');
|
|
218
|
+
return;
|
|
219
|
+
}
|
|
220
|
+
AppLovinMAX.startMRecAutoRefresh(adUnitId);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
const stopMRecAutoRefresh = (adUnitId) => {
|
|
224
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
225
|
+
logUninitializedAccessError('stopMRecAutoRefresh');
|
|
226
|
+
return;
|
|
227
|
+
}
|
|
228
|
+
AppLovinMAX.stopMRecAutoRefresh(adUnitId);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
const showMRec = (adUnitId) => {
|
|
232
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
233
|
+
logUninitializedAccessError('showMRec');
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
AppLovinMAX.showMRec(adUnitId);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
const hideMRec = (adUnitId) => {
|
|
240
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
241
|
+
logUninitializedAccessError('hideMRec');
|
|
242
|
+
return;
|
|
243
|
+
}
|
|
244
|
+
AppLovinMAX.hideMRec(adUnitId);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
const destroyMRec = (adUnitId) => {
|
|
248
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
249
|
+
logUninitializedAccessError('destroyMRec');
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
252
|
+
AppLovinMAX.destroyMRec(adUnitId);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/*---------------*/
|
|
256
|
+
/* INTERSTITIALS */
|
|
257
|
+
/*---------------*/
|
|
258
|
+
|
|
259
|
+
const loadInterstitial = (adUnitId) => {
|
|
260
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
261
|
+
logUninitializedAccessError('loadInterstitial');
|
|
262
|
+
return;
|
|
263
|
+
}
|
|
264
|
+
AppLovinMAX.loadInterstitial(adUnitId);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
const isInterstitialReady = (adUnitId) => {
|
|
268
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
269
|
+
logUninitializedAccessError('isInterstitialReady');
|
|
270
|
+
return false;
|
|
271
|
+
}
|
|
272
|
+
return AppLovinMAX.isInterstitialReady(adUnitId);
|
|
273
|
+
}
|
|
274
|
+
|
|
51
275
|
const showInterstitial = (adUnitId, ...args) => {
|
|
276
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
277
|
+
logUninitializedAccessError('showInterstitial');
|
|
278
|
+
return;
|
|
279
|
+
}
|
|
280
|
+
|
|
52
281
|
switch (args.length) {
|
|
53
282
|
case 0:
|
|
54
283
|
AppLovinMAX.showInterstitial(adUnitId, null, null);
|
|
@@ -65,7 +294,40 @@ const showInterstitial = (adUnitId, ...args) => {
|
|
|
65
294
|
}
|
|
66
295
|
};
|
|
67
296
|
|
|
297
|
+
const setInterstitialExtraParameter = (adUnitId, key, value) => {
|
|
298
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
299
|
+
logUninitializedAccessError('setInterstitialExtraParameter');
|
|
300
|
+
return;
|
|
301
|
+
}
|
|
302
|
+
AppLovinMAX.setInterstitialExtraParameter(adUnitId, key, value);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/*----------*/
|
|
306
|
+
/* REWARDED */
|
|
307
|
+
/*----------*/
|
|
308
|
+
|
|
309
|
+
const loadRewardedAd = (adUnitId) => {
|
|
310
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
311
|
+
logUninitializedAccessError('loadRewardedAd');
|
|
312
|
+
return;
|
|
313
|
+
}
|
|
314
|
+
AppLovinMAX.loadRewardedAd(adUnitId);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
const isRewardedAdReady = (adUnitId) => {
|
|
318
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
319
|
+
logUninitializedAccessError('isRewardedAdReady');
|
|
320
|
+
return false;
|
|
321
|
+
}
|
|
322
|
+
return AppLovinMAX.isRewardedAdReady(adUnitId);
|
|
323
|
+
}
|
|
324
|
+
|
|
68
325
|
const showRewardedAd = (adUnitId, ...args) => {
|
|
326
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
327
|
+
logUninitializedAccessError('showRewardedAd');
|
|
328
|
+
return;
|
|
329
|
+
}
|
|
330
|
+
|
|
69
331
|
switch (args.length) {
|
|
70
332
|
case 0:
|
|
71
333
|
AppLovinMAX.showRewardedAd(adUnitId, null, null);
|
|
@@ -82,10 +344,70 @@ const showRewardedAd = (adUnitId, ...args) => {
|
|
|
82
344
|
}
|
|
83
345
|
};
|
|
84
346
|
|
|
347
|
+
const setRewardedAdExtraParameter = (adUnitId, key, value) => {
|
|
348
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
349
|
+
logUninitializedAccessError('setRewardedAdExtraParameter');
|
|
350
|
+
return;
|
|
351
|
+
}
|
|
352
|
+
AppLovinMAX.setRewardedAdExtraParameter(adUnitId, key, value);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/*----------*/
|
|
356
|
+
/* APP OPEN */
|
|
357
|
+
/*----------*/
|
|
358
|
+
|
|
359
|
+
const loadAppOpenAd = (adUnitId) => {
|
|
360
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
361
|
+
logUninitializedAccessError('loadAppOpenAd');
|
|
362
|
+
return;
|
|
363
|
+
}
|
|
364
|
+
AppLovinMAX.loadAppOpenAd(adUnitId);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
const isAppOpenAdReady = (adUnitId) => {
|
|
368
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
369
|
+
logUninitializedAccessError('isAppOpenAdReady');
|
|
370
|
+
return false;
|
|
371
|
+
}
|
|
372
|
+
return AppLovinMAX.isAppOpenAdReady(adUnitId);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
const showAppOpenAd = (adUnitId, ...args) => {
|
|
376
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
377
|
+
logUninitializedAccessError('showAppOpenAd');
|
|
378
|
+
return;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
switch (args.length) {
|
|
382
|
+
case 0:
|
|
383
|
+
AppLovinMAX.showAppOpenAd(adUnitId, null, null);
|
|
384
|
+
break;
|
|
385
|
+
case 1:
|
|
386
|
+
AppLovinMAX.showAppOpenAd(adUnitId, args[0], null);
|
|
387
|
+
break;
|
|
388
|
+
case 2:
|
|
389
|
+
AppLovinMAX.showAppOpenAd(adUnitId, args[0], args[1]);
|
|
390
|
+
break;
|
|
391
|
+
default:
|
|
392
|
+
// do nothing - unexpected number of arguments
|
|
393
|
+
break;
|
|
394
|
+
}
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
const setAppOpenAdExtraParameter = (adUnitId, key, value) => {
|
|
398
|
+
if (!AppLovinMAX.isInitialized()) {
|
|
399
|
+
logUninitializedAccessError('setAppOpenAdExtraParameter');
|
|
400
|
+
return;
|
|
401
|
+
}
|
|
402
|
+
AppLovinMAX.setAppOpenAdExtraParameter(adUnitId, key, value);
|
|
403
|
+
}
|
|
404
|
+
|
|
85
405
|
export default {
|
|
86
406
|
...AppLovinMAX,
|
|
87
407
|
AdView,
|
|
88
|
-
targetingData
|
|
408
|
+
get targetingData() {
|
|
409
|
+
return TargetingData;
|
|
410
|
+
},
|
|
89
411
|
AdContentRating,
|
|
90
412
|
UserGender,
|
|
91
413
|
ConsentDialogState,
|
|
@@ -98,8 +420,62 @@ export default {
|
|
|
98
420
|
initialize(sdkKey, callback) {
|
|
99
421
|
AppLovinMAX.initialize(VERSION, sdkKey, callback); // Inject VERSION into native code
|
|
100
422
|
},
|
|
423
|
+
|
|
424
|
+
/*---------*/
|
|
425
|
+
/* BANNERS */
|
|
426
|
+
/*---------*/
|
|
427
|
+
createBanner,
|
|
428
|
+
createBannerWithOffsets,
|
|
429
|
+
setBannerBackgroundColor,
|
|
430
|
+
setBannerPlacement,
|
|
431
|
+
setBannerWidth,
|
|
432
|
+
updateBannerPosition,
|
|
433
|
+
updateBannerOffsets,
|
|
434
|
+
setBannerExtraParameter,
|
|
435
|
+
startBannerAutoRefresh,
|
|
436
|
+
stopBannerAutoRefresh,
|
|
437
|
+
showBanner,
|
|
438
|
+
hideBanner,
|
|
439
|
+
destroyBanner,
|
|
440
|
+
|
|
441
|
+
/*-------*/
|
|
442
|
+
/* MRECS */
|
|
443
|
+
/*-------*/
|
|
444
|
+
createMRec,
|
|
445
|
+
setMRecBackgroundColor,
|
|
446
|
+
setMRecPlacement,
|
|
447
|
+
setMRecCustomData,
|
|
448
|
+
updateMRecPosition,
|
|
449
|
+
setMRecExtraParameter,
|
|
450
|
+
startMRecAutoRefresh,
|
|
451
|
+
stopMRecAutoRefresh,
|
|
452
|
+
showMRec,
|
|
453
|
+
hideMRec,
|
|
454
|
+
destroyMRec,
|
|
455
|
+
|
|
456
|
+
/*---------------*/
|
|
457
|
+
/* INTERSTITIALS */
|
|
458
|
+
/*---------------*/
|
|
459
|
+
loadInterstitial,
|
|
460
|
+
isInterstitialReady,
|
|
101
461
|
showInterstitial,
|
|
462
|
+
setInterstitialExtraParameter,
|
|
463
|
+
|
|
464
|
+
/*----------*/
|
|
465
|
+
/* REWARDED */
|
|
466
|
+
/*----------*/
|
|
467
|
+
loadRewardedAd,
|
|
468
|
+
isRewardedAdReady,
|
|
102
469
|
showRewardedAd,
|
|
470
|
+
setRewardedAdExtraParameter,
|
|
471
|
+
|
|
472
|
+
/*----------*/
|
|
473
|
+
/* APP OPEN */
|
|
474
|
+
/*----------*/
|
|
475
|
+
loadAppOpenAd,
|
|
476
|
+
isAppOpenAdReady,
|
|
477
|
+
showAppOpenAd,
|
|
478
|
+
setAppOpenAdExtraParameter,
|
|
103
479
|
|
|
104
480
|
/*----------------------*/
|
|
105
481
|
/** AUTO-DECLARED APIs **/
|
|
@@ -110,7 +486,6 @@ export default {
|
|
|
110
486
|
/*----------------*/
|
|
111
487
|
/* isInitialized() */
|
|
112
488
|
/* initialize(pluginVersion, sdkKey, callback) */
|
|
113
|
-
/* showMediationDebugger() */
|
|
114
489
|
|
|
115
490
|
/*--------------*/
|
|
116
491
|
/* PRIVACY APIs */
|
|
@@ -127,6 +502,7 @@ export default {
|
|
|
127
502
|
/*--------------------*/
|
|
128
503
|
/* GENERAL PUBLIC API */
|
|
129
504
|
/*--------------------*/
|
|
505
|
+
/* showMediationDebugger() */
|
|
130
506
|
/* isTablet() */
|
|
131
507
|
/* setUserId(userId) */
|
|
132
508
|
/* setMuted(muted) */
|
|
@@ -134,23 +510,12 @@ export default {
|
|
|
134
510
|
/* setVerboseLogging(verboseLoggingEnabled) */
|
|
135
511
|
/* setTestDeviceAdvertisingIds(advertisingIds) */
|
|
136
512
|
/* setCreativeDebuggerEnabled(enabled) */
|
|
513
|
+
/* setExtraParameter(key, value) */
|
|
137
514
|
/* setConsentFlowEnabled(enabled) */
|
|
138
515
|
/* setPrivacyPolicyUrl(urlString) */
|
|
139
516
|
/* setTermsOfServiceUrl(urlString) */
|
|
140
517
|
/* setLocationCollectionEnabled(locationCollectionEnabled) */
|
|
141
518
|
|
|
142
|
-
/*----------------*/
|
|
143
|
-
/* DATA PASSING */
|
|
144
|
-
/*----------------*/
|
|
145
|
-
/* setTargetingDataYearOfBirth(yearOfBirth) */
|
|
146
|
-
/* setTargetingDataGender(gender) */
|
|
147
|
-
/* setTargetingDataMaximumAdContentRating(maximumAdContentRating) */
|
|
148
|
-
/* setTargetingDataEmail(email) */
|
|
149
|
-
/* setTargetingDataPhoneNumber(phoneNumber) */
|
|
150
|
-
/* setTargetingDataKeywords(keywords) */
|
|
151
|
-
/* setTargetingDataInterests(interests) */
|
|
152
|
-
/* clearAllTargetingData() */
|
|
153
|
-
|
|
154
519
|
/*----------------*/
|
|
155
520
|
/* EVENT TRACKING */
|
|
156
521
|
/*----------------*/
|
|
@@ -159,44 +524,5 @@ export default {
|
|
|
159
524
|
/*---------*/
|
|
160
525
|
/* BANNERS */
|
|
161
526
|
/*---------*/
|
|
162
|
-
/* createBanner(adUnitId, bannerPosition) */
|
|
163
|
-
/* createBannerWithOffsets(adUnitId, bannerPosition, xOffset, yOffset) */
|
|
164
|
-
/* setBannerBackgroundColor(adUnitId, hexColorCode) */
|
|
165
|
-
/* setBannerPlacement(adUnitId, placement) */
|
|
166
|
-
/* setBannerWidth(adUnitId, width) */
|
|
167
|
-
/* updateBannerPosition(adUnitId, bannerPosition) */
|
|
168
|
-
/* updateBannerOffsets(adUnitId, xOffset, yOffset) */
|
|
169
|
-
/* setBannerExtraParameter(adUnitId, key, value) */
|
|
170
|
-
/* showBanner(adUnitId) */
|
|
171
|
-
/* hideBanner(adUnitId) */
|
|
172
|
-
/* destroyBanner(adUnitId) */
|
|
173
527
|
/* getAdaptiveBannerHeightForWidth(width) */
|
|
174
|
-
|
|
175
|
-
/*-------*/
|
|
176
|
-
/* MRECS */
|
|
177
|
-
/*-------*/
|
|
178
|
-
/* createMRec(adUnitId, mrecPosition) */
|
|
179
|
-
/* setMRecBackgroundColor(adUnitId, hexColorCode) */
|
|
180
|
-
/* setMRecPlacement(adUnitId, placement) */
|
|
181
|
-
/* updateMRecPosition(adUnitId, mrecPosition) */
|
|
182
|
-
/* setMRecExtraParameter(adUnitId, key, value) */
|
|
183
|
-
/* showMRec(adUnitId) */
|
|
184
|
-
/* hideMRec(adUnitId) */
|
|
185
|
-
/* destroyMRec
|
|
186
|
-
|
|
187
|
-
/*---------------*/
|
|
188
|
-
/* INTERSTITIALS */
|
|
189
|
-
/*---------------*/
|
|
190
|
-
/* loadInterstitial(adUnitId) */
|
|
191
|
-
/* isInterstitialReady(adUnitId) */
|
|
192
|
-
/* showInterstitial(adUnitId, placement) */
|
|
193
|
-
/* setInterstitialExtraParameter(adUnitId, key, value) */
|
|
194
|
-
|
|
195
|
-
/*----------*/
|
|
196
|
-
/* REWARDED */
|
|
197
|
-
/*----------*/
|
|
198
|
-
/* loadRewardedAd(adUnitId) */
|
|
199
|
-
/* isRewardedAdReady(adUnitId) */
|
|
200
|
-
/* showRewardedAd(adUnitId, placement) */
|
|
201
|
-
/* setRewardedAdExtraParameter(adUnitId, key, value) */
|
|
202
528
|
};
|