emi-indo-cordova-plugin-admob 1.4.3 → 1.4.5
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 +456 -219
- package/example/Advanced topics/globalSettings.html +1 -0
- package/example/banner_ads.html +15 -1
- package/example/wewrtr.html +0 -0
- package/package.json +1 -1
- package/plugin.xml +1 -1
- package/src/android/emiAdmobPlugin.java +1 -1
- package/src/ios/emiAdmobPlugin.h +1 -0
- package/src/ios/emiAdmobPlugin.m +2622 -501
- package/www/emiAdmobPlugin.js +15 -16
package/www/emiAdmobPlugin.js
CHANGED
@@ -3,14 +3,14 @@ var exec = require('cordova/exec');
|
|
3
3
|
exports.initialize = function (success, error) {
|
4
4
|
exec(success, error, 'emiAdmobPlugin', 'initialize', []);
|
5
5
|
};
|
6
|
-
exports.loadAppOpenAd = function (arg0,
|
7
|
-
exec(success, error, 'emiAdmobPlugin', 'loadAppOpenAd', arg0
|
6
|
+
exports.loadAppOpenAd = function (arg0, success, error) {
|
7
|
+
exec(success, error, 'emiAdmobPlugin', 'loadAppOpenAd', arg0);
|
8
8
|
};
|
9
9
|
exports.showAppOpenAd = function (success, error) {
|
10
10
|
exec(success, error, 'emiAdmobPlugin', 'showAppOpenAd', []);
|
11
11
|
};
|
12
|
-
exports.loadBannerAd = function (arg0,
|
13
|
-
exec(success, error, 'emiAdmobPlugin', 'loadBannerAd', arg0
|
12
|
+
exports.loadBannerAd = function (arg0, success, error) {
|
13
|
+
exec(success, error, 'emiAdmobPlugin', 'loadBannerAd', arg0);
|
14
14
|
};
|
15
15
|
exports.showBannerAd = function (success, error) {
|
16
16
|
exec(success, error, 'emiAdmobPlugin', 'showBannerAd', []);
|
@@ -21,20 +21,20 @@ exports.hideBannerAd = function (success, error) {
|
|
21
21
|
exports.removeBannerAd = function (arg0, success, error) {
|
22
22
|
exec(success, error, 'emiAdmobPlugin', 'removeBannerAd', [arg0]);
|
23
23
|
};
|
24
|
-
exports.loadInterstitialAd = function (arg0,
|
25
|
-
exec(success, error, 'emiAdmobPlugin', 'loadInterstitialAd', arg0
|
24
|
+
exports.loadInterstitialAd = function (arg0, success, error) {
|
25
|
+
exec(success, error, 'emiAdmobPlugin', 'loadInterstitialAd', arg0);
|
26
26
|
};
|
27
27
|
exports.showInterstitialAd = function (success, error) {
|
28
28
|
exec(success, error, 'emiAdmobPlugin', 'showInterstitialAd', []);
|
29
29
|
};
|
30
|
-
exports.loadRewardedAd = function (arg0,
|
31
|
-
exec(success, error, 'emiAdmobPlugin', 'loadRewardedAd', arg0
|
30
|
+
exports.loadRewardedAd = function (arg0, success, error) {
|
31
|
+
exec(success, error, 'emiAdmobPlugin', 'loadRewardedAd', arg0);
|
32
32
|
};
|
33
33
|
exports.showRewardedAd = function (success, error) {
|
34
34
|
exec(success, error, 'emiAdmobPlugin', 'showRewardedAd', []);
|
35
35
|
};
|
36
|
-
exports.loadRewardedInterstitialAd = function (arg0,
|
37
|
-
exec(success, error, 'emiAdmobPlugin', 'loadRewardedInterstitialAd', arg0
|
36
|
+
exports.loadRewardedInterstitialAd = function (arg0, success, error) {
|
37
|
+
exec(success, error, 'emiAdmobPlugin', 'loadRewardedInterstitialAd', arg0);
|
38
38
|
};
|
39
39
|
exports.showRewardedInterstitialAd = function (success, error) {
|
40
40
|
exec(success, error, 'emiAdmobPlugin', 'showRewardedInterstitialAd', []);
|
@@ -48,8 +48,8 @@ exports.getConsentRequest = function (success, error) {
|
|
48
48
|
exports.consentReset = function (success, error) {
|
49
49
|
exec(success, error, 'emiAdmobPlugin', 'consentReset', []);
|
50
50
|
};
|
51
|
-
exports.targeting = function (arg0,
|
52
|
-
exec(success, error, 'emiAdmobPlugin', 'targeting', arg0
|
51
|
+
exports.targeting = function (arg0, success, error) {
|
52
|
+
exec(success, error, 'emiAdmobPlugin', 'targeting', arg0);
|
53
53
|
};
|
54
54
|
exports.getIabTfc = function (success, error) {
|
55
55
|
exec(success, error, 'emiAdmobPlugin', 'getIabTfc', []);
|
@@ -57,7 +57,6 @@ exports.getIabTfc = function (success, error) {
|
|
57
57
|
exports.showPrivacyOptionsForm = function (success, error) {
|
58
58
|
exec(success, error, 'emiAdmobPlugin', 'showPrivacyOptionsForm', []);
|
59
59
|
};
|
60
|
-
exports.globalSettings = function (arg0,
|
61
|
-
exec(success, error, 'emiAdmobPlugin', 'globalSettings', arg0
|
62
|
-
};
|
63
|
-
|
60
|
+
exports.globalSettings = function (arg0, success, error) {
|
61
|
+
exec(success, error, 'emiAdmobPlugin', 'globalSettings', arg0);
|
62
|
+
};
|