emi-indo-cordova-plugin-admob 1.0.9 → 1.1.9
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/ISSUE_TEMPLATE/bug_report.md +124 -0
- package/README.md +120 -456
- package/example/Advanced topics/auto_load_and_show.html +94 -0
- package/example/{consent.html → Advanced topics/consent.html } +51 -22
- package/example/Advanced topics/globalSettings.html +39 -0
- package/example/Advanced topics/targeting.html +78 -0
- package/example/app_open_ads.html +151 -0
- package/example/banner_ads.html +248 -0
- package/example/interstitial_ads.html +166 -0
- package/example/rewarded_ads.html +185 -0
- package/example/rewarded_interstitial_ads.html +184 -0
- package/package.json +1 -1
- package/plugin.xml +8 -5
- package/src/android/emiAdmobPlugin.java +1 -1
- package/www/emiAdmobPlugin.js +20 -16
- package/example/index.html +0 -338
package/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# emi-indo-cordova-plugin-admob
|
2
2
|
Cordova Plugin Admob Android and IOS
|
3
3
|
|
4
|
-
### Mobile Ads SDK (Android: 22.
|
4
|
+
### Mobile Ads SDK (Android: 22.2.0) [Release Notes:](https://developers.google.com/admob/android/rel-notes)
|
5
5
|
|
6
6
|
### Mobile Ads SDK (IOS: 10.3.0) [Release Notes:](https://developers.google.com/admob/ios/rel-notes)
|
7
7
|
|
@@ -26,6 +26,11 @@
|
|
26
26
|
## [Check all release notes:](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/releases/)
|
27
27
|
|
28
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
|
+
|
29
34
|
## Features
|
30
35
|
|
31
36
|
- SDK initialize
|
@@ -44,10 +49,12 @@
|
|
44
49
|
- User Consent ( Finished ) [emi-indo-cordova-plugin-consent](https://github.com/EMI-INDO/emi-indo-cordova-plugin-consent)
|
45
50
|
- Mediation ( Finished )
|
46
51
|
- https://developers.google.com/admob/android/native/start
|
47
|
-
- https://developers.google.com/admob/android/impression-level-ad-revenue
|
52
|
+
- https://developers.google.com/admob/android/impression-level-ad-revenue ( Finished ) v1.1.9
|
48
53
|
- https://developers.google.com/admob/android/ssv
|
49
54
|
|
50
55
|
|
56
|
+
|
57
|
+
|
51
58
|
## Installation
|
52
59
|
|
53
60
|
```sh
|
@@ -68,435 +75,31 @@ cordova plugin rm emi-indo-cordova-plugin-admob
|
|
68
75
|
cordova plugin add emi-indo-cordova-plugin-admob --variable APP_ID_ANDROID=ca-app-pub-3940256099942544~3347511713 --variable PLAY_SERVICES_VERSION="xxxx"
|
69
76
|
```
|
70
77
|
|
71
|
-
## Response Info
|
72
|
-
- Here is a sample output returned by responseInfo = true showing the debugging data returned for a loaded ad:
|
73
78
|
|
74
|
-
```sh
|
75
|
-
{
|
76
|
-
"Response ID": "COOllLGxlPoCFdAx4Aod-Q4A0g",
|
77
|
-
"Mediation Adapter Class Name": "com.google.ads.mediation.admob.AdMobAdapter",
|
78
|
-
"Adapter Responses": [
|
79
|
-
{
|
80
|
-
"Adapter": "com.google.ads.mediation.admob.AdMobAdapter",
|
81
|
-
"Latency": 328,
|
82
|
-
"Ad Source Name": "Reservation campaign",
|
83
|
-
"Ad Source ID": "7068401028668408324",
|
84
|
-
"Ad Source Instance Name": "[DO NOT EDIT] Publisher Test Interstitial",
|
85
|
-
"Ad Source Instance ID": "4665218928925097",
|
86
|
-
"Credentials": {},
|
87
|
-
"Ad Error": "null"
|
88
|
-
}
|
89
|
-
],
|
90
|
-
"Loaded Adapter Response": {
|
91
|
-
"Adapter": "com.google.ads.mediation.admob.AdMobAdapter",
|
92
|
-
"Latency": 328,
|
93
|
-
"Ad Source Name": "Reservation campaign",
|
94
|
-
"Ad Source ID": "7068401028668408324",
|
95
|
-
"Ad Source Instance Name": "[DO NOT EDIT] Publisher Test Interstitial",
|
96
|
-
"Ad Source Instance ID": "4665218928925097",
|
97
|
-
"Credentials": {},
|
98
|
-
"Ad Error": "null"
|
99
|
-
},
|
100
|
-
"Response Extras": {
|
101
|
-
"mediation_group_name": "Campaign"
|
102
|
-
}
|
103
|
-
}
|
104
|
-
|
105
|
-
|
106
|
-
Bundle[{max_ad_content_rating=G,
|
107
|
-
npa=1,
|
108
|
-
is_designed_for_families=0,
|
109
|
-
under_age_of_consent=0]
|
110
|
-
|
111
|
-
|
112
|
-
```
|
113
|
-
|
114
|
-
|
115
|
-
### As suggested by Google, when the SDK initializes this plugin automatically takes the Global Settings and Targeting values.
|
116
|
-
|
117
|
-
### Global Settings
|
118
|
-
```sh
|
119
|
-
// Instruction: https://developers.google.com/admob/android/global-settings
|
120
|
-
|
121
|
-
cordova.plugins.emiAdmobPlugin.globalSettings(
|
122
|
-
|
123
|
-
setAppMuted = true, // Type Boolean default: true
|
124
|
-
setAppVolume = 1.0, // Type float
|
125
|
-
enableSameAppKey = false, // Type Boolean default: false
|
126
|
-
|
127
|
-
// Optional
|
128
|
-
(info) => { alert(info) },
|
129
|
-
(error) => { alert(error)
|
130
|
-
|
131
|
-
});
|
132
|
-
```
|
133
|
-
|
134
|
-
### Targeting
|
135
|
-
|
136
|
-
> __Note__
|
137
|
-
> - ## You can see the value when the ad is loaded, set responseInfo = true
|
138
|
-
|
139
|
-
```sh
|
140
|
-
// Instruction: https://developers.google.com/admob/android/targeting
|
141
|
-
// Overview: https://developers.google.com/android/reference/com/google/android/gms/ads/RequestConfiguration
|
142
|
-
|
143
|
-
cordova.plugins.emiAdmobPlugin.targeting(
|
144
|
-
TagForChildDirectedTreatment = 0, // value: 0 | -1 | 1
|
145
|
-
TagForUnderAgeOfConsent = 0, // // value: 0 | -1 | 1
|
146
|
-
MaxAdContentRating = "G", // value: G | MA | PG | T | ""
|
147
|
-
|
148
|
-
// Optional
|
149
|
-
(info) => { alert(info) },
|
150
|
-
(error) => { alert(error)
|
151
|
-
|
152
|
-
});
|
153
|
-
|
154
|
-
|
155
|
-
// (TagForChildDirectedTreatment)
|
156
|
-
// Type number:
|
157
|
-
// value: 0 | -1 | 1
|
158
|
-
// (value description)
|
159
|
-
// 0 = FALSE
|
160
|
-
// 1 = TRUE
|
161
|
-
// -1 = UNSPECIFIED
|
162
|
-
// (if else/undefined = false/0)
|
163
|
-
|
164
|
-
///////////////////////////////
|
165
|
-
|
166
|
-
// (TagForUnderAgeOfConsent)
|
167
|
-
// Type number:
|
168
|
-
// value: 0 | -1 | 1
|
169
|
-
// (value description)
|
170
|
-
// 0 = FALSE
|
171
|
-
// 1 = TRUE
|
172
|
-
// -1 = UNSPECIFIED
|
173
|
-
// (if else/undefined = false/0)
|
174
|
-
|
175
|
-
//////////////////////////////
|
176
|
-
|
177
|
-
// (MaxAdContentRating)
|
178
|
-
// Type String:
|
179
|
-
// value: G | MA | PG | T | ""
|
180
|
-
// (value description)
|
181
|
-
// https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/max-ad-content-rating
|
182
|
-
// (if else/undefined/"" = NULL)
|
183
|
-
|
184
|
-
|
185
|
-
```
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
## deviceready
|
190
|
-
|
191
|
-
[Example ](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/blob/main/example/index.html) - index.html:
|
192
79
|
|
80
|
+
> __Note__
|
81
|
+
> - # Plugin version @1.1.9
|
193
82
|
|
194
|
-
|
83
|
+
[FULL Example ](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/blob/main/example/) - index.html:
|
195
84
|
|
196
|
-
|
197
|
-
|
85
|
+
### [ App Open Ad code example: ](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/blob/main/example/app_open_ads.html)
|
86
|
+
### [ Banner Ad code example: ](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/blob/main/example/banner_ads.html)
|
87
|
+
### [ Interstitial Ad code example: ](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/blob/main/example/interstitial_ads.html)
|
88
|
+
### [ Rewarded interstitial Ad code example: ](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/blob/main/example/rewarded_interstitial_ads.html)
|
89
|
+
### [ Rewarded Ad code example: ](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/blob/main/example/rewarded_ads.html)
|
198
90
|
|
199
|
-
cordova
|
200
|
-
// Optional
|
201
|
-
(info) => { alert(info) },
|
202
|
-
(error) => { alert(error)
|
91
|
+
### [ Advanced topics: ](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/tree/main/example/Advanced%20topics)
|
203
92
|
|
204
|
-
});
|
205
|
-
|
206
|
-
|
207
|
-
//(Auto Loaded during SDK initialize and ad loaded)
|
208
93
|
|
209
|
-
cordova.plugins.emiAdmobPlugin.targeting(
|
210
|
-
TagForChildDirectedTreatment = 0, // value: 0 | -1 | 1
|
211
|
-
TagForUnderAgeOfConsent = 0, // // value: 0 | -1 | 1
|
212
|
-
MaxAdContentRating = "G", // value: G | MA | PG | T | ""
|
213
|
-
|
214
|
-
// Optional
|
215
|
-
(info) => { console.log(info)},
|
216
|
-
(error) => { alert(error)
|
217
|
-
|
218
|
-
});
|
219
|
-
|
220
|
-
|
221
|
-
cordova.plugins.emiAdmobPlugin.globalSettings(
|
222
|
-
|
223
|
-
setAppMuted = true, // Type Boolean default: true
|
224
|
-
setAppVolume = 1.0, // Type float
|
225
|
-
enableSameAppKey = false, // Type Boolean default: false
|
226
|
-
|
227
|
-
// Optional
|
228
|
-
(info) => { console.log(info) },
|
229
|
-
(error) => { alert(error)
|
230
|
-
|
231
|
-
});
|
232
|
-
|
233
|
-
document.addEventListener('on.SdkInitializationComplete', () => {
|
234
|
-
|
235
|
-
alert("on Sdk Initialization Complete");
|
236
|
-
|
237
|
-
});
|
238
|
-
|
239
|
-
|
240
|
-
```
|
241
|
-
|
242
|
-
|
243
|
-
## App Open Ads
|
244
|
-
|
245
|
-
> __Note__
|
246
|
-
### Variable name and index (final) cannot be changed.
|
247
|
-
- AdUnitId | index 0
|
248
|
-
- npa | index 1
|
249
|
-
- responseInfo | index 2
|
250
|
-
|
251
|
-
```sh
|
252
|
-
// load App Open Ad
|
253
|
-
|
254
|
-
let loadAppOpenAd = () => {
|
255
|
-
cordova.plugins.emiAdmobPlugin.loadAppOpenAd(
|
256
|
-
AdUnitId = "ca-app-pub-3940256099942544/3419835294",
|
257
|
-
npa = "1", // String | 0 | 1
|
258
|
-
responseInfo = true, // boolean
|
259
|
-
// Optional
|
260
|
-
(info) => { alert(info) },
|
261
|
-
(error) => { alert(error)
|
262
|
-
|
263
|
-
});
|
264
|
-
}
|
265
|
-
|
266
|
-
// call loadAppOpenAd();
|
267
|
-
|
268
|
-
// Show App Open Ad
|
269
|
-
|
270
|
-
let showAppOpenAd = () => {
|
271
|
-
cordova.plugins.emiAdmobPlugin.showAppOpenAd();
|
272
|
-
}
|
273
|
-
|
274
|
-
// call showAppOpenAd();
|
275
|
-
|
276
|
-
```
|
277
|
-
|
278
|
-
|
279
|
-
## Banner Ads
|
280
|
-
|
281
|
-
> __Note__
|
282
|
-
### Variable name and index (final) cannot be changed.
|
283
|
-
- AdUnitId | index 0
|
284
|
-
- npa | index 1
|
285
|
-
- position | index 2
|
286
|
-
- size | index 3
|
287
|
-
- adaptiveWidth | index 4
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
```sh
|
292
|
-
/// setting banner size:
|
293
|
-
/*
|
294
|
-
BANNER
|
295
|
-
FLUID
|
296
|
-
LARGE_BANNER
|
297
|
-
MEDIUM_RECTANGLE
|
298
|
-
FULL_BANNER
|
299
|
-
LEADERBOARD
|
300
|
-
(Smart Banners = DEPRECATED)
|
301
|
-
Inline_adaptive
|
302
|
-
Anchored_adaptive
|
303
|
-
default: Anchored_FULL_WIDTH
|
304
|
-
|
305
|
-
adaptiveWidth = 320 // number (only adaptive banner)
|
306
|
-
|
307
|
-
*/
|
308
|
-
/// setting banner position:
|
309
|
-
/*
|
310
|
-
top-right
|
311
|
-
top-center
|
312
|
-
left
|
313
|
-
center
|
314
|
-
right
|
315
|
-
bottom-center
|
316
|
-
bottom-right
|
317
|
-
default: "bottom-left"
|
318
|
-
*/
|
319
|
-
|
320
|
-
|
321
|
-
// Banner Adaptive
|
322
|
-
|
323
|
-
let showBannerAdaptive = () => {
|
324
|
-
cordova.plugins.emiAdmobPlugin.showBannerAd(
|
325
|
-
AdUnitId = "ca-app-pub-3940256099942544/6300978111",
|
326
|
-
npa = "1", // String | 0 | 1
|
327
|
-
position = "bottom-center",
|
328
|
-
size = "Anchored_FULL_WIDTH", // | Inline_adaptive | Anchored_adaptive
|
329
|
-
adaptiveWidth = 320,
|
330
|
-
responseInfo = true, // boolean (debugging)
|
331
|
-
|
332
|
-
// Optional
|
333
|
-
(info) => { alert(info) },
|
334
|
-
(error) => { alert(error)
|
335
|
-
|
336
|
-
});
|
337
|
-
}
|
338
|
-
|
339
|
-
// call showBannerAdaptive();
|
340
|
-
|
341
|
-
// not Adaptive banner
|
342
|
-
|
343
|
-
let showBannerNotAdaptive = () => {
|
344
|
-
cordova.plugins.emiAdmobPlugin.showBannerAd(
|
345
|
-
AdUnitId = "ca-app-pub-3940256099942544/6300978111",
|
346
|
-
npa = "1", // String | 0 | 1
|
347
|
-
position = "bottom-center",
|
348
|
-
size = "FLUID",
|
349
|
-
responseInfo = true, // boolean (debugging)
|
350
|
-
|
351
|
-
// Optional
|
352
|
-
(info) => { alert(info) },
|
353
|
-
(error) => { alert(error)
|
354
|
-
|
355
|
-
});
|
356
|
-
}
|
357
|
-
|
358
|
-
// call showBannerNotAdaptive();
|
359
|
-
|
360
|
-
// Remove Banner
|
361
|
-
|
362
|
-
let removeBannerAd = () => {
|
363
|
-
cordova.plugins.emiAdmobPlugin.removeBannerAd();
|
364
|
-
}
|
365
|
-
|
366
|
-
// call removeBannerAd();
|
367
|
-
|
368
|
-
```
|
369
|
-
[Banner ads event](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob#-banner-ads-) - callback:
|
370
|
-
|
371
|
-
|
372
|
-
## Interstitial Ads
|
373
|
-
|
374
|
-
> __Note__
|
375
|
-
### Variable name and index (final) cannot be changed.
|
376
|
-
- AdUnitId | index 0
|
377
|
-
- npa | index 1
|
378
|
-
- responseInfo | index 2
|
379
|
-
|
380
|
-
```sh
|
381
|
-
// Load Interstitial Ad
|
382
|
-
|
383
|
-
let loadInterstitialAd = () => {
|
384
|
-
cordova.plugins.emiAdmobPlugin.loadInterstitialAd(
|
385
|
-
AdUnitId = "ca-app-pub-3940256099942544/1033173712",
|
386
|
-
npa = "1", // String | 0 | 1
|
387
|
-
responseInfo = true, // boolean (debugging)
|
388
|
-
|
389
|
-
// Optional
|
390
|
-
(info) => { alert(info) },
|
391
|
-
(error) => { alert(error)
|
392
|
-
|
393
|
-
});
|
394
|
-
}
|
395
|
-
|
396
|
-
// call loadInterstitialAd();
|
397
|
-
|
398
|
-
// Show Interstitial Ad
|
399
|
-
|
400
|
-
let showInterstitialAd = () => {
|
401
|
-
cordova.plugins.emiAdmobPlugin.showInterstitialAd();
|
402
|
-
}
|
403
|
-
|
404
|
-
// call showInterstitialAd();
|
405
|
-
|
406
|
-
```
|
407
|
-
|
408
|
-
[Interstitial ads event](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob#-interstitial-ads-) - callback:
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
## Rewarded Ads
|
413
|
-
|
414
|
-
> __Note__
|
415
|
-
### Variable name and index (final) cannot be changed.
|
416
|
-
- AdUnitId | index 0
|
417
|
-
- npa | index 1
|
418
|
-
- responseInfo | index 2
|
419
|
-
|
420
|
-
```sh
|
421
|
-
|
422
|
-
// Load Rewarded Ad
|
423
|
-
|
424
|
-
let loadRewardedAd = () => {
|
425
|
-
cordova.plugins.emiAdmobPlugin.loadRewardedAd(
|
426
|
-
AdUnitId = "ca-app-pub-3940256099942544/5224354917",
|
427
|
-
npa = "1", // String | 0 | 1
|
428
|
-
responseInfo = true, // boolean (debugging)
|
429
|
-
// Optional
|
430
|
-
(info) => { alert(info) },
|
431
|
-
(error) => { alert(error)
|
432
|
-
|
433
|
-
});
|
434
|
-
}
|
435
|
-
|
436
|
-
// call loadRewardedAd();
|
437
|
-
|
438
|
-
// Show Rewarded Ad
|
439
|
-
|
440
|
-
let showRewardedAd = () => {
|
441
|
-
cordova.plugins.emiAdmobPlugin.showRewardedAd();
|
442
|
-
}
|
443
|
-
|
444
|
-
// call showRewardedAd();
|
445
|
-
|
446
|
-
|
447
|
-
```
|
448
|
-
|
449
|
-
[Rewarded ads event](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob#-rewarded-ads-) - callback:
|
450
|
-
|
451
|
-
|
452
|
-
## Rewarded interstitial Ads
|
453
|
-
|
454
|
-
> __Note__
|
455
|
-
### Variable name and index (final) cannot be changed.
|
456
|
-
- AdUnitId | index 0
|
457
|
-
- npa | index 1
|
458
|
-
- responseInfo | index 2
|
459
|
-
|
460
|
-
```sh
|
461
|
-
|
462
|
-
// load Rewarded Interstitial Ad
|
463
|
-
|
464
|
-
let loadRewardedInterstitialAd = () => {
|
465
|
-
cordova.plugins.emiAdmobPlugin.loadRewardedInterstitialAd(
|
466
|
-
AdUnitId = "ca-app-pub-3940256099942544/5354046379",
|
467
|
-
npa = "1", // String | 0 | 1
|
468
|
-
responseInfo = true, // boolean (debugging)
|
469
|
-
// Optional
|
470
|
-
(info) => { alert(info) },
|
471
|
-
(error) => { alert(error)
|
472
|
-
|
473
|
-
});
|
474
|
-
}
|
475
|
-
|
476
|
-
// call loadRewardedInterstitialAd();
|
477
|
-
|
478
|
-
// Show Rewarded Interstitial Ad
|
479
|
-
|
480
|
-
const showRewardedInterstitialAd = () => {
|
481
|
-
cordova.plugins.emiAdmobPlugin.showRewardedInterstitialAd();
|
482
|
-
}
|
483
|
-
|
484
|
-
// cal showRewardedInterstitialAd();
|
485
|
-
|
486
|
-
|
487
|
-
```
|
488
|
-
|
489
|
-
[Rewarded interstitial ads event](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob#-rewarded-ads-) - callback:
|
490
|
-
|
491
94
|
|
492
95
|
|
493
96
|
# Event | callback:
|
494
|
-
### event code
|
97
|
+
### Example event code
|
495
98
|
|
496
99
|
```sh
|
497
|
-
document.addEventListener('on.
|
100
|
+
document.addEventListener('on.appOpenAd.loaded', () => {
|
498
101
|
|
499
|
-
alert("
|
102
|
+
alert("On App Open Ad loaded");
|
500
103
|
|
501
104
|
});
|
502
105
|
|
@@ -506,21 +109,22 @@ alert("on.banner Ad Loaded");
|
|
506
109
|
### (final) cannot be changed.
|
507
110
|
|
508
111
|
## ( SDK )
|
509
|
-
- on.
|
510
|
-
|
112
|
+
- on.sdkInitialization
|
511
113
|
|
512
114
|
## ( App Open Ads )
|
513
115
|
|
514
116
|
### Event Load
|
515
117
|
|
516
|
-
- on.
|
517
|
-
- on.
|
118
|
+
- on.appOpenAd.loaded
|
119
|
+
- on.appOpenAd.failed.loaded
|
518
120
|
|
519
121
|
### Event Show
|
520
122
|
|
521
|
-
- on.
|
522
|
-
- on.
|
523
|
-
- on.
|
123
|
+
- on.appOpenAd.dismissed
|
124
|
+
- on.appOpenAd.failed.show
|
125
|
+
- on.appOpenAd.show
|
126
|
+
### NEW
|
127
|
+
- on.appOpenAd.revenue
|
524
128
|
|
525
129
|
|
526
130
|
## ( Banner Ads )
|
@@ -549,20 +153,26 @@ alert("on.banner Ad Loaded");
|
|
549
153
|
- LEADERBOARD
|
550
154
|
- adaptiveWidth = number
|
551
155
|
- Smart Banners = DEPRECATED
|
552
|
-
- default:
|
156
|
+
- default: Adaptive_FULL_WIDTH
|
553
157
|
|
158
|
+
Note: Smart Banners = DEPRECATED ( Replaced by Adaptive_FULL_WIDTH )
|
554
159
|
|
555
160
|
|
161
|
+
### Event Load
|
556
162
|
|
557
|
-
|
163
|
+
- on.banner.load
|
164
|
+
- on.banner.failed.load
|
558
165
|
|
559
|
-
|
560
|
-
- on.bannerAdClosed
|
561
|
-
- on.bannerAdFailedToLoad
|
562
|
-
- on.bannerAdImpression
|
563
|
-
- on.bannerAdLoaded
|
564
|
-
- on.bannerAdOpened
|
166
|
+
### Event Show
|
565
167
|
|
168
|
+
- on.banner.click
|
169
|
+
- on.banner.close
|
170
|
+
- on.banner.impression
|
171
|
+
- on.banner.open
|
172
|
+
### NEW
|
173
|
+
- on.banner.revenue
|
174
|
+
- on.banner.remove
|
175
|
+
|
566
176
|
|
567
177
|
|
568
178
|
|
@@ -570,16 +180,19 @@ alert("on.banner Ad Loaded");
|
|
570
180
|
|
571
181
|
### Event Load
|
572
182
|
|
573
|
-
- on.
|
574
|
-
- on.
|
183
|
+
- on.interstitial.loaded
|
184
|
+
- on.interstitial.failed.load
|
575
185
|
|
576
186
|
### Event Show
|
577
187
|
|
578
|
-
- on.
|
579
|
-
- on.
|
580
|
-
- on.
|
581
|
-
- on.
|
582
|
-
- on.
|
188
|
+
- on.interstitial.click
|
189
|
+
- on.interstitial.dismissed
|
190
|
+
- on.interstitial.failed.show
|
191
|
+
- on.interstitial.impression
|
192
|
+
- on.interstitial.show
|
193
|
+
### NEW
|
194
|
+
- on.interstitial.revenue
|
195
|
+
|
583
196
|
|
584
197
|
|
585
198
|
|
@@ -588,18 +201,21 @@ alert("on.banner Ad Loaded");
|
|
588
201
|
|
589
202
|
### Event Load
|
590
203
|
|
591
|
-
- on.
|
592
|
-
- on.
|
204
|
+
- on.rewarded.loaded
|
205
|
+
- on.rewarded.failed.load
|
593
206
|
|
594
207
|
|
595
208
|
### Event Show
|
596
209
|
|
597
|
-
- on.
|
598
|
-
- on.
|
599
|
-
- on.
|
600
|
-
- on.
|
601
|
-
- on.
|
602
|
-
|
210
|
+
- on.rewarded.click
|
211
|
+
- on.rewarded.dismissed
|
212
|
+
- on.rewarded.failed.show
|
213
|
+
- on.rewarded.impression
|
214
|
+
- on.rewarded.show
|
215
|
+
### NEW
|
216
|
+
- on.rewarded.revenue
|
217
|
+
- on.rewarded.ad.skip
|
218
|
+
- on.reward.userEarnedReward
|
603
219
|
|
604
220
|
|
605
221
|
|
@@ -607,19 +223,67 @@ alert("on.banner Ad Loaded");
|
|
607
223
|
|
608
224
|
### Event Load
|
609
225
|
|
610
|
-
- on.
|
611
|
-
- on.
|
226
|
+
- on.rewardedInt.loaded
|
227
|
+
- on.rewardedInt.failed.load
|
612
228
|
|
613
229
|
|
614
230
|
### Event Show
|
615
231
|
|
616
|
-
- on.
|
617
|
-
- on.
|
618
|
-
- on.
|
619
|
-
- on.
|
620
|
-
- on.
|
621
|
-
|
232
|
+
- on.rewardedInt.click
|
233
|
+
- on.rewardedInt.dismissed
|
234
|
+
- on.rewardedInt.failed.show
|
235
|
+
- on.rewardedInt.impression
|
236
|
+
- on.rewardedInt.showed
|
237
|
+
### NEW
|
238
|
+
- on.rewardedInt.revenue
|
239
|
+
- on.rewardedInt.ad.skip
|
240
|
+
- on.rewardedInt.userEarnedReward
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
## Response Info
|
246
|
+
- Here is a sample output returned by responseInfo = true showing the debugging data returned for a loaded ad:
|
247
|
+
|
248
|
+
```sh
|
249
|
+
{
|
250
|
+
"Response ID": "COOllLGxlPoCFdAx4Aod-Q4A0g",
|
251
|
+
"Mediation Adapter Class Name": "com.google.ads.mediation.admob.AdMobAdapter",
|
252
|
+
"Adapter Responses": [
|
253
|
+
{
|
254
|
+
"Adapter": "com.google.ads.mediation.admob.AdMobAdapter",
|
255
|
+
"Latency": 328,
|
256
|
+
"Ad Source Name": "Reservation campaign",
|
257
|
+
"Ad Source ID": "7068401028668408324",
|
258
|
+
"Ad Source Instance Name": "[DO NOT EDIT] Publisher Test Interstitial",
|
259
|
+
"Ad Source Instance ID": "4665218928925097",
|
260
|
+
"Credentials": {},
|
261
|
+
"Ad Error": "null"
|
262
|
+
}
|
263
|
+
],
|
264
|
+
"Loaded Adapter Response": {
|
265
|
+
"Adapter": "com.google.ads.mediation.admob.AdMobAdapter",
|
266
|
+
"Latency": 328,
|
267
|
+
"Ad Source Name": "Reservation campaign",
|
268
|
+
"Ad Source ID": "7068401028668408324",
|
269
|
+
"Ad Source Instance Name": "[DO NOT EDIT] Publisher Test Interstitial",
|
270
|
+
"Ad Source Instance ID": "4665218928925097",
|
271
|
+
"Credentials": {},
|
272
|
+
"Ad Error": "null"
|
273
|
+
},
|
274
|
+
"Response Extras": {
|
275
|
+
"mediation_group_name": "Campaign"
|
276
|
+
}
|
277
|
+
}
|
278
|
+
|
622
279
|
|
280
|
+
Bundle[{max_ad_content_rating=G,
|
281
|
+
npa=1,
|
282
|
+
is_designed_for_families=0,
|
283
|
+
under_age_of_consent=0]
|
284
|
+
|
285
|
+
|
286
|
+
```
|
623
287
|
|
624
288
|
|
625
289
|
|