@ququplay/admob 5.3.1 → 6.0.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/{CapacitorCommunityAdmob.podspec → QuquplayAdmob.podspec} +2 -2
- package/README.md +36 -36
- package/android/build.gradle +6 -6
- package/android/src/main/java/com/getcapacitor/community/admob/consent/AdConsentExecutor.java +28 -21
- package/dist/docs.json +34 -34
- package/dist/esm/banner/banner-definitions.interface.d.ts +18 -18
- package/dist/esm/interstitial/interstitial-definitions.interface.d.ts +5 -5
- package/dist/esm/private/validate-all-events-implemented.type.d.ts +1 -1
- package/dist/esm/reward/reward-definitions.interface.d.ts +12 -12
- package/dist/esm/web.d.ts +0 -2
- package/dist/esm/web.js +0 -9
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +0 -9
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +0 -9
- package/dist/plugin.js.map +1 -1
- package/ios/Plugin/Banner/BannerExecutor.swift +4 -16
- package/ios/Plugin/Consent/ConsentExecutor.swift +7 -15
- package/ios/Plugin/Plugin.swift +4 -4
- package/package.json +8 -11
package/dist/docs.json
CHANGED
|
@@ -352,7 +352,7 @@
|
|
|
352
352
|
},
|
|
353
353
|
{
|
|
354
354
|
"name": "addListener",
|
|
355
|
-
"signature": "(eventName: BannerAdPluginEvents.SizeChanged, listenerFunc: (info: AdMobBannerSize) => void) => PluginListenerHandle",
|
|
355
|
+
"signature": "(eventName: BannerAdPluginEvents.SizeChanged, listenerFunc: (info: AdMobBannerSize) => void) => Promise<PluginListenerHandle>",
|
|
356
356
|
"parameters": [
|
|
357
357
|
{
|
|
358
358
|
"name": "eventName",
|
|
@@ -365,7 +365,7 @@
|
|
|
365
365
|
"type": "(info: AdMobBannerSize) => void"
|
|
366
366
|
}
|
|
367
367
|
],
|
|
368
|
-
"returns": "PluginListenerHandle",
|
|
368
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
369
369
|
"tags": [
|
|
370
370
|
{
|
|
371
371
|
"name": "group",
|
|
@@ -422,7 +422,7 @@
|
|
|
422
422
|
},
|
|
423
423
|
{
|
|
424
424
|
"name": "addListener",
|
|
425
|
-
"signature": "(eventName: BannerAdPluginEvents.Loaded, listenerFunc: () => void) => PluginListenerHandle",
|
|
425
|
+
"signature": "(eventName: BannerAdPluginEvents.Loaded, listenerFunc: () => void) => Promise<PluginListenerHandle>",
|
|
426
426
|
"parameters": [
|
|
427
427
|
{
|
|
428
428
|
"name": "eventName",
|
|
@@ -435,7 +435,7 @@
|
|
|
435
435
|
"type": "() => void"
|
|
436
436
|
}
|
|
437
437
|
],
|
|
438
|
-
"returns": "PluginListenerHandle",
|
|
438
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
439
439
|
"tags": [
|
|
440
440
|
{
|
|
441
441
|
"name": "group",
|
|
@@ -491,7 +491,7 @@
|
|
|
491
491
|
},
|
|
492
492
|
{
|
|
493
493
|
"name": "addListener",
|
|
494
|
-
"signature": "(eventName: BannerAdPluginEvents.FailedToLoad, listenerFunc: (info: AdMobError) => void) => PluginListenerHandle",
|
|
494
|
+
"signature": "(eventName: BannerAdPluginEvents.FailedToLoad, listenerFunc: (info: AdMobError) => void) => Promise<PluginListenerHandle>",
|
|
495
495
|
"parameters": [
|
|
496
496
|
{
|
|
497
497
|
"name": "eventName",
|
|
@@ -504,7 +504,7 @@
|
|
|
504
504
|
"type": "(info: AdMobError) => void"
|
|
505
505
|
}
|
|
506
506
|
],
|
|
507
|
-
"returns": "PluginListenerHandle",
|
|
507
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
508
508
|
"tags": [
|
|
509
509
|
{
|
|
510
510
|
"name": "group",
|
|
@@ -561,7 +561,7 @@
|
|
|
561
561
|
},
|
|
562
562
|
{
|
|
563
563
|
"name": "addListener",
|
|
564
|
-
"signature": "(eventName: BannerAdPluginEvents.Opened, listenerFunc: () => void) => PluginListenerHandle",
|
|
564
|
+
"signature": "(eventName: BannerAdPluginEvents.Opened, listenerFunc: () => void) => Promise<PluginListenerHandle>",
|
|
565
565
|
"parameters": [
|
|
566
566
|
{
|
|
567
567
|
"name": "eventName",
|
|
@@ -574,7 +574,7 @@
|
|
|
574
574
|
"type": "() => void"
|
|
575
575
|
}
|
|
576
576
|
],
|
|
577
|
-
"returns": "PluginListenerHandle",
|
|
577
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
578
578
|
"tags": [
|
|
579
579
|
{
|
|
580
580
|
"name": "group",
|
|
@@ -630,7 +630,7 @@
|
|
|
630
630
|
},
|
|
631
631
|
{
|
|
632
632
|
"name": "addListener",
|
|
633
|
-
"signature": "(eventName: BannerAdPluginEvents.Closed, listenerFunc: () => void) => PluginListenerHandle",
|
|
633
|
+
"signature": "(eventName: BannerAdPluginEvents.Closed, listenerFunc: () => void) => Promise<PluginListenerHandle>",
|
|
634
634
|
"parameters": [
|
|
635
635
|
{
|
|
636
636
|
"name": "eventName",
|
|
@@ -643,7 +643,7 @@
|
|
|
643
643
|
"type": "() => void"
|
|
644
644
|
}
|
|
645
645
|
],
|
|
646
|
-
"returns": "PluginListenerHandle",
|
|
646
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
647
647
|
"tags": [
|
|
648
648
|
{
|
|
649
649
|
"name": "group",
|
|
@@ -699,7 +699,7 @@
|
|
|
699
699
|
},
|
|
700
700
|
{
|
|
701
701
|
"name": "addListener",
|
|
702
|
-
"signature": "(eventName: BannerAdPluginEvents.AdImpression, listenerFunc: () => void) => PluginListenerHandle",
|
|
702
|
+
"signature": "(eventName: BannerAdPluginEvents.AdImpression, listenerFunc: () => void) => Promise<PluginListenerHandle>",
|
|
703
703
|
"parameters": [
|
|
704
704
|
{
|
|
705
705
|
"name": "eventName",
|
|
@@ -712,7 +712,7 @@
|
|
|
712
712
|
"type": "() => void"
|
|
713
713
|
}
|
|
714
714
|
],
|
|
715
|
-
"returns": "PluginListenerHandle",
|
|
715
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
716
716
|
"tags": [
|
|
717
717
|
{
|
|
718
718
|
"name": "group",
|
|
@@ -967,7 +967,7 @@
|
|
|
967
967
|
},
|
|
968
968
|
{
|
|
969
969
|
"name": "addListener",
|
|
970
|
-
"signature": "(eventName: InterstitialAdPluginEvents.FailedToLoad, listenerFunc: (error: AdMobError) => void) => PluginListenerHandle",
|
|
970
|
+
"signature": "(eventName: InterstitialAdPluginEvents.FailedToLoad, listenerFunc: (error: AdMobError) => void) => Promise<PluginListenerHandle>",
|
|
971
971
|
"parameters": [
|
|
972
972
|
{
|
|
973
973
|
"name": "eventName",
|
|
@@ -980,7 +980,7 @@
|
|
|
980
980
|
"type": "(error: AdMobError) => void"
|
|
981
981
|
}
|
|
982
982
|
],
|
|
983
|
-
"returns": "PluginListenerHandle",
|
|
983
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
984
984
|
"tags": [],
|
|
985
985
|
"docs": "",
|
|
986
986
|
"complexTypes": [
|
|
@@ -992,7 +992,7 @@
|
|
|
992
992
|
},
|
|
993
993
|
{
|
|
994
994
|
"name": "addListener",
|
|
995
|
-
"signature": "(eventName: InterstitialAdPluginEvents.Loaded, listenerFunc: (info: AdLoadInfo) => void) => PluginListenerHandle",
|
|
995
|
+
"signature": "(eventName: InterstitialAdPluginEvents.Loaded, listenerFunc: (info: AdLoadInfo) => void) => Promise<PluginListenerHandle>",
|
|
996
996
|
"parameters": [
|
|
997
997
|
{
|
|
998
998
|
"name": "eventName",
|
|
@@ -1005,7 +1005,7 @@
|
|
|
1005
1005
|
"type": "(info: AdLoadInfo) => void"
|
|
1006
1006
|
}
|
|
1007
1007
|
],
|
|
1008
|
-
"returns": "PluginListenerHandle",
|
|
1008
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
1009
1009
|
"tags": [],
|
|
1010
1010
|
"docs": "",
|
|
1011
1011
|
"complexTypes": [
|
|
@@ -1017,7 +1017,7 @@
|
|
|
1017
1017
|
},
|
|
1018
1018
|
{
|
|
1019
1019
|
"name": "addListener",
|
|
1020
|
-
"signature": "(eventName: InterstitialAdPluginEvents.Dismissed, listenerFunc: () => void) => PluginListenerHandle",
|
|
1020
|
+
"signature": "(eventName: InterstitialAdPluginEvents.Dismissed, listenerFunc: () => void) => Promise<PluginListenerHandle>",
|
|
1021
1021
|
"parameters": [
|
|
1022
1022
|
{
|
|
1023
1023
|
"name": "eventName",
|
|
@@ -1030,7 +1030,7 @@
|
|
|
1030
1030
|
"type": "() => void"
|
|
1031
1031
|
}
|
|
1032
1032
|
],
|
|
1033
|
-
"returns": "PluginListenerHandle",
|
|
1033
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
1034
1034
|
"tags": [],
|
|
1035
1035
|
"docs": "",
|
|
1036
1036
|
"complexTypes": [
|
|
@@ -1041,7 +1041,7 @@
|
|
|
1041
1041
|
},
|
|
1042
1042
|
{
|
|
1043
1043
|
"name": "addListener",
|
|
1044
|
-
"signature": "(eventName: InterstitialAdPluginEvents.FailedToShow, listenerFunc: (error: AdMobError) => void) => PluginListenerHandle",
|
|
1044
|
+
"signature": "(eventName: InterstitialAdPluginEvents.FailedToShow, listenerFunc: (error: AdMobError) => void) => Promise<PluginListenerHandle>",
|
|
1045
1045
|
"parameters": [
|
|
1046
1046
|
{
|
|
1047
1047
|
"name": "eventName",
|
|
@@ -1054,7 +1054,7 @@
|
|
|
1054
1054
|
"type": "(error: AdMobError) => void"
|
|
1055
1055
|
}
|
|
1056
1056
|
],
|
|
1057
|
-
"returns": "PluginListenerHandle",
|
|
1057
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
1058
1058
|
"tags": [],
|
|
1059
1059
|
"docs": "",
|
|
1060
1060
|
"complexTypes": [
|
|
@@ -1066,7 +1066,7 @@
|
|
|
1066
1066
|
},
|
|
1067
1067
|
{
|
|
1068
1068
|
"name": "addListener",
|
|
1069
|
-
"signature": "(eventName: InterstitialAdPluginEvents.Showed, listenerFunc: () => void) => PluginListenerHandle",
|
|
1069
|
+
"signature": "(eventName: InterstitialAdPluginEvents.Showed, listenerFunc: () => void) => Promise<PluginListenerHandle>",
|
|
1070
1070
|
"parameters": [
|
|
1071
1071
|
{
|
|
1072
1072
|
"name": "eventName",
|
|
@@ -1079,7 +1079,7 @@
|
|
|
1079
1079
|
"type": "() => void"
|
|
1080
1080
|
}
|
|
1081
1081
|
],
|
|
1082
|
-
"returns": "PluginListenerHandle",
|
|
1082
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
1083
1083
|
"tags": [],
|
|
1084
1084
|
"docs": "",
|
|
1085
1085
|
"complexTypes": [
|
|
@@ -1176,7 +1176,7 @@
|
|
|
1176
1176
|
},
|
|
1177
1177
|
{
|
|
1178
1178
|
"name": "addListener",
|
|
1179
|
-
"signature": "(eventName: RewardAdPluginEvents.FailedToLoad, listenerFunc: (error: AdMobError) => void) => PluginListenerHandle",
|
|
1179
|
+
"signature": "(eventName: RewardAdPluginEvents.FailedToLoad, listenerFunc: (error: AdMobError) => void) => Promise<PluginListenerHandle>",
|
|
1180
1180
|
"parameters": [
|
|
1181
1181
|
{
|
|
1182
1182
|
"name": "eventName",
|
|
@@ -1189,7 +1189,7 @@
|
|
|
1189
1189
|
"type": "(error: AdMobError) => void"
|
|
1190
1190
|
}
|
|
1191
1191
|
],
|
|
1192
|
-
"returns": "PluginListenerHandle",
|
|
1192
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
1193
1193
|
"tags": [],
|
|
1194
1194
|
"docs": "",
|
|
1195
1195
|
"complexTypes": [
|
|
@@ -1201,7 +1201,7 @@
|
|
|
1201
1201
|
},
|
|
1202
1202
|
{
|
|
1203
1203
|
"name": "addListener",
|
|
1204
|
-
"signature": "(eventName: RewardAdPluginEvents.Loaded, listenerFunc: (info: AdLoadInfo) => void) => PluginListenerHandle",
|
|
1204
|
+
"signature": "(eventName: RewardAdPluginEvents.Loaded, listenerFunc: (info: AdLoadInfo) => void) => Promise<PluginListenerHandle>",
|
|
1205
1205
|
"parameters": [
|
|
1206
1206
|
{
|
|
1207
1207
|
"name": "eventName",
|
|
@@ -1214,7 +1214,7 @@
|
|
|
1214
1214
|
"type": "(info: AdLoadInfo) => void"
|
|
1215
1215
|
}
|
|
1216
1216
|
],
|
|
1217
|
-
"returns": "PluginListenerHandle",
|
|
1217
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
1218
1218
|
"tags": [],
|
|
1219
1219
|
"docs": "",
|
|
1220
1220
|
"complexTypes": [
|
|
@@ -1226,7 +1226,7 @@
|
|
|
1226
1226
|
},
|
|
1227
1227
|
{
|
|
1228
1228
|
"name": "addListener",
|
|
1229
|
-
"signature": "(eventName: RewardAdPluginEvents.Rewarded, listenerFunc: (reward: AdMobRewardItem) => void) => PluginListenerHandle",
|
|
1229
|
+
"signature": "(eventName: RewardAdPluginEvents.Rewarded, listenerFunc: (reward: AdMobRewardItem) => void) => Promise<PluginListenerHandle>",
|
|
1230
1230
|
"parameters": [
|
|
1231
1231
|
{
|
|
1232
1232
|
"name": "eventName",
|
|
@@ -1239,7 +1239,7 @@
|
|
|
1239
1239
|
"type": "(reward: AdMobRewardItem) => void"
|
|
1240
1240
|
}
|
|
1241
1241
|
],
|
|
1242
|
-
"returns": "PluginListenerHandle",
|
|
1242
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
1243
1243
|
"tags": [],
|
|
1244
1244
|
"docs": "",
|
|
1245
1245
|
"complexTypes": [
|
|
@@ -1251,7 +1251,7 @@
|
|
|
1251
1251
|
},
|
|
1252
1252
|
{
|
|
1253
1253
|
"name": "addListener",
|
|
1254
|
-
"signature": "(eventName: RewardAdPluginEvents.Dismissed, listenerFunc: () => void) => PluginListenerHandle",
|
|
1254
|
+
"signature": "(eventName: RewardAdPluginEvents.Dismissed, listenerFunc: () => void) => Promise<PluginListenerHandle>",
|
|
1255
1255
|
"parameters": [
|
|
1256
1256
|
{
|
|
1257
1257
|
"name": "eventName",
|
|
@@ -1264,7 +1264,7 @@
|
|
|
1264
1264
|
"type": "() => void"
|
|
1265
1265
|
}
|
|
1266
1266
|
],
|
|
1267
|
-
"returns": "PluginListenerHandle",
|
|
1267
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
1268
1268
|
"tags": [],
|
|
1269
1269
|
"docs": "",
|
|
1270
1270
|
"complexTypes": [
|
|
@@ -1275,7 +1275,7 @@
|
|
|
1275
1275
|
},
|
|
1276
1276
|
{
|
|
1277
1277
|
"name": "addListener",
|
|
1278
|
-
"signature": "(eventName: RewardAdPluginEvents.FailedToShow, listenerFunc: (error: AdMobError) => void) => PluginListenerHandle",
|
|
1278
|
+
"signature": "(eventName: RewardAdPluginEvents.FailedToShow, listenerFunc: (error: AdMobError) => void) => Promise<PluginListenerHandle>",
|
|
1279
1279
|
"parameters": [
|
|
1280
1280
|
{
|
|
1281
1281
|
"name": "eventName",
|
|
@@ -1288,7 +1288,7 @@
|
|
|
1288
1288
|
"type": "(error: AdMobError) => void"
|
|
1289
1289
|
}
|
|
1290
1290
|
],
|
|
1291
|
-
"returns": "PluginListenerHandle",
|
|
1291
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
1292
1292
|
"tags": [],
|
|
1293
1293
|
"docs": "",
|
|
1294
1294
|
"complexTypes": [
|
|
@@ -1300,7 +1300,7 @@
|
|
|
1300
1300
|
},
|
|
1301
1301
|
{
|
|
1302
1302
|
"name": "addListener",
|
|
1303
|
-
"signature": "(eventName: RewardAdPluginEvents.Showed, listenerFunc: () => void) => PluginListenerHandle",
|
|
1303
|
+
"signature": "(eventName: RewardAdPluginEvents.Showed, listenerFunc: () => void) => Promise<PluginListenerHandle>",
|
|
1304
1304
|
"parameters": [
|
|
1305
1305
|
{
|
|
1306
1306
|
"name": "eventName",
|
|
@@ -1313,7 +1313,7 @@
|
|
|
1313
1313
|
"type": "() => void"
|
|
1314
1314
|
}
|
|
1315
1315
|
],
|
|
1316
|
-
"returns": "PluginListenerHandle",
|
|
1316
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
1317
1317
|
"tags": [],
|
|
1318
1318
|
"docs": "",
|
|
1319
1319
|
"complexTypes": [
|
|
@@ -7,12 +7,12 @@ import type { AdMobBannerSize } from './banner-size.interface';
|
|
|
7
7
|
export declare type BannerDefinitionsHasAllEvents = ValidateAllEventsEnumAreImplemented<BannerAdPluginEvents, BannerDefinitions>;
|
|
8
8
|
export interface BannerDefinitions {
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
* Show a banner Ad
|
|
11
|
+
*
|
|
12
|
+
* @group Banner
|
|
13
|
+
* @param options AdOptions
|
|
14
|
+
* @since 1.1.2
|
|
15
|
+
*/
|
|
16
16
|
showBanner(options: BannerAdOptions): Promise<void>;
|
|
17
17
|
/**
|
|
18
18
|
* Hide the banner, remove it from screen, but can show it later
|
|
@@ -36,13 +36,13 @@ export interface BannerDefinitions {
|
|
|
36
36
|
*/
|
|
37
37
|
removeBanner(): Promise<void>;
|
|
38
38
|
/**
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
addListener(eventName: BannerAdPluginEvents.SizeChanged, listenerFunc: (info: AdMobBannerSize) => void): PluginListenerHandle
|
|
39
|
+
*
|
|
40
|
+
* @group Banner
|
|
41
|
+
* @param eventName bannerAdSizeChanged
|
|
42
|
+
* @param listenerFunc
|
|
43
|
+
* @since 3.0.0
|
|
44
|
+
*/
|
|
45
|
+
addListener(eventName: BannerAdPluginEvents.SizeChanged, listenerFunc: (info: AdMobBannerSize) => void): Promise<PluginListenerHandle>;
|
|
46
46
|
/**
|
|
47
47
|
* Notice: request loaded Banner ad
|
|
48
48
|
*
|
|
@@ -51,7 +51,7 @@ export interface BannerDefinitions {
|
|
|
51
51
|
* @param listenerFunc
|
|
52
52
|
* @since 3.0.0
|
|
53
53
|
*/
|
|
54
|
-
addListener(eventName: BannerAdPluginEvents.Loaded, listenerFunc: () => void): PluginListenerHandle
|
|
54
|
+
addListener(eventName: BannerAdPluginEvents.Loaded, listenerFunc: () => void): Promise<PluginListenerHandle>;
|
|
55
55
|
/**
|
|
56
56
|
* Notice: request failed Banner ad
|
|
57
57
|
*
|
|
@@ -60,7 +60,7 @@ export interface BannerDefinitions {
|
|
|
60
60
|
* @param listenerFunc
|
|
61
61
|
* @since 3.0.0
|
|
62
62
|
*/
|
|
63
|
-
addListener(eventName: BannerAdPluginEvents.FailedToLoad, listenerFunc: (info: AdMobError) => void): PluginListenerHandle
|
|
63
|
+
addListener(eventName: BannerAdPluginEvents.FailedToLoad, listenerFunc: (info: AdMobError) => void): Promise<PluginListenerHandle>;
|
|
64
64
|
/**
|
|
65
65
|
* Notice: full-screen banner view will be presented in response to the user clicking on an ad.
|
|
66
66
|
*
|
|
@@ -69,7 +69,7 @@ export interface BannerDefinitions {
|
|
|
69
69
|
* @param listenerFunc
|
|
70
70
|
* @since 3.0.0
|
|
71
71
|
*/
|
|
72
|
-
addListener(eventName: BannerAdPluginEvents.Opened, listenerFunc: () => void): PluginListenerHandle
|
|
72
|
+
addListener(eventName: BannerAdPluginEvents.Opened, listenerFunc: () => void): Promise<PluginListenerHandle>;
|
|
73
73
|
/**
|
|
74
74
|
* Notice: The full-screen banner view will been dismissed.
|
|
75
75
|
*
|
|
@@ -78,7 +78,7 @@ export interface BannerDefinitions {
|
|
|
78
78
|
* @param listenerFunc
|
|
79
79
|
* @since 3.0.0
|
|
80
80
|
*/
|
|
81
|
-
addListener(eventName: BannerAdPluginEvents.Closed, listenerFunc: () => void): PluginListenerHandle
|
|
81
|
+
addListener(eventName: BannerAdPluginEvents.Closed, listenerFunc: () => void): Promise<PluginListenerHandle>;
|
|
82
82
|
/**
|
|
83
83
|
* Unimplemented
|
|
84
84
|
*
|
|
@@ -87,5 +87,5 @@ export interface BannerDefinitions {
|
|
|
87
87
|
* @param listenerFunc
|
|
88
88
|
* @since 3.0.0
|
|
89
89
|
*/
|
|
90
|
-
addListener(eventName: BannerAdPluginEvents.AdImpression, listenerFunc: () => void): PluginListenerHandle
|
|
90
|
+
addListener(eventName: BannerAdPluginEvents.AdImpression, listenerFunc: () => void): Promise<PluginListenerHandle>;
|
|
91
91
|
}
|
|
@@ -19,9 +19,9 @@ export interface InterstitialDefinitions {
|
|
|
19
19
|
* @since 1.1.2
|
|
20
20
|
*/
|
|
21
21
|
showInterstitial(): Promise<void>;
|
|
22
|
-
addListener(eventName: InterstitialAdPluginEvents.FailedToLoad, listenerFunc: (error: AdMobError) => void): PluginListenerHandle
|
|
23
|
-
addListener(eventName: InterstitialAdPluginEvents.Loaded, listenerFunc: (info: AdLoadInfo) => void): PluginListenerHandle
|
|
24
|
-
addListener(eventName: InterstitialAdPluginEvents.Dismissed, listenerFunc: () => void): PluginListenerHandle
|
|
25
|
-
addListener(eventName: InterstitialAdPluginEvents.FailedToShow, listenerFunc: (error: AdMobError) => void): PluginListenerHandle
|
|
26
|
-
addListener(eventName: InterstitialAdPluginEvents.Showed, listenerFunc: () => void): PluginListenerHandle
|
|
22
|
+
addListener(eventName: InterstitialAdPluginEvents.FailedToLoad, listenerFunc: (error: AdMobError) => void): Promise<PluginListenerHandle>;
|
|
23
|
+
addListener(eventName: InterstitialAdPluginEvents.Loaded, listenerFunc: (info: AdLoadInfo) => void): Promise<PluginListenerHandle>;
|
|
24
|
+
addListener(eventName: InterstitialAdPluginEvents.Dismissed, listenerFunc: () => void): Promise<PluginListenerHandle>;
|
|
25
|
+
addListener(eventName: InterstitialAdPluginEvents.FailedToShow, listenerFunc: (error: AdMobError) => void): Promise<PluginListenerHandle>;
|
|
26
|
+
addListener(eventName: InterstitialAdPluginEvents.Showed, listenerFunc: () => void): Promise<PluginListenerHandle>;
|
|
27
27
|
}
|
|
@@ -2,7 +2,7 @@ import type { PluginListenerHandle } from '@capacitor/core';
|
|
|
2
2
|
declare type Contra<T> = (x: T) => void;
|
|
3
3
|
declare type UnwrapContra<T> = [T] extends [Contra<infer S>] ? S : never;
|
|
4
4
|
declare type UnionToIntersection<U> = UnwrapContra<U extends any ? Contra<U> : never>;
|
|
5
|
-
declare type Overload<T> = (eventName: T, listenerFunc: (...args: any[]) => any) => PluginListenerHandle
|
|
5
|
+
declare type Overload<T> = (eventName: T, listenerFunc: (...args: any[]) => any) => Promise<PluginListenerHandle>;
|
|
6
6
|
declare type OverloadUnionForEnum<T> = T extends any ? Overload<T> : never;
|
|
7
7
|
declare type OverloadUnion<T> = OverloadUnionForEnum<T>;
|
|
8
8
|
declare type Overloads<T> = UnionToIntersection<OverloadUnion<T>>;
|
|
@@ -7,12 +7,12 @@ import type { AdMobRewardItem } from './reward-item.interface';
|
|
|
7
7
|
export declare type RewardDefinitionsHasAllEvents = ValidateAllEventsEnumAreImplemented<RewardAdPluginEvents, RewardDefinitions>;
|
|
8
8
|
export interface RewardDefinitions {
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
* Prepare a reward video ad
|
|
11
|
+
*
|
|
12
|
+
* @group RewardVideo
|
|
13
|
+
* @param options RewardAdOptions
|
|
14
|
+
* @since 1.1.2
|
|
15
|
+
*/
|
|
16
16
|
prepareRewardVideoAd(options: RewardAdOptions): Promise<AdLoadInfo>;
|
|
17
17
|
/**
|
|
18
18
|
* Show a reward video ad
|
|
@@ -21,10 +21,10 @@ export interface RewardDefinitions {
|
|
|
21
21
|
* @since 1.1.2
|
|
22
22
|
*/
|
|
23
23
|
showRewardVideoAd(): Promise<AdMobRewardItem>;
|
|
24
|
-
addListener(eventName: RewardAdPluginEvents.FailedToLoad, listenerFunc: (error: AdMobError) => void): PluginListenerHandle
|
|
25
|
-
addListener(eventName: RewardAdPluginEvents.Loaded, listenerFunc: (info: AdLoadInfo) => void): PluginListenerHandle
|
|
26
|
-
addListener(eventName: RewardAdPluginEvents.Rewarded, listenerFunc: (reward: AdMobRewardItem) => void): PluginListenerHandle
|
|
27
|
-
addListener(eventName: RewardAdPluginEvents.Dismissed, listenerFunc: () => void): PluginListenerHandle
|
|
28
|
-
addListener(eventName: RewardAdPluginEvents.FailedToShow, listenerFunc: (error: AdMobError) => void): PluginListenerHandle
|
|
29
|
-
addListener(eventName: RewardAdPluginEvents.Showed, listenerFunc: () => void): PluginListenerHandle
|
|
24
|
+
addListener(eventName: RewardAdPluginEvents.FailedToLoad, listenerFunc: (error: AdMobError) => void): Promise<PluginListenerHandle>;
|
|
25
|
+
addListener(eventName: RewardAdPluginEvents.Loaded, listenerFunc: (info: AdLoadInfo) => void): Promise<PluginListenerHandle>;
|
|
26
|
+
addListener(eventName: RewardAdPluginEvents.Rewarded, listenerFunc: (reward: AdMobRewardItem) => void): Promise<PluginListenerHandle>;
|
|
27
|
+
addListener(eventName: RewardAdPluginEvents.Dismissed, listenerFunc: () => void): Promise<PluginListenerHandle>;
|
|
28
|
+
addListener(eventName: RewardAdPluginEvents.FailedToShow, listenerFunc: (error: AdMobError) => void): Promise<PluginListenerHandle>;
|
|
29
|
+
addListener(eventName: RewardAdPluginEvents.Showed, listenerFunc: () => void): Promise<PluginListenerHandle>;
|
|
30
30
|
}
|
package/dist/esm/web.d.ts
CHANGED
|
@@ -4,9 +4,7 @@ import type { AdMobRewardItem } from './reward';
|
|
|
4
4
|
import type { AdOptions, AdLoadInfo } from './shared';
|
|
5
5
|
import type { TrackingAuthorizationStatusInterface } from './shared/tracking-authorization-status.interface';
|
|
6
6
|
export declare class AdMobWeb extends WebPlugin implements AdMobPlugin {
|
|
7
|
-
constructor();
|
|
8
7
|
initialize(): Promise<void>;
|
|
9
|
-
targetSettings(): Promise<void>;
|
|
10
8
|
requestTrackingAuthorization(): Promise<void>;
|
|
11
9
|
trackingAuthorizationStatus(): Promise<TrackingAuthorizationStatusInterface>;
|
|
12
10
|
requestConsentInfo(options?: AdmobConsentRequestOptions): Promise<AdmobConsentInfo>;
|
package/dist/esm/web.js
CHANGED
|
@@ -1,18 +1,9 @@
|
|
|
1
1
|
import { WebPlugin } from '@capacitor/core';
|
|
2
2
|
import { AdmobConsentStatus } from './consent/consent-status.enum';
|
|
3
3
|
export class AdMobWeb extends WebPlugin {
|
|
4
|
-
constructor() {
|
|
5
|
-
super({
|
|
6
|
-
name: 'AdMob',
|
|
7
|
-
platforms: ['web'],
|
|
8
|
-
});
|
|
9
|
-
}
|
|
10
4
|
async initialize() {
|
|
11
5
|
console.log('initialize');
|
|
12
6
|
}
|
|
13
|
-
async targetSettings() {
|
|
14
|
-
console.log('targetSettings');
|
|
15
|
-
}
|
|
16
7
|
async requestTrackingAuthorization() {
|
|
17
8
|
console.log('requestTrackingAuthorization');
|
|
18
9
|
}
|
package/dist/esm/web.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAS5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAKnE,MAAM,OAAO,QAAS,SAAQ,SAAS;IACrC
|
|
1
|
+
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAS5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAKnE,MAAM,OAAO,QAAS,SAAQ,SAAS;IACrC,KAAK,CAAC,UAAU;QACd,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IAC5B,CAAC;IAED,KAAK,CAAC,4BAA4B;QAChC,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAAC;IAC9C,CAAC;IAED,KAAK,CAAC,2BAA2B;QAC/B,OAAO;YACL,MAAM,EAAE,YAAY;SACrB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,kBAAkB,CACtB,OAAoC;QAEpC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC;QAC3C,OAAO;YACL,MAAM,EAAE,k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CAAC,OAAkB;QAC3C,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACrB,OAAO;YACL,QAAQ,EAAE,OAAO,CAAC,IAAI;SACvB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,iBAAiB;QACrB,OAAO;YACL,IAAI,EAAE,EAAE;YACR,MAAM,EAAE,CAAC;SACV,CAAC;IACJ,CAAC;CACF"}
|
package/dist/plugin.cjs.js
CHANGED
|
@@ -218,18 +218,9 @@ const AdMob = core.registerPlugin('AdMob', {
|
|
|
218
218
|
});
|
|
219
219
|
|
|
220
220
|
class AdMobWeb extends core.WebPlugin {
|
|
221
|
-
constructor() {
|
|
222
|
-
super({
|
|
223
|
-
name: 'AdMob',
|
|
224
|
-
platforms: ['web'],
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
221
|
async initialize() {
|
|
228
222
|
console.log('initialize');
|
|
229
223
|
}
|
|
230
|
-
async targetSettings() {
|
|
231
|
-
console.log('targetSettings');
|
|
232
|
-
}
|
|
233
224
|
async requestTrackingAuthorization() {
|
|
234
225
|
console.log('requestTrackingAuthorization');
|
|
235
226
|
}
|
package/dist/plugin.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.cjs.js","sources":["esm/definitions.js","esm/banner/banner-ad-plugin-events.enum.js","esm/banner/banner-ad-position.enum.js","esm/banner/banner-ad-size.enum.js","esm/interstitial/interstitial-ad-plugin-events.enum.js","esm/reward/reward-ad-plugin-events.enum.js","esm/consent/consent-status.enum.js","esm/consent/consent-debug-geography.enum.js","esm/index.js","esm/web.js"],"sourcesContent":["export var MaxAdContentRating;\n(function (MaxAdContentRating) {\n /**\n * Content suitable for general audiences, including families.\n */\n MaxAdContentRating[\"General\"] = \"General\";\n /**\n * Content suitable for most audiences with parental guidance.\n */\n MaxAdContentRating[\"ParentalGuidance\"] = \"ParentalGuidance\";\n /**\n * Content suitable for teen and older audiences.\n */\n MaxAdContentRating[\"Teen\"] = \"Teen\";\n /**\n * Content suitable only for mature audiences.\n */\n MaxAdContentRating[\"MatureAudience\"] = \"MatureAudience\";\n})(MaxAdContentRating || (MaxAdContentRating = {}));\n//# sourceMappingURL=definitions.js.map","// This enum should be keep in sync with their native equivalents with the same name\nexport var BannerAdPluginEvents;\n(function (BannerAdPluginEvents) {\n BannerAdPluginEvents[\"SizeChanged\"] = \"bannerAdSizeChanged\";\n BannerAdPluginEvents[\"Loaded\"] = \"bannerAdLoaded\";\n BannerAdPluginEvents[\"FailedToLoad\"] = \"bannerAdFailedToLoad\";\n /**\n * Open \"Adsense\" Event after user click banner\n */\n BannerAdPluginEvents[\"Opened\"] = \"bannerAdOpened\";\n /**\n * Close \"Adsense\" Event after user click banner\n */\n BannerAdPluginEvents[\"Closed\"] = \"bannerAdClosed\";\n /**\n * Similarly, this method should be called when an impression is recorded for the ad by the mediated SDK.\n */\n BannerAdPluginEvents[\"AdImpression\"] = \"bannerAdImpression\";\n})(BannerAdPluginEvents || (BannerAdPluginEvents = {}));\n//# sourceMappingURL=banner-ad-plugin-events.enum.js.map","/**\n * @see https://developer.android.com/reference/android/widget/LinearLayout#attr_android:gravity\n */\nexport var BannerAdPosition;\n(function (BannerAdPosition) {\n /**\n * Banner position be top-center\n */\n BannerAdPosition[\"TOP_CENTER\"] = \"TOP_CENTER\";\n /**\n * Banner position be center\n */\n BannerAdPosition[\"CENTER\"] = \"CENTER\";\n /**\n * Banner position be bottom-center(default)\n */\n BannerAdPosition[\"BOTTOM_CENTER\"] = \"BOTTOM_CENTER\";\n})(BannerAdPosition || (BannerAdPosition = {}));\n//# sourceMappingURL=banner-ad-position.enum.js.map","/**\n * For more information:\n * https://developers.google.com/admob/ios/banner#banner_sizes\n * https://developers.google.com/android/reference/com/google/android/gms/ads/AdSize\n *\n * */\nexport var BannerAdSize;\n(function (BannerAdSize) {\n /**\n * Mobile Marketing Association (MMA)\n * banner ad size (320x50 density-independent pixels).\n */\n BannerAdSize[\"BANNER\"] = \"BANNER\";\n /**\n * Interactive Advertising Bureau (IAB)\n * full banner ad size (468x60 density-independent pixels).\n */\n BannerAdSize[\"FULL_BANNER\"] = \"FULL_BANNER\";\n /**\n * Large banner ad size (320x100 density-independent pixels).\n */\n BannerAdSize[\"LARGE_BANNER\"] = \"LARGE_BANNER\";\n /**\n * Interactive Advertising Bureau (IAB)\n * medium rectangle ad size (300x250 density-independent pixels).\n */\n BannerAdSize[\"MEDIUM_RECTANGLE\"] = \"MEDIUM_RECTANGLE\";\n /**\n * Interactive Advertising Bureau (IAB)\n * leaderboard ad size (728x90 density-independent pixels).\n */\n BannerAdSize[\"LEADERBOARD\"] = \"LEADERBOARD\";\n /**\n * A dynamically sized banner that is full-width and auto-height.\n */\n BannerAdSize[\"ADAPTIVE_BANNER\"] = \"ADAPTIVE_BANNER\";\n /**\n * @deprecated\n * Will be removed in next AdMob versions use `ADAPTIVE_BANNER`\n * Screen width x 32|50|90\n */\n BannerAdSize[\"SMART_BANNER\"] = \"SMART_BANNER\";\n})(BannerAdSize || (BannerAdSize = {}));\n//# sourceMappingURL=banner-ad-size.enum.js.map","// This enum should be keep in sync with their native equivalents with the same name\nexport var InterstitialAdPluginEvents;\n(function (InterstitialAdPluginEvents) {\n /**\n * Emits after trying to prepare and Interstitial, when it is loaded and ready to be show\n */\n InterstitialAdPluginEvents[\"Loaded\"] = \"interstitialAdLoaded\";\n /**\n * Emits after trying to prepare and Interstitial, when it could not be loaded\n */\n InterstitialAdPluginEvents[\"FailedToLoad\"] = \"interstitialAdFailedToLoad\";\n /**\n * Emits when the Interstitial ad is visible to the user\n */\n InterstitialAdPluginEvents[\"Showed\"] = \"interstitialAdShowed\";\n /**\n * Emits when the Interstitial ad is failed to show\n */\n InterstitialAdPluginEvents[\"FailedToShow\"] = \"interstitialAdFailedToShow\";\n /**\n * Emits when the Interstitial ad is not visible to the user anymore.\n */\n InterstitialAdPluginEvents[\"Dismissed\"] = \"interstitialAdDismissed\";\n})(InterstitialAdPluginEvents || (InterstitialAdPluginEvents = {}));\n//# sourceMappingURL=interstitial-ad-plugin-events.enum.js.map","// This enum should be keep in sync with their native equivalents with the same name\nexport var RewardAdPluginEvents;\n(function (RewardAdPluginEvents) {\n /**\n * Emits after trying to prepare a RewardAd and the Video is loaded and ready to be show\n */\n RewardAdPluginEvents[\"Loaded\"] = \"onRewardedVideoAdLoaded\";\n /**\n * Emits after trying to prepare a RewardAd when it could not be loaded\n */\n RewardAdPluginEvents[\"FailedToLoad\"] = \"onRewardedVideoAdFailedToLoad\";\n /**\n * Emits when the AdReward video is visible to the user\n */\n RewardAdPluginEvents[\"Showed\"] = \"onRewardedVideoAdShowed\";\n /**\n * Emits when the AdReward video is failed to show\n */\n RewardAdPluginEvents[\"FailedToShow\"] = \"onRewardedVideoAdFailedToShow\";\n /**\n * Emits when the AdReward video is not visible to the user anymore.\n *\n * **Important**: This has nothing to do with the reward it self. This event\n * will emits in this two cases:\n * 1. The user starts the video ad but close it before the reward emit.\n * 2. The user start the video and see it until end, then gets the reward\n * and after that the ad is closed.\n */\n RewardAdPluginEvents[\"Dismissed\"] = \"onRewardedVideoAdDismissed\";\n /**\n * Emits when user get rewarded from AdReward\n */\n RewardAdPluginEvents[\"Rewarded\"] = \"onRewardedVideoAdReward\";\n})(RewardAdPluginEvents || (RewardAdPluginEvents = {}));\n//# sourceMappingURL=reward-ad-plugin-events.enum.js.map","/**\n * For more information:\n * https://developers.google.com/admob/unity/reference/namespace/google-mobile-ads/ump/api#consentstatus\n *\n * */\nexport var AdmobConsentStatus;\n(function (AdmobConsentStatus) {\n /**\n * User consent not required.\n */\n AdmobConsentStatus[\"NOT_REQUIRED\"] = \"NOT_REQUIRED\";\n /**\n * User consent already obtained.\n */\n AdmobConsentStatus[\"OBTAINED\"] = \"OBTAINED\";\n /**\n * User consent required but not yet obtained.\n */\n AdmobConsentStatus[\"REQUIRED\"] = \"REQUIRED\";\n /**\n * Unknown consent status, AdsConsent.requestInfoUpdate needs to be called to update it.\n */\n AdmobConsentStatus[\"UNKNOWN\"] = \"UNKNOWN\";\n})(AdmobConsentStatus || (AdmobConsentStatus = {}));\n//# sourceMappingURL=consent-status.enum.js.map","/**\n * For more information:\n * https://developers.google.com/admob/unity/reference/namespace/google-mobile-ads/ump/api#debuggeography\n *\n * */\nexport var AdmobConsentDebugGeography;\n(function (AdmobConsentDebugGeography) {\n /**\n * Debug geography disabled.\n */\n AdmobConsentDebugGeography[AdmobConsentDebugGeography[\"DISABLED\"] = 0] = \"DISABLED\";\n /**\n * Geography appears as in EEA for debug devices.\n */\n AdmobConsentDebugGeography[AdmobConsentDebugGeography[\"EEA\"] = 1] = \"EEA\";\n /**\n * Geography appears as not in EEA for debug devices.\n */\n AdmobConsentDebugGeography[AdmobConsentDebugGeography[\"NOT_EEA\"] = 2] = \"NOT_EEA\";\n})(AdmobConsentDebugGeography || (AdmobConsentDebugGeography = {}));\n//# sourceMappingURL=consent-debug-geography.enum.js.map","import { registerPlugin } from '@capacitor/core';\nconst AdMob = registerPlugin('AdMob', {\n web: () => import('./web').then(m => new m.AdMobWeb()),\n});\nexport * from './definitions';\nexport * from './banner/index';\nexport * from './interstitial/index';\nexport * from './reward/index';\nexport * from './consent/index';\nexport * from './shared/index';\nexport { AdMob };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nimport { AdmobConsentStatus } from './consent/consent-status.enum';\nexport class AdMobWeb extends WebPlugin {\n constructor() {\n super({\n name: 'AdMob',\n platforms: ['web'],\n });\n }\n async initialize() {\n console.log('initialize');\n }\n async targetSettings() {\n console.log('targetSettings');\n }\n async requestTrackingAuthorization() {\n console.log('requestTrackingAuthorization');\n }\n async trackingAuthorizationStatus() {\n return {\n status: 'authorized',\n };\n }\n async requestConsentInfo(options) {\n console.log('requestConsentInfo', options);\n return {\n status: AdmobConsentStatus.REQUIRED,\n isConsentFormAvailable: true,\n };\n }\n async showConsentForm() {\n console.log('showConsentForm');\n return {\n status: AdmobConsentStatus.REQUIRED,\n };\n }\n async resetConsentInfo() {\n console.log('resetConsentInfo');\n }\n async setApplicationMuted(options) {\n console.log('setApplicationMuted', options);\n }\n async setApplicationVolume(options) {\n console.log('setApplicationVolume', options);\n }\n async showBanner(options) {\n console.log('showBanner', options);\n }\n // Hide the banner, remove it from screen, but can show it later\n async hideBanner() {\n console.log('hideBanner');\n }\n // Resume the banner, show it after hide\n async resumeBanner() {\n console.log('resumeBanner');\n }\n // Destroy the banner, remove it from screen.\n async removeBanner() {\n console.log('removeBanner');\n }\n async prepareInterstitial(options) {\n console.log('prepareInterstitial', options);\n return {\n adUnitId: options.adId,\n };\n }\n async showInterstitial() {\n console.log('showInterstitial');\n }\n async prepareRewardVideoAd(options) {\n console.log(options);\n return {\n adUnitId: options.adId,\n };\n }\n async showRewardVideoAd() {\n return {\n type: '',\n amount: 0,\n };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["MaxAdContentRating","BannerAdPluginEvents","BannerAdPosition","BannerAdSize","InterstitialAdPluginEvents","RewardAdPluginEvents","AdmobConsentStatus","AdmobConsentDebugGeography","registerPlugin","WebPlugin"],"mappings":";;;;;;AAAWA,oCAAmB;AAC9B,CAAC,UAAU,kBAAkB,EAAE;AAC/B;AACA;AACA;AACA,IAAI,kBAAkB,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;AAC9C;AACA;AACA;AACA,IAAI,kBAAkB,CAAC,kBAAkB,CAAC,GAAG,kBAAkB,CAAC;AAChE;AACA;AACA;AACA,IAAI,kBAAkB,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;AACxC;AACA;AACA;AACA,IAAI,kBAAkB,CAAC,gBAAgB,CAAC,GAAG,gBAAgB,CAAC;AAC5D,CAAC,EAAEA,0BAAkB,KAAKA,0BAAkB,GAAG,EAAE,CAAC,CAAC;;AClBnD;AACWC,sCAAqB;AAChC,CAAC,UAAU,oBAAoB,EAAE;AACjC,IAAI,oBAAoB,CAAC,aAAa,CAAC,GAAG,qBAAqB,CAAC;AAChE,IAAI,oBAAoB,CAAC,QAAQ,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I,MAAM,UAAU,CAAC,OAAO,EAAE;AAC9B,QAAQ,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;AAC3C,KAAK;AACL;AACA,IAAI,MAAM,UAAU,GAAG;AACvB,QAAQ,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;AAClC,KAAK;AACL;AACA,IAAI,MAAM,YAAY,GAAG;AACzB,QAAQ,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;AACpC,KAAK;AACL;AACA,IAAI,MAAM,YAAY,GAAG;AACzB,QAAQ,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;AACpC,KAAK;AACL,IAAI,MAAM,mBAAmB,CAAC,OAAO,EAAE;AACvC,QAAQ,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;AACpD,QAAQ,OAAO;AACf,YAAY,QAAQ,EAAE,OAAO,CAAC,IAAI;AAClC,SAAS,CAAC;AACV,KAAK;AACL,IAAI,MAAM,gBAAgB,GAAG;AAC7B,QAAQ,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;AACxC,KAAK;AACL,IAAI,MAAM,oBAAoB,CAAC,OAAO,EAAE;AACxC,QAAQ,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AAC7B,QAAQ,OAAO;AACf,YAAY,QAAQ,EAAE,OAAO,CAAC,IAAI;AAClC,SAAS,CAAC;AACV,KAAK;AACL,IAAI,MAAM,iBAAiB,GAAG;AAC9B,QAAQ,OAAO;AACf,YAAY,IAAI,EAAE,EAAE;AACpB,YAAY,MAAM,EAAE,CAAC;AACrB,SAAS,CAAC;AACV,KAAK;AACL;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"plugin.cjs.js","sources":["esm/definitions.js","esm/banner/banner-ad-plugin-events.enum.js","esm/banner/banner-ad-position.enum.js","esm/banner/banner-ad-size.enum.js","esm/interstitial/interstitial-ad-plugin-events.enum.js","esm/reward/reward-ad-plugin-events.enum.js","esm/consent/consent-status.enum.js","esm/consent/consent-debug-geography.enum.js","esm/index.js","esm/web.js"],"sourcesContent":["export var MaxAdContentRating;\n(function (MaxAdContentRating) {\n /**\n * Content suitable for general audiences, including families.\n */\n MaxAdContentRating[\"General\"] = \"General\";\n /**\n * Content suitable for most audiences with parental guidance.\n */\n MaxAdContentRating[\"ParentalGuidance\"] = \"ParentalGuidance\";\n /**\n * Content suitable for teen and older audiences.\n */\n MaxAdContentRating[\"Teen\"] = \"Teen\";\n /**\n * Content suitable only for mature audiences.\n */\n MaxAdContentRating[\"MatureAudience\"] = \"MatureAudience\";\n})(MaxAdContentRating || (MaxAdContentRating = {}));\n//# sourceMappingURL=definitions.js.map","// This enum should be keep in sync with their native equivalents with the same name\nexport var BannerAdPluginEvents;\n(function (BannerAdPluginEvents) {\n BannerAdPluginEvents[\"SizeChanged\"] = \"bannerAdSizeChanged\";\n BannerAdPluginEvents[\"Loaded\"] = \"bannerAdLoaded\";\n BannerAdPluginEvents[\"FailedToLoad\"] = \"bannerAdFailedToLoad\";\n /**\n * Open \"Adsense\" Event after user click banner\n */\n BannerAdPluginEvents[\"Opened\"] = \"bannerAdOpened\";\n /**\n * Close \"Adsense\" Event after user click banner\n */\n BannerAdPluginEvents[\"Closed\"] = \"bannerAdClosed\";\n /**\n * Similarly, this method should be called when an impression is recorded for the ad by the mediated SDK.\n */\n BannerAdPluginEvents[\"AdImpression\"] = \"bannerAdImpression\";\n})(BannerAdPluginEvents || (BannerAdPluginEvents = {}));\n//# sourceMappingURL=banner-ad-plugin-events.enum.js.map","/**\n * @see https://developer.android.com/reference/android/widget/LinearLayout#attr_android:gravity\n */\nexport var BannerAdPosition;\n(function (BannerAdPosition) {\n /**\n * Banner position be top-center\n */\n BannerAdPosition[\"TOP_CENTER\"] = \"TOP_CENTER\";\n /**\n * Banner position be center\n */\n BannerAdPosition[\"CENTER\"] = \"CENTER\";\n /**\n * Banner position be bottom-center(default)\n */\n BannerAdPosition[\"BOTTOM_CENTER\"] = \"BOTTOM_CENTER\";\n})(BannerAdPosition || (BannerAdPosition = {}));\n//# sourceMappingURL=banner-ad-position.enum.js.map","/**\n * For more information:\n * https://developers.google.com/admob/ios/banner#banner_sizes\n * https://developers.google.com/android/reference/com/google/android/gms/ads/AdSize\n *\n * */\nexport var BannerAdSize;\n(function (BannerAdSize) {\n /**\n * Mobile Marketing Association (MMA)\n * banner ad size (320x50 density-independent pixels).\n */\n BannerAdSize[\"BANNER\"] = \"BANNER\";\n /**\n * Interactive Advertising Bureau (IAB)\n * full banner ad size (468x60 density-independent pixels).\n */\n BannerAdSize[\"FULL_BANNER\"] = \"FULL_BANNER\";\n /**\n * Large banner ad size (320x100 density-independent pixels).\n */\n BannerAdSize[\"LARGE_BANNER\"] = \"LARGE_BANNER\";\n /**\n * Interactive Advertising Bureau (IAB)\n * medium rectangle ad size (300x250 density-independent pixels).\n */\n BannerAdSize[\"MEDIUM_RECTANGLE\"] = \"MEDIUM_RECTANGLE\";\n /**\n * Interactive Advertising Bureau (IAB)\n * leaderboard ad size (728x90 density-independent pixels).\n */\n BannerAdSize[\"LEADERBOARD\"] = \"LEADERBOARD\";\n /**\n * A dynamically sized banner that is full-width and auto-height.\n */\n BannerAdSize[\"ADAPTIVE_BANNER\"] = \"ADAPTIVE_BANNER\";\n /**\n * @deprecated\n * Will be removed in next AdMob versions use `ADAPTIVE_BANNER`\n * Screen width x 32|50|90\n */\n BannerAdSize[\"SMART_BANNER\"] = \"SMART_BANNER\";\n})(BannerAdSize || (BannerAdSize = {}));\n//# sourceMappingURL=banner-ad-size.enum.js.map","// This enum should be keep in sync with their native equivalents with the same name\nexport var InterstitialAdPluginEvents;\n(function (InterstitialAdPluginEvents) {\n /**\n * Emits after trying to prepare and Interstitial, when it is loaded and ready to be show\n */\n InterstitialAdPluginEvents[\"Loaded\"] = \"interstitialAdLoaded\";\n /**\n * Emits after trying to prepare and Interstitial, when it could not be loaded\n */\n InterstitialAdPluginEvents[\"FailedToLoad\"] = \"interstitialAdFailedToLoad\";\n /**\n * Emits when the Interstitial ad is visible to the user\n */\n InterstitialAdPluginEvents[\"Showed\"] = \"interstitialAdShowed\";\n /**\n * Emits when the Interstitial ad is failed to show\n */\n InterstitialAdPluginEvents[\"FailedToShow\"] = \"interstitialAdFailedToShow\";\n /**\n * Emits when the Interstitial ad is not visible to the user anymore.\n */\n InterstitialAdPluginEvents[\"Dismissed\"] = \"interstitialAdDismissed\";\n})(InterstitialAdPluginEvents || (InterstitialAdPluginEvents = {}));\n//# sourceMappingURL=interstitial-ad-plugin-events.enum.js.map","// This enum should be keep in sync with their native equivalents with the same name\nexport var RewardAdPluginEvents;\n(function (RewardAdPluginEvents) {\n /**\n * Emits after trying to prepare a RewardAd and the Video is loaded and ready to be show\n */\n RewardAdPluginEvents[\"Loaded\"] = \"onRewardedVideoAdLoaded\";\n /**\n * Emits after trying to prepare a RewardAd when it could not be loaded\n */\n RewardAdPluginEvents[\"FailedToLoad\"] = \"onRewardedVideoAdFailedToLoad\";\n /**\n * Emits when the AdReward video is visible to the user\n */\n RewardAdPluginEvents[\"Showed\"] = \"onRewardedVideoAdShowed\";\n /**\n * Emits when the AdReward video is failed to show\n */\n RewardAdPluginEvents[\"FailedToShow\"] = \"onRewardedVideoAdFailedToShow\";\n /**\n * Emits when the AdReward video is not visible to the user anymore.\n *\n * **Important**: This has nothing to do with the reward it self. This event\n * will emits in this two cases:\n * 1. The user starts the video ad but close it before the reward emit.\n * 2. The user start the video and see it until end, then gets the reward\n * and after that the ad is closed.\n */\n RewardAdPluginEvents[\"Dismissed\"] = \"onRewardedVideoAdDismissed\";\n /**\n * Emits when user get rewarded from AdReward\n */\n RewardAdPluginEvents[\"Rewarded\"] = \"onRewardedVideoAdReward\";\n})(RewardAdPluginEvents || (RewardAdPluginEvents = {}));\n//# sourceMappingURL=reward-ad-plugin-events.enum.js.map","/**\n * For more information:\n * https://developers.google.com/admob/unity/reference/namespace/google-mobile-ads/ump/api#consentstatus\n *\n * */\nexport var AdmobConsentStatus;\n(function (AdmobConsentStatus) {\n /**\n * User consent not required.\n */\n AdmobConsentStatus[\"NOT_REQUIRED\"] = \"NOT_REQUIRED\";\n /**\n * User consent already obtained.\n */\n AdmobConsentStatus[\"OBTAINED\"] = \"OBTAINED\";\n /**\n * User consent required but not yet obtained.\n */\n AdmobConsentStatus[\"REQUIRED\"] = \"REQUIRED\";\n /**\n * Unknown consent status, AdsConsent.requestInfoUpdate needs to be called to update it.\n */\n AdmobConsentStatus[\"UNKNOWN\"] = \"UNKNOWN\";\n})(AdmobConsentStatus || (AdmobConsentStatus = {}));\n//# sourceMappingURL=consent-status.enum.js.map","/**\n * For more information:\n * https://developers.google.com/admob/unity/reference/namespace/google-mobile-ads/ump/api#debuggeography\n *\n * */\nexport var AdmobConsentDebugGeography;\n(function (AdmobConsentDebugGeography) {\n /**\n * Debug geography disabled.\n */\n AdmobConsentDebugGeography[AdmobConsentDebugGeography[\"DISABLED\"] = 0] = \"DISABLED\";\n /**\n * Geography appears as in EEA for debug devices.\n */\n AdmobConsentDebugGeography[AdmobConsentDebugGeography[\"EEA\"] = 1] = \"EEA\";\n /**\n * Geography appears as not in EEA for debug devices.\n */\n AdmobConsentDebugGeography[AdmobConsentDebugGeography[\"NOT_EEA\"] = 2] = \"NOT_EEA\";\n})(AdmobConsentDebugGeography || (AdmobConsentDebugGeography = {}));\n//# sourceMappingURL=consent-debug-geography.enum.js.map","import { registerPlugin } from '@capacitor/core';\nconst AdMob = registerPlugin('AdMob', {\n web: () => import('./web').then(m => new m.AdMobWeb()),\n});\nexport * from './definitions';\nexport * from './banner/index';\nexport * from './interstitial/index';\nexport * from './reward/index';\nexport * from './consent/index';\nexport * from './shared/index';\nexport { AdMob };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nimport { AdmobConsentStatus } from './consent/consent-status.enum';\nexport class AdMobWeb extends WebPlugin {\n async initialize() {\n console.log('initialize');\n }\n async requestTrackingAuthorization() {\n console.log('requestTrackingAuthorization');\n }\n async trackingAuthorizationStatus() {\n return {\n status: 'authorized',\n };\n }\n async requestConsentInfo(options) {\n console.log('requestConsentInfo', options);\n return {\n status: AdmobConsentStatus.REQUIRED,\n isConsentFormAvailable: true,\n };\n }\n async showConsentForm() {\n console.log('showConsentForm');\n return {\n status: AdmobConsentStatus.REQUIRED,\n };\n }\n async resetConsentInfo() {\n console.log('resetConsentInfo');\n }\n async setApplicationMuted(options) {\n console.log('setApplicationMuted', options);\n }\n async setApplicationVolume(options) {\n console.log('setApplicationVolume', options);\n }\n async showBanner(options) {\n console.log('showBanner', options);\n }\n // Hide the banner, remove it from screen, but can show it later\n async hideBanner() {\n console.log('hideBanner');\n }\n // Resume the banner, show it after hide\n async resumeBanner() {\n console.log('resumeBanner');\n }\n // Destroy the banner, remove it from screen.\n async removeBanner() {\n console.log('removeBanner');\n }\n async prepareInterstitial(options) {\n console.log('prepareInterstitial', options);\n return {\n adUnitId: options.adId,\n };\n }\n async showInterstitial() {\n console.log('showInterstitial');\n }\n async prepareRewardVideoAd(options) {\n console.log(options);\n return {\n adUnitId: options.adId,\n };\n }\n async showRewardVideoAd() {\n return {\n type: '',\n amount: 0,\n };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["MaxAdContentRating","BannerAdPluginEvents","BannerAdPosition","BannerAdSize","InterstitialAdPluginEvents","RewardAdPluginEvents","AdmobConsentStatus","AdmobConsentDebugGeography","registerPlugin","WebPlugin"],"mappings":";;;;;;AAAWA,oCAAmB;AAC9B,CAAC,UAAU,kBAAkB,EAAE;AAC/B;AACA;AACA;AACA,IAAI,kBAAkB,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;AAC9C;AACA;AACA;AACA,IAAI,kBAAkB,CAAC,kBAAkB,CAAC,GAAG,kBAAkB,CAAC;AAChE;AACA;AACA;AACA,IAAI,kBAAkB,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;AACxC;AACA;AACA;AACA,IAAI,kBAAkB,CAAC,gBAA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UAAU,CAAC,OAAO,EAAE;AAC9B,QAAQ,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;AAC3C,KAAK;AACL;AACA,IAAI,MAAM,UAAU,GAAG;AACvB,QAAQ,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;AAClC,KAAK;AACL;AACA,IAAI,MAAM,YAAY,GAAG;AACzB,QAAQ,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;AACpC,KAAK;AACL;AACA,IAAI,MAAM,YAAY,GAAG;AACzB,QAAQ,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;AACpC,KAAK;AACL,IAAI,MAAM,mBAAmB,CAAC,OAAO,EAAE;AACvC,QAAQ,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;AACpD,QAAQ,OAAO;AACf,YAAY,QAAQ,EAAE,OAAO,CAAC,IAAI;AAClC,SAAS,CAAC;AACV,KAAK;AACL,IAAI,MAAM,gBAAgB,GAAG;AAC7B,QAAQ,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;AACxC,KAAK;AACL,IAAI,MAAM,oBAAoB,CAAC,OAAO,EAAE;AACxC,QAAQ,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AAC7B,QAAQ,OAAO;AACf,YAAY,QAAQ,EAAE,OAAO,CAAC,IAAI;AAClC,SAAS,CAAC;AACV,KAAK;AACL,IAAI,MAAM,iBAAiB,GAAG;AAC9B,QAAQ,OAAO;AACf,YAAY,IAAI,EAAE,EAAE;AACpB,YAAY,MAAM,EAAE,CAAC;AACrB,SAAS,CAAC;AACV,KAAK;AACL;;;;;;;;;"}
|
package/dist/plugin.js
CHANGED
|
@@ -215,18 +215,9 @@ var AdMobPlugin = (function (exports, core) {
|
|
|
215
215
|
});
|
|
216
216
|
|
|
217
217
|
class AdMobWeb extends core.WebPlugin {
|
|
218
|
-
constructor() {
|
|
219
|
-
super({
|
|
220
|
-
name: 'AdMob',
|
|
221
|
-
platforms: ['web'],
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
218
|
async initialize() {
|
|
225
219
|
console.log('initialize');
|
|
226
220
|
}
|
|
227
|
-
async targetSettings() {
|
|
228
|
-
console.log('targetSettings');
|
|
229
|
-
}
|
|
230
221
|
async requestTrackingAuthorization() {
|
|
231
222
|
console.log('requestTrackingAuthorization');
|
|
232
223
|
}
|