emi-indo-cordova-plugin-admob 1.2.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/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.2.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
- [![PayPal](https://img.shields.io/badge/PayPal-00457C?style=for-the-badge&logo=paypal&logoColor=white)](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-consent)
45
- - Mediation
46
-
47
- ## Coming soon
48
- - App Open Ads ( Finished )
49
- - User Consent ( Finished ) [emi-indo-cordova-plugin-consent](https://github.com/EMI-INDO/emi-indo-cordova-plugin-consent)
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
- ## Installation
59
-
60
- ```sh
61
- cordova plugin add emi-indo-cordova-plugin-admob --variable APP_ID_ANDROID=ca-app-pub-3940256099942544~3347511713
62
- ```
63
- ### Or
64
- ```sh
65
- cordova plugin add https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob --variable APP_ID_ANDROID=ca-app-pub-3940256099942544~3347511713
66
- ```
67
- ## Remove
68
- ```sh
69
- cordova plugin rm emi-indo-cordova-plugin-admob
70
- ```
71
-
72
- ## upgrade Mobile Ads SDK
73
- [Release Notes Mobile Ads SDK:](https://developers.google.com/admob/android/rel-notes)
74
- ```sh
75
- cordova plugin add emi-indo-cordova-plugin-admob --variable APP_ID_ANDROID=ca-app-pub-3940256099942544~3347511713 --variable PLAY_SERVICES_VERSION="xxxx"
76
- ```
77
-
78
-
79
-
80
- > __Note__
81
- > - # Plugin version @1.1.9
82
-
83
- [FULL Example ](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/blob/main/example/) - index.html:
84
-
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)
90
-
91
- ### [ Advanced topics: ](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/tree/main/example/Advanced%20topics)
92
-
93
-
94
-
95
-
96
- # Event | callback:
97
- ### Example event code
98
-
99
- ```sh
100
- document.addEventListener('on.appOpenAd.loaded', () => {
101
-
102
- alert("On App Open Ad loaded");
103
-
104
- });
105
-
106
- ```
107
-
108
- > __Note__
109
- ### (final) cannot be changed.
110
-
111
- ## ( SDK )
112
- - on.sdkInitialization
113
-
114
- ## ( App Open Ads )
115
-
116
- ### Event Load
117
-
118
- - on.appOpenAd.loaded
119
- - on.appOpenAd.failed.loaded
120
-
121
- ### Event Show
122
-
123
- - on.appOpenAd.dismissed
124
- - on.appOpenAd.failed.show
125
- - on.appOpenAd.show
126
- ### NEW
127
- - on.appOpenAd.revenue
128
-
129
-
130
- ## ( Banner Ads )
131
-
132
- ### position
133
-
134
- - top-right
135
- - top-center
136
- - left
137
- - center
138
- - right
139
- - bottom-center
140
- - bottom-right
141
-
142
-
143
-
144
- ### size
145
-
146
- - Anchored_adaptive
147
- - Inline_adaptive
148
- - BANNER
149
- - FLUID
150
- - LARGE_BANNER
151
- - MEDIUM_RECTANGLE
152
- - FULL_BANNER
153
- - LEADERBOARD
154
- - adaptiveWidth = number
155
- - Smart Banners = DEPRECATED
156
- - default: Adaptive_FULL_WIDTH
157
-
158
- Note: Smart Banners = DEPRECATED ( Replaced by Adaptive_FULL_WIDTH )
159
-
160
-
161
- ### Event Load
162
-
163
- - on.banner.load
164
- - on.banner.failed.load
165
-
166
- ### Event Show
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
-
176
-
177
-
178
-
179
- ## ( Interstitial Ads )
180
-
181
- ### Event Load
182
-
183
- - on.interstitial.loaded
184
- - on.interstitial.failed.load
185
-
186
- ### Event Show
187
-
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
-
196
-
197
-
198
-
199
-
200
- ## ( Rewarded Ads )
201
-
202
- ### Event Load
203
-
204
- - on.rewarded.loaded
205
- - on.rewarded.failed.load
206
-
207
-
208
- ### Event Show
209
-
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
219
-
220
-
221
-
222
- ## ( Rewarded interstitial Ads )
223
-
224
- ### Event Load
225
-
226
- - on.rewardedInt.loaded
227
- - on.rewardedInt.failed.load
228
-
229
-
230
- ### Event Show
231
-
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
-
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
- ```
287
-
288
-
289
-
290
-
291
- # Admob Mediation
292
- <img src="https://user-images.githubusercontent.com/78555833/229587307-91a7e380-aa2d-4140-a62d-fa8e6a8dd153.png" width="500">
293
-
294
-
295
- ## get Mediation Adapter Name
296
-
297
- responseInfo = true // (debugging)
298
-
299
- <img src="https://user-images.githubusercontent.com/78555833/230655800-0dbc3f12-72fb-4cf3-b4e6-801704fade28.png" width="250">
300
-
301
-
302
-
303
- ## Meta Audience Network
304
-
305
- [Integrate Meta Audience Network with bidding :](https://developers.google.com/admob/android/mediation/meta)
306
- - (Adapter default: 6.13.7.0)
307
- ### Installation
308
- ```sh
309
- cordova plugin add emi-indo-cordova-plugin-mediation-meta
310
- ```
311
-
312
- - ================================
313
-
314
-
315
- ## Unity Ads
316
- [Integrate Unity Ads with Mediation :](https://developers.google.com/admob/android/mediation/unity)
317
- - (Adapter default: 4.6.1.0)
318
- ### Installation
319
- ```sh
320
- cordova plugin add emi-indo-cordova-plugin-mediation-unity
321
- ```
322
-
323
- - ================================
324
-
325
-
326
- ## AppLovin Ads
327
- [Integrate AppLovin with Mediation :](https://developers.google.com/admob/android/mediation/applovin)
328
- - (Adapter default: 11.8.2.0)
329
- ### Installation
330
- ```sh
331
- cordova plugin add emi-indo-cordova-plugin-mediation-applovin
332
- ```
333
-
334
- - ================================
335
-
336
-
337
- ## AdColony Ads
338
- [Integrate AdColony with Mediation :](https://developers.google.com/admob/android/mediation/adcolony)
339
- - (Adapter default: 4.8.0.1)
340
- ### Installation
341
- ```sh
342
- cordova plugin add emi-indo-cordova-plugin-mediation-adcolony
343
- ```
344
-
345
- - ================================
346
-
347
-
348
- ## Chartboost Ads
349
- [Integrate Chartboost with Mediation :](https://developers.google.com/admob/android/mediation/chartboost)
350
- - (Adapter default: 9.2.1.0)
351
- ### Installation
352
- ```sh
353
- cordova plugin add emi-indo-cordova-plugin-mediation-chartboost
354
- ```
355
-
356
- - ================================
357
-
358
-
359
- ## ironSource Ads
360
- [Integrate ironSource with Mediation :](https://developers.google.com/admob/android/mediation/ironsource)
361
- - (Adapter default: 7.2.7.0)
362
- ### Installation
363
- ```sh
364
- cordova plugin add emi-indo-cordova-plugin-mediation-ironsource
365
- ```
366
-
367
-
368
-
369
- ## Variables name or preference name
370
- > __Warning__
371
- > This is so that if I don't have time to update the Mediation Adapter version later, you can do it yourself as below.
372
-
373
- - Cordova CLI Update Adapter version with Variables
374
- ```sh
375
- cordova plugin add emi-indo-cordova-plugin-mediation-meta --variable META_ADAPTER_VERSION="xxxxx"
376
- ```
377
- - Update Adapter version with config.xml
378
- ```sh
379
- <preference name="META_ADAPTER_VERSION" value="xxxxx" />
380
- ```
381
-
382
- ### Variables Name
383
-
384
- - --variable META_ADAPTER_VERSION="xxxxx"
385
- - --variable UNITY_ADAPTER_VERSION="xxxxx"
386
- - --variable APPLOVIN_ADAPTER_VERSION="xxxxx"
387
- - --variable ADCOLONY_ADAPTER_VERSION="xxxxx"
388
- - --variable CHARTBOOST_ADAPTER_VERSION="xxxxx"
389
- - --variable IRONSOURCE_ADAPTER_VERSION="xxxxx"
390
-
391
- ### preference name
392
-
393
- - META_ADAPTER_VERSION
394
- - UNITY_ADAPTER_VERSION
395
- - APPLOVIN_ADAPTER_VERSION
396
- - ADCOLONY_ADAPTER_VERSION
397
- - CHARTBOOST_ADAPTER_VERSION
398
- - IRONSOURCE_ADAPTER_VERSION
399
-
400
- - ================================
401
-
402
-
403
- emi-indo-cordova-plugin-admob@0.0.5
404
-
405
-
406
- > - ## Note Release
407
- - [emi-indo-cordova-plugin-admob@0.0.4](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/releases/tag/%400.0.4)
408
-
409
- - [emi-indo-cordova-plugin-admob@0.0.5](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/releases/tag/v0.0.5)
410
-
411
- <img src="https://user-images.githubusercontent.com/78555833/231241800-8834ca2a-fa95-4cc2-91ca-1478c6b3c1ef.jpg" width="250">
412
-
413
- - [emi-indo-cordova-plugin-admob@0.0.6](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/releases/tag/v0.0.6)
414
-
415
-
416
- ### Platform Support
417
- - Android
418
- - IOS
419
-
420
-
421
- ## 💰Sponsor this project
422
- [![PayPal](https://img.shields.io/badge/PayPal-00457C?style=for-the-badge&logo=paypal&logoColor=white)](https://paypal.me/emiindo)
423
-
424
-
425
- ## Earn more money, with other ad networks.
426
- - ### emi-indo-cordova-plugin-fan
427
-
428
- [Facebook Audience Network:](https://github.com/EMI-INDO/emi-indo-cordova-plugin-fan) - Ads:
429
-
430
- - ### emi-indo-cordova-plugin-unityads
431
-
432
- [Cordova Plugin Unity:](https://github.com/EMI-INDO/emi-indo-cordova-plugin-unityads) - Ads:
433
-
434
- ## New Open AI
435
-
436
- - ### emi-indo-cordova-plugin-open-ai
437
-
438
- [Cordova Plugin Open Ai:](https://github.com/EMI-INDO/emi-indo-cordova-plugin-open-ai) - Open AI:
439
-
440
-
441
- ## New Firebase Analytics
442
-
443
- - ### emi-indo-cordova-plugin-fanalytics
444
-
445
- [Cordova Plugin Firebase Analytics:](https://github.com/EMI-INDO/emi-indo-cordova-plugin-fanalytics) - Firebase Analytics:
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
+ [![PayPal](https://img.shields.io/badge/PayPal-00457C?style=for-the-badge&logo=paypal&logoColor=white)](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
+ [![PayPal](https://img.shields.io/badge/PayPal-00457C?style=for-the-badge&logo=paypal&logoColor=white)](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
+