emi-indo-cordova-plugin-admob 1.5.4 → 1.5.6

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.
@@ -1,7 +1,3 @@
1
1
  {
2
- "xml.downloadExternalResources.enabled": true,
3
- "C_Cpp.clang_format_style": "file",
4
- "C_Cpp.formatting": "ClangFormat",
5
- "editor.formatOnSave": true
6
-
2
+ "xml.downloadExternalResources.enabled": true
7
3
  }
package/README.md CHANGED
@@ -3,8 +3,8 @@
3
3
  # emi-indo-cordova-plugin-admob
4
4
  Cordova Plugin Admob Android and IOS
5
5
 
6
- ### Mobile Ads SDK (Android: 23.4.0) [Release Notes:](https://developers.google.com/admob/android/rel-notes)
7
- ### User Messaging Platform (UMP Android: 3.0.0) [Release Notes:](https://developers.google.com/admob/android/privacy/release-notes)
6
+ ### Mobile Ads SDK (Android: 23.5.0) [Release Notes:](https://developers.google.com/admob/android/rel-notes)
7
+ ### User Messaging Platform (UMP Android: 3.1.0) [Release Notes:](https://developers.google.com/admob/android/privacy/release-notes)
8
8
 
9
9
  ### Mobile Ads SDK (IOS: 11.10.0) [Release Notes:](https://developers.google.com/admob/ios/rel-notes)
10
10
 
@@ -12,6 +12,8 @@
12
12
  ### IAB Europe Transparency & Consent Framework (CPM: 2.2.0)
13
13
 
14
14
 
15
+ ## New example
16
+ - https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/tree/main/example/www
15
17
 
16
18
 
17
19
  ## Minimum Cordova Engines
@@ -21,7 +23,7 @@
21
23
 
22
24
  ## IOS Ad Support IOS 18 *
23
25
  > [!WARNING]
24
- > - emi-indo-cordova-plugin-admob@1.5.2
26
+ > - emi-indo-cordova-plugin-admob@1.5.2 or higher
25
27
  > - Minimum supported Xcode version up to 15.3 or higher
26
28
  > - minimum deployment-target: 12.2
27
29
  ## Minimum macOS | Xcode, and others
@@ -91,17 +93,7 @@ https://developers.google.com/admob/ios/quick-start
91
93
 
92
94
  ## [Check all release notes:](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/releases/)
93
95
 
94
- > [!WARNING]
95
- > WARNING options configuration was previously an array [], now v.1.4.9 or later must be an object{}
96
- > example
97
- ```
98
- previous example
99
- [ adUnitId = App_Open_ID, autoShow = true ] // Deprecated
100
- now
101
- { adUnitId: App_Open_ID, autoShow: true }
102
96
 
103
- cordova.plugins.emiAdmobPlugin.loadAppOpenAd({ adUnitId: App_Open_ID, autoShow: true });
104
- ```
105
97
 
106
98
  ## Features
107
99
  <details>
@@ -124,8 +116,19 @@ now
124
116
 
125
117
  ## Installation
126
118
 
119
+ - Only platform Android
120
+ ```sh
121
+ cordova plugin add emi-indo-cordova-plugin-admob --save --variable APP_ID_ANDROID=ca-app-pub-xxx~xxx
122
+ ```
123
+
124
+ - Only platform IOS
127
125
  ```sh
128
- cordova plugin add emi-indo-cordova-plugin-admob --save --variable APP_ID_ANDROID=ca-app-pub-xxx~xxx --variable APP_ID_IOS=ca-app-pub-xxx~xxx
126
+ cordova plugin add emi-indo-cordova-plugin-admob --save --variable APP_ID_IOS=ca-app-pub-xxx~xxx
127
+ ```
128
+
129
+ - Platform Both
130
+ ```sh
131
+ cordova plugin add emi-indo-cordova-plugin-admob --save --variable APP_ID_ANDROID=ca-app-pub-xxx~xxx --variable APP_ID_IOS=ca-app-pub-xxx~xxx
129
132
  ```
130
133
 
131
134
  ## Remove
@@ -140,7 +143,8 @@ cordova plugin rm emi-indo-cordova-plugin-admob
140
143
 
141
144
  ## Import the Mobile Ads SDK IOS
142
145
  ### Then from the command line run:
143
- - cd platforms/ios
146
+ - cd platforms/ios
147
+ - Then run cordova prepare
144
148
  ### Then from the command line run:
145
149
  - pod install --repo-update
146
150
 
@@ -177,7 +181,7 @@ console.log("On Sdk Initialization version: " + sdkVersion);
177
181
  // Support Platform: Android | IOS
178
182
  cordova.plugins.emiAdmobPlugin.globalSettings({config_globalSettings}); // Optional
179
183
  cordova.plugins.emiAdmobPlugin.targeting({config_Targeting}); // Optional
180
- // UMP SDK 2.1.0
184
+ // UMP SDK 3.1.0
181
185
  cordova.plugins.emiAdmobPlugin.getConsentRequest(); // (Platform: Both) // Deprecated
182
186
  cordova.plugins.emiAdmobPlugin.consentReset(); // (Platform: Both) // Optional
183
187
  cordova.plugins.emiAdmobPlugin.showPrivacyOptionsForm(); // (Platform: Both) // Optional
@@ -207,13 +211,14 @@ document.addEventListener('on.sdkInitialization', (data) => {
207
211
  // JSON.stringify(data)
208
212
  const sdkVersion = data.version;
209
213
  // const adAdapter = data.adapters;
210
- // const conStatus = data.consentStatus;
214
+ const conStatus = data.consentStatus;
211
215
  // const gdprApplie = data.gdprApplies;
212
216
  // const purposeConsent = data.purposeConsents;
213
217
  // const vendorConsents = data.vendorConsents;
214
218
  // const conTCString = data.consentTCString;
215
219
  // const additionalConsent = data.additionalConsent;
216
220
  console.log("On Sdk Initialization version: " + data.consentStatus);
221
+ console.log("On Consent Status: " + conStatus);
217
222
 
218
223
  });
219
224
 
@@ -281,95 +286,6 @@ document.addEventListener('on.TCString.expired', () => {
281
286
 
282
287
 
283
288
 
284
- ## Global Variable adunitId
285
-
286
- ```
287
- <script>
288
- Ad format Demo ad unit ID
289
- // https://developers.google.com/admob/android/test-ads
290
- // https://developers.google.com/admob/ios/test-ads
291
-
292
- var App_Open_ID;
293
- var Banner_ID;
294
- var Interstitial_ID;
295
- var Rewarded_ID;
296
- var Rewarded_Interstitial_ID;
297
-
298
- if (window.cordova.platformId === 'ios') {
299
-
300
- App_Open_ID = 'ca-app-pub-3940256099942544/5575463023';
301
- Banner_ID = 'ca-app-pub-3940256099942544/2934735716';
302
- Interstitial_ID = 'ca-app-pub-3940256099942544/4411468910';
303
- Rewarded_ID = 'ca-app-pub-3940256099942544/1712485313';
304
- Rewarded_Interstitial_ID = 'ca-app-pub-3940256099942544/6978759866';
305
-
306
- } else {
307
- // Assume Android
308
- App_Open_ID = 'ca-app-pub-3940256099942544/9257395921';
309
- Banner_ID = 'ca-app-pub-3940256099942544/6300978111';
310
- Interstitial_ID = 'ca-app-pub-3940256099942544/1033173712';
311
- Rewarded_ID = 'ca-app-pub-3940256099942544/5224354917';
312
- Rewarded_Interstitial_ID = 'ca-app-pub-3940256099942544/5354046379';
313
- }
314
-
315
-
316
- cordova.plugins.emiAdmobPlugin.initialize({
317
- isUsingAdManagerRequest: true, // true = AdManagerAdRequest.Builder | false = AdRequest.Builder (Default true)
318
- isResponseInfo: true, // Default false
319
- isConsentDebug: true, // Default false
320
- });
321
-
322
-
323
- document.addEventListener('on.sdkInitialization', (data) => {
324
- // JSON.stringify(data)
325
- const sdkVersion = data.version;
326
- // const adAdapter = data.adapters;
327
- // const conStatus = data.consentStatus;
328
- // const gdprApplie = data.gdprApplies;
329
- // const purposeConsent = data.purposeConsents;
330
- // const vendorConsents = data.vendorConsents;
331
- // const conTCString = data.consentTCString;
332
- // const additionalConsent = data.additionalConsent;
333
- console.log("On Sdk Initialization version: " + sdkVersion);
334
-
335
-
336
- cordova.plugins.emiAdmobPlugin.loadInterstitialAd({
337
- adUnitId: "ca-app-pub-3940256099942544/1033173712",
338
- autoShow: true
339
- });
340
-
341
- });
342
-
343
-
344
- document.addEventListener('on.interstitial.loaded', () => {
345
-
346
- console.log("on interstitial Ad loaded");
347
-
348
- });
349
-
350
- // all events that contain the keyword dismissed there is a block to load the ad after it is closed by the user.
351
- // 'on.interstitial.dismissed' | 'on.rewardedInt.dismissed' | 'on.rewarded.dismissed'
352
- document.addEventListener('on.interstitial.dismissed', () => {
353
-
354
- console.log("on interstitial Ad dismissed");
355
- console.log("you can load ads automatically after the ads are closed by users");
356
- // loadInterstitialAd();
357
-
358
- });
359
-
360
- function loadInterstitialAd(){
361
-
362
- cordova.plugins.emiAdmobPlugin.loadInterstitialAd({
363
- adUnitId: "ca-app-pub-3940256099942544/1033173712",
364
- autoShow: false
365
- });
366
-
367
- }
368
-
369
-
370
- </script>
371
- ```
372
-
373
289
 
374
290
  ## AppOpenAd ADS
375
291
 
@@ -380,22 +296,6 @@ autoShow: false
380
296
  cordova.plugins.emiAdmobPlugin.loadAppOpenAd({config});
381
297
  cordova.plugins.emiAdmobPlugin.showAppOpenAd(); // default
382
298
 
383
- // Advanced load (Optional)
384
- cordova.plugins.emiAdmobPlugin.loadAppOpenAd(config,
385
-
386
- (data) => {
387
-
388
- console.log("Micros: " + data.micros);
389
- console.log("Currency: " + data.currency);
390
- console.log("Precision: " + data.precision);
391
- console.log("AdUnitId: " + data.adUnitId};
392
-
393
- },
394
- (error) => {
395
-
396
- console.error("Error: " + error);
397
-
398
- });
399
299
 
400
300
 
401
301
  <br>
@@ -403,14 +303,6 @@ autoShow: false
403
303
  <li>example:</li></ul>
404
304
  <pre>
405
305
 
406
- WARNING options configuration was previously an array [], now v.1.4.9 or later must be an object{}
407
- example
408
- ```
409
- previous example
410
- [ adUnitId = App_Open_ID, autoShow = true ] // Deprecated
411
- now
412
- { adUnitId: App_Open_ID, autoShow: true }
413
-
414
306
  cordova.plugins.emiAdmobPlugin.loadAppOpenAd({ adUnitId: App_Open_ID, autoShow: true });
415
307
  ```
416
308
  </pre>
@@ -425,6 +317,9 @@ now
425
317
  on.appOpenAd.failed.show
426
318
  on.appOpenAd.show
427
319
  on.appOpenAd.revenue
320
+
321
+ (DEBUG)
322
+ on.appOpenAd.responseInfo
428
323
  <br>
429
324
  </pre>
430
325
  <li>example:</li></ul>
@@ -438,7 +333,7 @@ document.addEventListener('on.appOpenAd.loaded', () => {
438
333
  </pre>
439
334
  </details>
440
335
 
441
- - [FULL AppOpenAd basic: Not yet updated](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/blob/main/example/app_open_ads.html) -index.html
336
+ - [FULL AppOpenAd basic:](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/blob/main/Example/www/js/appOpenAd.js)
442
337
 
443
338
 
444
339
 
@@ -448,7 +343,7 @@ document.addEventListener('on.appOpenAd.loaded', () => {
448
343
  <details>
449
344
  <summary>Methods:</summary>
450
345
  <pre>
451
- cordova.plugins.emiAdmobPlugin.styleBannerAd({ padding: 50, margins: 50 }); // (Optional)
346
+ cordova.plugins.emiAdmobPlugin.styleBannerAd({ padding: 50, margins: 50 }); // (Optional only android)
452
347
  cordova.plugins.emiAdmobPlugin.loadBannerAd({config});
453
348
  cordova.plugins.emiAdmobPlugin.showBannerAd(); // default
454
349
  cordova.plugins.emiAdmobPlugin.hideBannerAd(); // default
@@ -456,22 +351,7 @@ cordova.plugins.emiAdmobPlugin.removeBannerAd(); // default
456
351
  </pre>
457
352
  <li>example:</li></ul>
458
353
  <pre>
459
- WARNING options configuration was previously an array [], now v.1.4.9 or later must be an object{}
460
-
461
- // Deprecated
462
- /*
463
- const bannerConfig = [
464
-
465
- adUnitId = Banner_ID,
466
- position = "bottom-center",
467
- size = "BANNER",
468
- collapsible = "bottom", // (BETA) enable in globalSettings
469
- adaptive_Width = 320, // Ignored
470
- autoShow = true // boolean
471
- ]
472
- */
473
-
474
- // NEW
354
+
475
355
  ```
476
356
  const bannerConfig = {
477
357
 
@@ -484,23 +364,7 @@ const bannerConfig = {
484
364
 
485
365
  }
486
366
 
487
- cordova.plugins.emiAdmobPlugin.loadBannerAd(bannerConfig,
488
- // Advanced load (Optional)
489
- (data) => {
490
- // this data will be displayed after showBannerAd() applies to all ad types
491
- console.log("Micros: " + data.micros);
492
- console.log("Currency: " + data.currency);
493
- console.log("Precision: " + data.precision);
494
- console.log("AdUnitId: " + data.adUnitId};
495
-
496
- },
497
- (error) => {
498
-
499
- console.error("Error: " + error);
500
-
501
- }
502
-
503
- );
367
+ cordova.plugins.emiAdmobPlugin.loadBannerAd(bannerConfig);
504
368
  ```
505
369
 
506
370
 
@@ -535,16 +399,7 @@ full_banner
535
399
  leaderboard
536
400
  fluid
537
401
 
538
- ANCHORED // Deprecated
539
- IN_LINE // Deprecated
540
- FULL_WIDTH // Deprecated
541
- BANNER // Deprecated
542
- FLUID // Deprecated
543
- LARGE_BANNER // Deprecated
544
- MEDIUM_RECTANGLE // Deprecated
545
- FULL_BANNER // Deprecated
546
- LEADERBOARD // Deprecated
547
- adaptive_Width = number // Deprecated
402
+
548
403
  </pre>
549
404
  </details>
550
405
 
@@ -563,6 +418,7 @@ on.banner.remove
563
418
  on.banner.hide
564
419
  // new
565
420
  on.is.collapsible
421
+ on.bannerAd.responseInfo
566
422
  </pre>
567
423
  <li>example:</li></ul>
568
424
  <pre>
@@ -580,7 +436,7 @@ console.log("Collapsible Status: " + event.collapsible);
580
436
  </pre>
581
437
  </details>
582
438
 
583
- [FULL Banner basic: Not yet updated](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/blob/main/example/banner_ads.html) index.html
439
+ [FULL Banner basic:](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/blob/main/Example/www/js/bannerAd.js)
584
440
 
585
441
 
586
442
  ## Interstitial ADS
@@ -593,36 +449,12 @@ console.log("Collapsible Status: " + event.collapsible);
593
449
  cordova.plugins.emiAdmobPlugin.loadInterstitialAd({config});
594
450
  cordova.plugins.emiAdmobPlugin.showInterstitialAd(); // default
595
451
 
596
- // Advanced load (Optional)
597
- cordova.plugins.emiAdmobPlugin.loadInterstitialAd(config,
598
-
599
- (data) => {
600
-
601
- console.log("Micros: " + data.micros);
602
- console.log("Currency: " + data.currency);
603
- console.log("Precision: " + data.precision);
604
- console.log("AdUnitId: " + data.adUnitId};
605
-
606
- },
607
- (error) => {
608
-
609
- console.error("Error: " + error);
610
-
611
- });
612
452
  <br>
613
453
  </pre>
614
454
  <li>example:</li></ul>
615
455
  <pre>
616
456
 
617
- WARNING options configuration was previously an array [], now v.1.4.9 or later must be an object{}
618
- example
619
- ```
620
- /*
621
- previous example
622
- [ adUnitId = Interstitial_ID, autoShow = true ] // Deprecated
623
457
 
624
- { adUnitId: Interstitial_ID, autoShow: true } // NEW
625
- */
626
458
  cordova.plugins.emiAdmobPlugin.loadInterstitialAd({ adUnitId: "ca-app-pub-3940256099942544/1033173712", autoShow: true });
627
459
  ```
628
460
 
@@ -641,6 +473,7 @@ on.interstitial.impression
641
473
  on.interstitial.show
642
474
  // new
643
475
  on.interstitial.revenue
476
+ on.interstitialAd.responseInfo
644
477
  <br>
645
478
  </pre>
646
479
  <li>example:</li></ul>
@@ -666,7 +499,7 @@ document.addEventListener('on.interstitial.dismissed', () => {
666
499
  </details>
667
500
 
668
501
 
669
- [FULL Interstitial basic: Not yet updated](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/blob/main/example/interstitial_ads.html) index.html
502
+ [FULL Interstitial basic: ](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/blob/main/Example/www/js/interstitialAd.js)
670
503
 
671
504
 
672
505
 
@@ -687,25 +520,6 @@ cordova.plugins.emiAdmobPlugin.showRewardedInterstitialAd(); // default
687
520
  <pre>
688
521
 
689
522
  cordova.plugins.emiAdmobPlugin.loadRewardedInterstitialAd({ adUnitId: Rewarded_Interstitial_ID, autoShow: true });
690
-
691
- // Advanced load (Optional)
692
- cordova.plugins.emiAdmobPlugin.loadRewardedInterstitialAd(config,
693
-
694
- (data) => {
695
-
696
- console.log("Micros: " + data.micros);
697
- console.log("Currency: " + data.currency);
698
- console.log("Precision: " + data.precision);
699
- console.log("AdUnitId: " + data.adUnitId};
700
-
701
- },
702
- (error) => {
703
-
704
- console.error("Error: " + error);
705
-
706
- });
707
-
708
-
709
523
 
710
524
  </pre>
711
525
  </details>
@@ -724,6 +538,7 @@ on.rewardedInt.userEarnedReward
724
538
  // new
725
539
  on.rewardedInt.revenue
726
540
  on.rewardedInt.ad.skip
541
+ on.rewardedIntAd.responseInfo
727
542
  <br>
728
543
  </pre>
729
544
  <li>example:</li></ul>
@@ -769,23 +584,6 @@ cordova.plugins.emiAdmobPlugin.showRewardedAd(); // default
769
584
 
770
585
  cordova.plugins.emiAdmobPlugin.loadRewardedAd({ adUnitId: Rewarded_ID, autoShow: true });
771
586
 
772
- // Advanced load (Optional)
773
- cordova.plugins.emiAdmobPlugin.loadRewardedAd(config,
774
-
775
- (data) => {
776
-
777
- console.log("Micros: " + data.micros);
778
- console.log("Currency: " + data.currency);
779
- console.log("Precision: " + data.precision);
780
- console.log("AdUnitId: " + data.adUnitId};
781
-
782
- },
783
- (error) => {
784
-
785
- console.error("Error: " + error);
786
-
787
- });
788
-
789
587
 
790
588
  </pre>
791
589
  </details>
@@ -804,6 +602,7 @@ on.reward.userEarnedReward
804
602
  // new
805
603
  on.rewarded.revenue
806
604
  on.rewarded.ad.skip
605
+ on.rewardedAd.responseInfo
807
606
 
808
607
  <br>
809
608
  </pre>
@@ -829,7 +628,7 @@ document.addEventListener('on.rewarded.dismissed', () => {
829
628
  </pre>
830
629
  </details>
831
630
 
832
- [FULL Rewarded basic: Not yet updated](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/blob/main/example/rewarded_ads.html) index.html
631
+ [FULL Rewarded basic: ](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/blob/main/Example/www/js/rewardedAd.js)
833
632
 
834
633
 
835
634
 
@@ -1111,7 +910,7 @@ on.orientation.landscape
1111
910
 
1112
911
 
1113
912
 
1114
- # Admob Mediation
913
+ # Admob Mediation (supports both platforms)
1115
914
 
1116
915
  <details>
1117
916
  <summary>Mediation #9</summary>
@@ -1123,7 +922,7 @@ on.orientation.landscape
1123
922
 
1124
923
  ## get Mediation Adapter Name
1125
924
 
1126
- responseInfo = true // (debugging)
925
+ isResponseInfo: true, // debug Default false // (debugging)
1127
926
 
1128
927
  <img src="https://user-images.githubusercontent.com/78555833/230655800-0dbc3f12-72fb-4cf3-b4e6-801704fade28.png" width="250">
1129
928
 
@@ -1207,24 +1006,25 @@ cordova plugin add emi-indo-cordova-plugin-mediation-ironsource
1207
1006
 
1208
1007
  - Cordova CLI Update Adapter version with Variables
1209
1008
  ```sh
1210
- cordova plugin add emi-indo-cordova-plugin-mediation-meta --variable META_ADAPTER_VERSION="xxxxx"
1009
+ cordova plugin add emi-indo-cordova-plugin-mediation-meta --save --variable META_ADAPTER_VERSION="xxxxx" --variable IOS_META_ADAPTER_VERSION="xxxxx"
1211
1010
  ```
1212
1011
  - Update Adapter version with config.xml
1213
1012
  ```sh
1214
1013
  <preference name="META_ADAPTER_VERSION" value="xxxxx" />
1014
+ <preference name="IOS_META_ADAPTER_VERSION" value="xxxxx" />
1215
1015
  ```
1216
1016
 
1217
1017
  ### Variables Name
1218
1018
 
1219
- - --variable META_ADAPTER_VERSION="xxxxx"
1220
- - --variable UNITY_ADAPTER_VERSION="xxxxx"
1221
- - --variable APPLOVIN_ADAPTER_VERSION="xxxxx"
1222
- - --variable ADCOLONY_ADAPTER_VERSION="xxxxx"
1223
- - --variable CHARTBOOST_ADAPTER_VERSION="xxxxx"
1224
- - --variable IRONSOURCE_ADAPTER_VERSION="xxxxx"
1019
+ - --variable META_ADAPTER_VERSION="xxxxx" --variable IOS_META_ADAPTER_VERSION="xxxxx"
1020
+ - --variable UNITY_ADAPTER_VERSION="xxxxx" --variable IOS_UNITY_ADAPTER_VERSION="xxxxx"
1021
+ - --variable APPLOVIN_ADAPTER_VERSION="xxxxx" --variable IOS_APPLOVIN_ADAPTER_VERSION="xxxxx"
1022
+ - --variable ADCOLONY_ADAPTER_VERSION="xxxxx" --variable IOS_ADCOLONY_ADAPTER_VERSION="xxxxx"
1023
+ - --variable CHARTBOOST_ADAPTER_VERSION="xxxxx" --variable IOS_CHARTBOOST_ADAPTER_VERSION="xxxxx"
1024
+ - --variable IRONSOURCE_ADAPTER_VERSION="xxxxx" --variable IOS_IRONSOURCE_ADAPTER_VERSION="xxxxx"
1225
1025
 
1226
1026
  ### preference name
1227
-
1027
+ ## (ANDROID)
1228
1028
  - META_ADAPTER_VERSION
1229
1029
  - UNITY_ADAPTER_VERSION
1230
1030
  - APPLOVIN_ADAPTER_VERSION
@@ -1232,6 +1032,14 @@ cordova plugin add emi-indo-cordova-plugin-mediation-meta --variable META_ADAPTE
1232
1032
  - CHARTBOOST_ADAPTER_VERSION
1233
1033
  - IRONSOURCE_ADAPTER_VERSION
1234
1034
 
1035
+ ## (IOS)
1036
+ - IOS_META_ADAPTER_VERSION
1037
+ - IOS_UNITY_ADAPTER_VERSION
1038
+ - IOS_APPLOVIN_ADAPTER_VERSION
1039
+ - IOS_ADCOLONY_ADAPTER_VERSION
1040
+ - IOS_CHARTBOOST_ADAPTER_VERSION
1041
+ - IOS_IRONSOURCE_ADAPTER_VERSION
1042
+
1235
1043
  - ================================
1236
1044
  </details>
1237
1045
 
@@ -0,0 +1,110 @@
1
+ /*
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
18
+ */
19
+ * {
20
+ -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
21
+ }
22
+
23
+ body {
24
+ -webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */
25
+ -webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */
26
+ -webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */
27
+ background-color:#E4E4E4;
28
+ background-image:linear-gradient(to bottom, #A7A7A7 0%, #E4E4E4 51%);
29
+ font-family: system-ui, -apple-system, -apple-system-font, 'Segoe UI', 'Roboto', sans-serif;
30
+ font-size:12px;
31
+ height:100vh;
32
+ margin:0px;
33
+ padding:0px;
34
+ /* Padding to avoid the "unsafe" areas behind notches in the screen */
35
+ padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
36
+ text-transform:uppercase;
37
+ width:100%;
38
+ }
39
+
40
+ /* Portrait layout (default) */
41
+ .app {
42
+ background:url(../img/logo.png) no-repeat center top; /* 170px x 200px */
43
+ position:absolute; /* position in the center of the screen */
44
+ left:50%;
45
+ top:50%;
46
+ height:50px; /* text area height */
47
+ width:225px; /* text area width */
48
+ text-align:center;
49
+ padding:180px 0px 0px 0px; /* image height is 200px (bottom 20px are overlapped with text) */
50
+ margin:-115px 0px 0px -112px; /* offset vertical: half of image height and text area height */
51
+ /* offset horizontal: half of text area width */
52
+ }
53
+
54
+ /* Landscape layout (with min-width) */
55
+ @media screen and (min-aspect-ratio: 1/1) and (min-width:400px) {
56
+ .app {
57
+ background-position:left center;
58
+ padding:75px 0px 75px 170px; /* padding-top + padding-bottom + text area = image height */
59
+ margin:-90px 0px 0px -198px; /* offset vertical: half of image height */
60
+ /* offset horizontal: half of image width and text area width */
61
+ }
62
+ }
63
+
64
+ h1 {
65
+ font-size:24px;
66
+ font-weight:normal;
67
+ margin:0px;
68
+ overflow:visible;
69
+ padding:0px;
70
+ text-align:center;
71
+ }
72
+
73
+ .event {
74
+ border-radius:4px;
75
+ color:#FFFFFF;
76
+ font-size:12px;
77
+ margin:0px 30px;
78
+ padding:2px 0px;
79
+ }
80
+
81
+ .event.listening {
82
+ background-color:#333333;
83
+ display:block;
84
+ }
85
+
86
+ .event.received {
87
+ background-color:#4B946A;
88
+ display:none;
89
+ }
90
+
91
+ #deviceready.ready .event.listening { display: none; }
92
+ #deviceready.ready .event.received { display: block; }
93
+
94
+ @keyframes fade {
95
+ from { opacity: 1.0; }
96
+ 50% { opacity: 0.4; }
97
+ to { opacity: 1.0; }
98
+ }
99
+
100
+ .blink {
101
+ animation:fade 3000ms infinite;
102
+ -webkit-animation:fade 3000ms infinite;
103
+ }
104
+
105
+
106
+ @media screen and (prefers-color-scheme: dark) {
107
+ body {
108
+ background-image:linear-gradient(to bottom, #585858 0%, #1B1B1B 51%);
109
+ }
110
+ }
@@ -0,0 +1,28 @@
1
+ <html>
2
+ <head>
3
+ <script type="text/javascript" src="cordova.js"></script>
4
+ <script src="js/deviceready.js" defer></script>
5
+ <script src="js/appOpenAd.js" defer></script>
6
+ <script src="js/bannerAd.js" defer></script>
7
+ <script src="js/interstitialAd.js" defer></script>
8
+ <script src="js/rewardedAd.js" defer></script>
9
+ </head>
10
+ <body>
11
+
12
+
13
+ <label for="event">Debug Event All response :</label>
14
+ <textarea id="log" name="log" rows="5" cols="40"></textarea>
15
+
16
+ <p> <button onclick="loadAppOpen();">Auto Show App Open Ad</button></p>
17
+
18
+
19
+ <p> <button onclick="loadInterstitial();">Load Interstitial Ad</button></p>
20
+ <p> <button onclick="showInterstitial();">Show Interstitial Ad</button></p>
21
+
22
+ <p> <button onclick="loadRewarded();">Load Rewarded Ad</button></p>
23
+ <p> <button onclick="showRewarded();">Show Rewarded Ad</button></p>
24
+
25
+ <p> <button onclick="cleanText();">Clean response Text</button></p>
26
+
27
+ </body>
28
+ </html>