emi-indo-cordova-plugin-admob 1.3.9 → 1.4.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/.github/FUNDING.yml +13 -13
- package/.github/ISSUE_TEMPLATE/bug_report.md +124 -124
- package/LICENSE +7 -7
- package/README.md +509 -446
- package/example/Advanced topics/auto_load_and_show.html +94 -94
- package/example/Advanced topics/consent_GDPR_IAB_TFCv2.2.html +279 -0
- package/example/Advanced topics/targeting.html +78 -78
- package/example/app_open_ads.html +151 -151
- package/example/banner_ads.html +248 -248
- package/example/interstitial_ads.html +166 -166
- package/example/rewarded_ads.html +185 -185
- package/example/rewarded_interstitial_ads.html +184 -184
- package/package.json +34 -34
- package/plugin.xml +292 -284
- package/src/android/emiAdmobPlugin.java +1 -1
- package/src/ios/emiAdmobPlugin.swift +286 -286
- package/www/emiAdmobPlugin.js +8 -0
package/README.md
CHANGED
@@ -1,446 +1,509 @@
|
|
1
|
-
# emi-indo-cordova-plugin-admob
|
2
|
-
Cordova Plugin Admob Android and IOS
|
3
|
-
|
4
|
-
### Mobile Ads SDK (Android: 22.
|
5
|
-
|
6
|
-
### Mobile Ads SDK (IOS: 10.3.0) [Release Notes:](https://developers.google.com/admob/ios/rel-notes)
|
7
|
-
|
8
|
-
### [Documentation for IOS](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/discussions/3)
|
9
|
-
|
10
|
-
-
|
11
|
-
|
12
|
-
|
13
|
-
> __Note__
|
14
|
-
> - ## It's Not a fork, it's purely rewritten, clean of 3rd party code.
|
15
|
-
|
16
|
-
> __Note__
|
17
|
-
> - ### No Ad-Sharing
|
18
|
-
> - ### No Remote Control
|
19
|
-
> - ### I guarantee 100% revenue for you.
|
20
|
-
> - [Code source:](https://github.com/googleads/googleads-mobile-android-examples) - Admob:
|
21
|
-
|
22
|
-
|
23
|
-
## 💰Sponsor this project
|
24
|
-
[](https://paypal.me/emiindo)
|
25
|
-
|
26
|
-
## [Check all release notes:](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/releases/)
|
27
|
-
|
28
|
-
|
29
|
-
## Minimum Cordova Engines
|
30
|
-
- cordova version = 10.0.0
|
31
|
-
- cordova-android version = 11.0.0
|
32
|
-
- cordova-ios version = 6.0.0
|
33
|
-
|
34
|
-
## Features
|
35
|
-
|
36
|
-
- SDK initialize
|
37
|
-
- targeting
|
38
|
-
- globalSettings
|
39
|
-
- App Open Ads
|
40
|
-
- Banner Ads
|
41
|
-
- Interstitial Ads
|
42
|
-
- Rewarded Ads
|
43
|
-
- Rewarded interstitial Ads
|
44
|
-
- [Consent](https://github.com/EMI-INDO/emi-indo-cordova-plugin-
|
45
|
-
- Mediation
|
46
|
-
|
47
|
-
## Coming soon
|
48
|
-
- App Open Ads ( Finished )
|
49
|
-
- User Consent ( Finished )
|
50
|
-
- Mediation ( Finished )
|
51
|
-
- https://developers.google.com/admob/android/native/start
|
52
|
-
- https://developers.google.com/admob/android/impression-level-ad-revenue ( Finished ) v1.1.9
|
53
|
-
- https://developers.google.com/admob/android/ssv
|
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
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
###
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
- on.
|
189
|
-
|
190
|
-
- on.
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
-
|
211
|
-
-
|
212
|
-
-
|
213
|
-
-
|
214
|
-
-
|
215
|
-
|
216
|
-
-
|
217
|
-
-
|
218
|
-
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
### Event Load
|
225
|
-
|
226
|
-
- on.
|
227
|
-
- on.
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
- on.
|
233
|
-
- on.
|
234
|
-
- on.
|
235
|
-
|
236
|
-
- on.
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
-
|
395
|
-
|
396
|
-
|
397
|
-
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
1
|
+
# emi-indo-cordova-plugin-admob
|
2
|
+
Cordova Plugin Admob Android and IOS
|
3
|
+
|
4
|
+
### Mobile Ads SDK (Android: 22.5.0) [Release Notes:](https://developers.google.com/admob/android/rel-notes)
|
5
|
+
|
6
|
+
### Mobile Ads SDK (IOS: 10.3.0) [Release Notes:](https://developers.google.com/admob/ios/rel-notes)
|
7
|
+
|
8
|
+
### [Documentation for IOS](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/discussions/3)
|
9
|
+
|
10
|
+
-
|
11
|
+
|
12
|
+
|
13
|
+
> __Note__
|
14
|
+
> - ## It's Not a fork, it's purely rewritten, clean of 3rd party code.
|
15
|
+
|
16
|
+
> __Note__
|
17
|
+
> - ### No Ad-Sharing
|
18
|
+
> - ### No Remote Control
|
19
|
+
> - ### I guarantee 100% revenue for you.
|
20
|
+
> - [Code source:](https://github.com/googleads/googleads-mobile-android-examples) - Admob:
|
21
|
+
|
22
|
+
|
23
|
+
## 💰Sponsor this project
|
24
|
+
[](https://paypal.me/emiindo)
|
25
|
+
|
26
|
+
## [Check all release notes:](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/releases/)
|
27
|
+
|
28
|
+
|
29
|
+
## Minimum Cordova Engines
|
30
|
+
- cordova version = 10.0.0
|
31
|
+
- cordova-android version = 11.0.0
|
32
|
+
- cordova-ios version = 6.0.0
|
33
|
+
|
34
|
+
## Features
|
35
|
+
|
36
|
+
- SDK initialize
|
37
|
+
- targeting
|
38
|
+
- globalSettings
|
39
|
+
- App Open Ads
|
40
|
+
- Banner Ads
|
41
|
+
- Interstitial Ads
|
42
|
+
- Rewarded Ads
|
43
|
+
- Rewarded interstitial Ads
|
44
|
+
- [Consent](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/blob/main/example/Advanced%20topics/consent_GDPR_IAB_TFCv2.2.html)
|
45
|
+
- Mediation
|
46
|
+
|
47
|
+
## Coming soon
|
48
|
+
- App Open Ads ( Finished )
|
49
|
+
- User Consent ( Finished )
|
50
|
+
- Mediation ( Finished )
|
51
|
+
- https://developers.google.com/admob/android/native/start
|
52
|
+
- https://developers.google.com/admob/android/impression-level-ad-revenue ( Finished ) v1.1.9
|
53
|
+
- https://developers.google.com/admob/android/ssv
|
54
|
+
- https://developers.google.com/admob/android/privacy/gdpr ( Finished ) v1.4.0 [index.html](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/blob/main/example/Advanced%20topics/consent_GDPR_IAB_TFCv2.2.html)
|
55
|
+
- https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/ ( Finished ) v1.4.0 [index.html](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/blob/main/example/Advanced%20topics/consent_GDPR_IAB_TFCv2.2.html)
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
## Installation
|
61
|
+
|
62
|
+
```sh
|
63
|
+
cordova plugin add emi-indo-cordova-plugin-admob --variable APP_ID_ANDROID=ca-app-pub-3940256099942544~3347511713
|
64
|
+
```
|
65
|
+
### Or
|
66
|
+
```sh
|
67
|
+
cordova plugin add https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob --variable APP_ID_ANDROID=ca-app-pub-3940256099942544~3347511713
|
68
|
+
```
|
69
|
+
## Remove
|
70
|
+
```sh
|
71
|
+
cordova plugin rm emi-indo-cordova-plugin-admob
|
72
|
+
```
|
73
|
+
|
74
|
+
## upgrade Mobile Ads SDK
|
75
|
+
[Release Notes Mobile Ads SDK:](https://developers.google.com/admob/android/rel-notes)
|
76
|
+
```sh
|
77
|
+
cordova plugin add emi-indo-cordova-plugin-admob --variable APP_ID_ANDROID=ca-app-pub-3940256099942544~3347511713 --variable PLAY_SERVICES_VERSION="xxxx"
|
78
|
+
```
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
> __Note__
|
83
|
+
>
|
84
|
+
|
85
|
+
> - # Plugin version @1.4.0
|
86
|
+
|
87
|
+
### [ GDPR | IAB TFC code example: ](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/blob/main/example/Advanced%20topics/consent_GDPR_IAB_TFCv2.2.html)
|
88
|
+
- replace all AdUnitId to adUnitId
|
89
|
+
- new banner size: FULL_WIDTH
|
90
|
+
|
91
|
+
-
|
92
|
+
|
93
|
+
> - # Plugin version @1.3.9
|
94
|
+
|
95
|
+
[FULL Example ](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/blob/main/example/) - index.html:
|
96
|
+
|
97
|
+
### [ App Open Ad code example: ](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/blob/main/example/app_open_ads.html)
|
98
|
+
### [ Banner Ad code example: ](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/blob/main/example/banner_ads.html)
|
99
|
+
### [ Interstitial Ad code example: ](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/blob/main/example/interstitial_ads.html)
|
100
|
+
### [ Rewarded interstitial Ad code example: ](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/blob/main/example/rewarded_interstitial_ads.html)
|
101
|
+
### [ Rewarded Ad code example: ](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/blob/main/example/rewarded_ads.html)
|
102
|
+
|
103
|
+
### [ Advanced topics: ](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/tree/main/example/Advanced%20topics)
|
104
|
+
|
105
|
+
# IAB Europe Transparency & Consent Framework
|
106
|
+
### Example How to read consent choices
|
107
|
+
|
108
|
+
|
109
|
+
// index.html https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/blob/main/example/Advanced%20topics/consent_GDPR_IAB_TFCv2.2.html
|
110
|
+
```sh
|
111
|
+
// >>>>>>>> New features (UMP) SDK v2.1.0
|
112
|
+
// https://developers.google.com/admob/android/privacy/gdpr
|
113
|
+
/*
|
114
|
+
If the user chooses not to display ads,
|
115
|
+
you can restrict access to the app, or ban it,
|
116
|
+
until they change their decision back,
|
117
|
+
Just call showPrivacyOptionsForm();
|
118
|
+
*/
|
119
|
+
|
120
|
+
|
121
|
+
cordova.plugins.emiAdmobPlugin.getIabTfc(
|
122
|
+
(info) => {
|
123
|
+
// How to read consent choices
|
124
|
+
console.log("IABTCF_gdprApplies: " + info.IABTCF_gdprApplies);
|
125
|
+
console.log("IABTCF_PurposeConsents: " + info.IABTCF_PurposeConsents);
|
126
|
+
console.log("IABTCF_TCString: " + info.IABTCF_TCString);
|
127
|
+
|
128
|
+
// A small example
|
129
|
+
var fundingChoices;
|
130
|
+
|
131
|
+
fundingChoices = info.IABTCF_PurposeConsents;
|
132
|
+
if (fundingChoices === "1111111111"){
|
133
|
+
|
134
|
+
// Enable app features.
|
135
|
+
loadRewardedAd();
|
136
|
+
|
137
|
+
} else if (fundingChoices === "") {
|
138
|
+
|
139
|
+
// disable app features.
|
140
|
+
|
141
|
+
} else {
|
142
|
+
|
143
|
+
// You have to test everything yourself.
|
144
|
+
console.log(info);
|
145
|
+
|
146
|
+
}
|
147
|
+
|
148
|
+
},
|
149
|
+
(error) => {
|
150
|
+
console.log("Error: " + error);
|
151
|
+
|
152
|
+
});
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
```
|
157
|
+
|
158
|
+
|
159
|
+
# Event | callback:
|
160
|
+
### Example event code
|
161
|
+
|
162
|
+
```sh
|
163
|
+
document.addEventListener('on.appOpenAd.loaded', () => {
|
164
|
+
|
165
|
+
alert("On App Open Ad loaded");
|
166
|
+
|
167
|
+
});
|
168
|
+
|
169
|
+
```
|
170
|
+
|
171
|
+
> __Note__
|
172
|
+
### (final) cannot be changed.
|
173
|
+
|
174
|
+
## ( SDK )
|
175
|
+
- on.sdkInitialization
|
176
|
+
|
177
|
+
## ( App Open Ads )
|
178
|
+
|
179
|
+
### Event Load
|
180
|
+
|
181
|
+
- on.appOpenAd.loaded
|
182
|
+
- on.appOpenAd.failed.loaded
|
183
|
+
|
184
|
+
### Event Show
|
185
|
+
|
186
|
+
- on.appOpenAd.dismissed
|
187
|
+
- on.appOpenAd.failed.show
|
188
|
+
- on.appOpenAd.show
|
189
|
+
### NEW
|
190
|
+
- on.appOpenAd.revenue
|
191
|
+
|
192
|
+
|
193
|
+
## ( Banner Ads )
|
194
|
+
|
195
|
+
### position
|
196
|
+
|
197
|
+
- top-right
|
198
|
+
- top-center
|
199
|
+
- left
|
200
|
+
- center
|
201
|
+
- right
|
202
|
+
- bottom-center
|
203
|
+
- bottom-right
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
### size
|
208
|
+
|
209
|
+
- Anchored_adaptive
|
210
|
+
- Inline_adaptive
|
211
|
+
- BANNER
|
212
|
+
- FLUID
|
213
|
+
- LARGE_BANNER
|
214
|
+
- MEDIUM_RECTANGLE
|
215
|
+
- FULL_BANNER
|
216
|
+
- LEADERBOARD
|
217
|
+
- adaptiveWidth = number
|
218
|
+
- Smart Banners = DEPRECATED
|
219
|
+
- default: FULL_WIDTH
|
220
|
+
|
221
|
+
Note: Smart Banners = DEPRECATED ( Replaced by Adaptive_FULL_WIDTH )
|
222
|
+
|
223
|
+
|
224
|
+
### Event Load
|
225
|
+
|
226
|
+
- on.banner.load
|
227
|
+
- on.banner.failed.load
|
228
|
+
|
229
|
+
### Event Show
|
230
|
+
|
231
|
+
- on.banner.click
|
232
|
+
- on.banner.close
|
233
|
+
- on.banner.impression
|
234
|
+
- on.banner.open
|
235
|
+
### NEW
|
236
|
+
- on.banner.revenue
|
237
|
+
- on.banner.remove
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
## ( Interstitial Ads )
|
243
|
+
|
244
|
+
### Event Load
|
245
|
+
|
246
|
+
- on.interstitial.loaded
|
247
|
+
- on.interstitial.failed.load
|
248
|
+
|
249
|
+
### Event Show
|
250
|
+
|
251
|
+
- on.interstitial.click
|
252
|
+
- on.interstitial.dismissed
|
253
|
+
- on.interstitial.failed.show
|
254
|
+
- on.interstitial.impression
|
255
|
+
- on.interstitial.show
|
256
|
+
### NEW
|
257
|
+
- on.interstitial.revenue
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
## ( Rewarded Ads )
|
264
|
+
|
265
|
+
### Event Load
|
266
|
+
|
267
|
+
- on.rewarded.loaded
|
268
|
+
- on.rewarded.failed.load
|
269
|
+
|
270
|
+
|
271
|
+
### Event Show
|
272
|
+
|
273
|
+
- on.rewarded.click
|
274
|
+
- on.rewarded.dismissed
|
275
|
+
- on.rewarded.failed.show
|
276
|
+
- on.rewarded.impression
|
277
|
+
- on.rewarded.show
|
278
|
+
### NEW
|
279
|
+
- on.rewarded.revenue
|
280
|
+
- on.rewarded.ad.skip
|
281
|
+
- on.reward.userEarnedReward
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
## ( Rewarded interstitial Ads )
|
286
|
+
|
287
|
+
### Event Load
|
288
|
+
|
289
|
+
- on.rewardedInt.loaded
|
290
|
+
- on.rewardedInt.failed.load
|
291
|
+
|
292
|
+
|
293
|
+
### Event Show
|
294
|
+
|
295
|
+
- on.rewardedInt.click
|
296
|
+
- on.rewardedInt.dismissed
|
297
|
+
- on.rewardedInt.failed.show
|
298
|
+
- on.rewardedInt.impression
|
299
|
+
- on.rewardedInt.showed
|
300
|
+
### NEW
|
301
|
+
- on.rewardedInt.revenue
|
302
|
+
- on.rewardedInt.ad.skip
|
303
|
+
- on.rewardedInt.userEarnedReward
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
## Response Info
|
309
|
+
- Here is a sample output returned by responseInfo = true showing the debugging data returned for a loaded ad:
|
310
|
+
|
311
|
+
```sh
|
312
|
+
{
|
313
|
+
"Response ID": "COOllLGxlPoCFdAx4Aod-Q4A0g",
|
314
|
+
"Mediation Adapter Class Name": "com.google.ads.mediation.admob.AdMobAdapter",
|
315
|
+
"Adapter Responses": [
|
316
|
+
{
|
317
|
+
"Adapter": "com.google.ads.mediation.admob.AdMobAdapter",
|
318
|
+
"Latency": 328,
|
319
|
+
"Ad Source Name": "Reservation campaign",
|
320
|
+
"Ad Source ID": "7068401028668408324",
|
321
|
+
"Ad Source Instance Name": "[DO NOT EDIT] Publisher Test Interstitial",
|
322
|
+
"Ad Source Instance ID": "4665218928925097",
|
323
|
+
"Credentials": {},
|
324
|
+
"Ad Error": "null"
|
325
|
+
}
|
326
|
+
],
|
327
|
+
"Loaded Adapter Response": {
|
328
|
+
"Adapter": "com.google.ads.mediation.admob.AdMobAdapter",
|
329
|
+
"Latency": 328,
|
330
|
+
"Ad Source Name": "Reservation campaign",
|
331
|
+
"Ad Source ID": "7068401028668408324",
|
332
|
+
"Ad Source Instance Name": "[DO NOT EDIT] Publisher Test Interstitial",
|
333
|
+
"Ad Source Instance ID": "4665218928925097",
|
334
|
+
"Credentials": {},
|
335
|
+
"Ad Error": "null"
|
336
|
+
},
|
337
|
+
"Response Extras": {
|
338
|
+
"mediation_group_name": "Campaign"
|
339
|
+
}
|
340
|
+
}
|
341
|
+
|
342
|
+
|
343
|
+
Bundle[{max_ad_content_rating=G,
|
344
|
+
npa=1,
|
345
|
+
is_designed_for_families=0,
|
346
|
+
under_age_of_consent=0]
|
347
|
+
|
348
|
+
|
349
|
+
```
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
|
354
|
+
# Admob Mediation
|
355
|
+
<img src="https://user-images.githubusercontent.com/78555833/229587307-91a7e380-aa2d-4140-a62d-fa8e6a8dd153.png" width="500">
|
356
|
+
|
357
|
+
|
358
|
+
## get Mediation Adapter Name
|
359
|
+
|
360
|
+
responseInfo = true // (debugging)
|
361
|
+
|
362
|
+
<img src="https://user-images.githubusercontent.com/78555833/230655800-0dbc3f12-72fb-4cf3-b4e6-801704fade28.png" width="250">
|
363
|
+
|
364
|
+
|
365
|
+
|
366
|
+
## Meta Audience Network
|
367
|
+
|
368
|
+
[Integrate Meta Audience Network with bidding :](https://developers.google.com/admob/android/mediation/meta)
|
369
|
+
- (Adapter default: 6.13.7.0)
|
370
|
+
### Installation
|
371
|
+
```sh
|
372
|
+
cordova plugin add emi-indo-cordova-plugin-mediation-meta
|
373
|
+
```
|
374
|
+
|
375
|
+
- ================================
|
376
|
+
|
377
|
+
|
378
|
+
## Unity Ads
|
379
|
+
[Integrate Unity Ads with Mediation :](https://developers.google.com/admob/android/mediation/unity)
|
380
|
+
- (Adapter default: 4.6.1.0)
|
381
|
+
### Installation
|
382
|
+
```sh
|
383
|
+
cordova plugin add emi-indo-cordova-plugin-mediation-unity
|
384
|
+
```
|
385
|
+
|
386
|
+
- ================================
|
387
|
+
|
388
|
+
|
389
|
+
## AppLovin Ads
|
390
|
+
[Integrate AppLovin with Mediation :](https://developers.google.com/admob/android/mediation/applovin)
|
391
|
+
- (Adapter default: 11.8.2.0)
|
392
|
+
### Installation
|
393
|
+
```sh
|
394
|
+
cordova plugin add emi-indo-cordova-plugin-mediation-applovin
|
395
|
+
```
|
396
|
+
|
397
|
+
- ================================
|
398
|
+
|
399
|
+
|
400
|
+
## AdColony Ads
|
401
|
+
[Integrate AdColony with Mediation :](https://developers.google.com/admob/android/mediation/adcolony)
|
402
|
+
- (Adapter default: 4.8.0.1)
|
403
|
+
### Installation
|
404
|
+
```sh
|
405
|
+
cordova plugin add emi-indo-cordova-plugin-mediation-adcolony
|
406
|
+
```
|
407
|
+
|
408
|
+
- ================================
|
409
|
+
|
410
|
+
|
411
|
+
## Chartboost Ads
|
412
|
+
[Integrate Chartboost with Mediation :](https://developers.google.com/admob/android/mediation/chartboost)
|
413
|
+
- (Adapter default: 9.2.1.0)
|
414
|
+
### Installation
|
415
|
+
```sh
|
416
|
+
cordova plugin add emi-indo-cordova-plugin-mediation-chartboost
|
417
|
+
```
|
418
|
+
|
419
|
+
- ================================
|
420
|
+
|
421
|
+
|
422
|
+
## ironSource Ads
|
423
|
+
[Integrate ironSource with Mediation :](https://developers.google.com/admob/android/mediation/ironsource)
|
424
|
+
- (Adapter default: 7.2.7.0)
|
425
|
+
### Installation
|
426
|
+
```sh
|
427
|
+
cordova plugin add emi-indo-cordova-plugin-mediation-ironsource
|
428
|
+
```
|
429
|
+
|
430
|
+
|
431
|
+
|
432
|
+
## Variables name or preference name
|
433
|
+
> __Warning__
|
434
|
+
> This is so that if I don't have time to update the Mediation Adapter version later, you can do it yourself as below.
|
435
|
+
|
436
|
+
- Cordova CLI Update Adapter version with Variables
|
437
|
+
```sh
|
438
|
+
cordova plugin add emi-indo-cordova-plugin-mediation-meta --variable META_ADAPTER_VERSION="xxxxx"
|
439
|
+
```
|
440
|
+
- Update Adapter version with config.xml
|
441
|
+
```sh
|
442
|
+
<preference name="META_ADAPTER_VERSION" value="xxxxx" />
|
443
|
+
```
|
444
|
+
|
445
|
+
### Variables Name
|
446
|
+
|
447
|
+
- --variable META_ADAPTER_VERSION="xxxxx"
|
448
|
+
- --variable UNITY_ADAPTER_VERSION="xxxxx"
|
449
|
+
- --variable APPLOVIN_ADAPTER_VERSION="xxxxx"
|
450
|
+
- --variable ADCOLONY_ADAPTER_VERSION="xxxxx"
|
451
|
+
- --variable CHARTBOOST_ADAPTER_VERSION="xxxxx"
|
452
|
+
- --variable IRONSOURCE_ADAPTER_VERSION="xxxxx"
|
453
|
+
|
454
|
+
### preference name
|
455
|
+
|
456
|
+
- META_ADAPTER_VERSION
|
457
|
+
- UNITY_ADAPTER_VERSION
|
458
|
+
- APPLOVIN_ADAPTER_VERSION
|
459
|
+
- ADCOLONY_ADAPTER_VERSION
|
460
|
+
- CHARTBOOST_ADAPTER_VERSION
|
461
|
+
- IRONSOURCE_ADAPTER_VERSION
|
462
|
+
|
463
|
+
- ================================
|
464
|
+
|
465
|
+
|
466
|
+
emi-indo-cordova-plugin-admob@0.0.5
|
467
|
+
|
468
|
+
|
469
|
+
> - ## Note Release
|
470
|
+
- [emi-indo-cordova-plugin-admob@0.0.4](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/releases/tag/%400.0.4)
|
471
|
+
|
472
|
+
- [emi-indo-cordova-plugin-admob@0.0.5](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/releases/tag/v0.0.5)
|
473
|
+
|
474
|
+
<img src="https://user-images.githubusercontent.com/78555833/231241800-8834ca2a-fa95-4cc2-91ca-1478c6b3c1ef.jpg" width="250">
|
475
|
+
|
476
|
+
- [emi-indo-cordova-plugin-admob@0.0.6](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/releases/tag/v0.0.6)
|
477
|
+
|
478
|
+
|
479
|
+
### Platform Support
|
480
|
+
- Android
|
481
|
+
- IOS
|
482
|
+
|
483
|
+
|
484
|
+
## 💰Sponsor this project
|
485
|
+
[](https://paypal.me/emiindo)
|
486
|
+
|
487
|
+
|
488
|
+
## Earn more money, with other ad networks.
|
489
|
+
- ### emi-indo-cordova-plugin-fan
|
490
|
+
|
491
|
+
[Facebook Audience Network:](https://github.com/EMI-INDO/emi-indo-cordova-plugin-fan) - Ads:
|
492
|
+
|
493
|
+
- ### emi-indo-cordova-plugin-unityads
|
494
|
+
|
495
|
+
[Cordova Plugin Unity:](https://github.com/EMI-INDO/emi-indo-cordova-plugin-unityads) - Ads:
|
496
|
+
|
497
|
+
## New Open AI
|
498
|
+
|
499
|
+
- ### emi-indo-cordova-plugin-open-ai
|
500
|
+
|
501
|
+
[Cordova Plugin Open Ai:](https://github.com/EMI-INDO/emi-indo-cordova-plugin-open-ai) - Open AI:
|
502
|
+
|
503
|
+
|
504
|
+
## New Firebase Analytics
|
505
|
+
|
506
|
+
- ### emi-indo-cordova-plugin-fanalytics
|
507
|
+
|
508
|
+
[Cordova Plugin Firebase Analytics:](https://github.com/EMI-INDO/emi-indo-cordova-plugin-fanalytics) - Firebase Analytics:
|
509
|
+
|