emi-indo-cordova-plugin-admob 2.0.5 → 2.0.7
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 +199 -53
- package/example/capacitor.config.json +1 -1
- package/example/config.xml +7 -0
- package/example/package.json +1 -1
- package/example/www/css/index.css +59 -109
- package/example/www/index.html +38 -39
- package/example/www/js/bannerAd.js +7 -62
- package/example/www/js/deviceready.js +6 -6
- package/example/www/js/interstitialAd.js +0 -2
- package/example/www/js/optionalFirebaseAnalytics.js +0 -2
- package/example/www/js/rewardedAd.js +0 -2
- package/package.json +1 -1
- package/plugin.xml +7 -9
- package/src/android/emiAdmobPlugin.kt +438 -256
- package/src/ios/emiAdmobPlugin.m +280 -184
- package/www/emiAdmobPlugin.js +3 -0
package/README.md
CHANGED
@@ -1,4 +1,130 @@
|
|
1
|
-
|
1
|
+
### emi-indo-cordova-plugin-admob@2.0.7
|
2
|
+
|
3
|
+
|
4
|
+
## Features/method
|
5
|
+
- initialize
|
6
|
+
- targeting
|
7
|
+
- globalSettings
|
8
|
+
- AppTrackingTransparency (ATT)
|
9
|
+
- CMP SDK
|
10
|
+
- UMP SDK
|
11
|
+
- CustomConsentManager
|
12
|
+
- App Open Ads
|
13
|
+
- Banner Ads including (Collapsible)
|
14
|
+
- Interstitial Ads
|
15
|
+
- Rewarded Ads
|
16
|
+
- Adsense
|
17
|
+
- Mediation
|
18
|
+
- impression-level-ad-revenue
|
19
|
+
- targetingAdRequest
|
20
|
+
- setPersonalizationState
|
21
|
+
- setPPS
|
22
|
+
|
23
|
+
## new version of the plugin @2.0.7 or higher
|
24
|
+
- Migrate from Mobile Ads SDK (Android) v23 to v24
|
25
|
+
- Migrate from Mobile Ads SDK (iOS) SDK version v11 to v12
|
26
|
+
- Migrate from Cordova Android 13.0.0 to 14.0.0
|
27
|
+
- And maybe some APIs are re-signed, the old api will not be disturbed.
|
28
|
+
- https://cordova.apache.org/announcements/2025/03/26/cordova-android-14.0.0.html
|
29
|
+
- Full of simple examples: https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/tree/main/example/www/js
|
30
|
+
- Check all release notes: https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/releases/
|
31
|
+
```
|
32
|
+
config.xml
|
33
|
+
<preference name="fullscreen" value="false" />
|
34
|
+
<preference name="android-minSdkVersion" value="23" />
|
35
|
+
<preference name="android-targetSdkVersion" value="35" />
|
36
|
+
```
|
37
|
+
|
38
|
+
<h3>Screenshots banner ad no overlapping</h3>
|
39
|
+
|
40
|
+
<table>
|
41
|
+
<tr>
|
42
|
+
<td align="left"><strong>Banner Ad</strong></td>
|
43
|
+
<td align="center"><strong>Collapsible, no overlapping, non full-screen</strong></td>
|
44
|
+
<td align="center"><strong>Collapsible close, no overlapping, non full-screen</strong></td>
|
45
|
+
<td align="center"><strong>Collapsible, no overlapping, full-screen</strong></td>
|
46
|
+
<td align="center"><strong>Collapsible close, no overlapping, full-screen</strong></td>
|
47
|
+
</tr>
|
48
|
+
|
49
|
+
The height of the body is reduced by the height of the banner, || Auto-detect whether it is in full-screen mode or not.
|
50
|
+
|
51
|
+
<tr>
|
52
|
+
<td></td>
|
53
|
+
<td align="center">
|
54
|
+
<img width="200" src="https://github.com/user-attachments/assets/53b832d2-8d15-4450-919b-9833569d0ffb" alt="Banner Ad" />
|
55
|
+
</td>
|
56
|
+
<td align="center">
|
57
|
+
<img width="200" src="https://github.com/user-attachments/assets/80ebf83f-b8fd-4a4c-8121-e2088005399d" alt="Banner Ad" />
|
58
|
+
</td>
|
59
|
+
<td align="center">
|
60
|
+
<img width="200" src="https://github.com/user-attachments/assets/13c3333f-b612-426e-8c3a-1e31695dc548" alt="Banner Ad" />
|
61
|
+
</td>
|
62
|
+
<td align="center">
|
63
|
+
<img width="200" src="https://github.com/user-attachments/assets/f4583d93-5764-4d24-a11c-ffdf623cb50a" alt="Banner Ad" />
|
64
|
+
</td>
|
65
|
+
</tr>
|
66
|
+
</table>
|
67
|
+
|
68
|
+
|
69
|
+
<h3>Screenshots banner ad overlapping</h3>
|
70
|
+
|
71
|
+
<table>
|
72
|
+
<tr>
|
73
|
+
<td align="left"><strong>Banner Ad</strong></td>
|
74
|
+
<td align="center"><strong>Collapsible, overlapping, full-screen</strong></td>
|
75
|
+
<td align="center"><strong>Collapsible close, overlapping, full-screen</strong></td>
|
76
|
+
<td align="center"><strong>Collapsible, overlapping, non full-screen</strong></td>
|
77
|
+
<td align="center"><strong>Collapsible close, overlapping, full-screen</strong></td>
|
78
|
+
</tr>
|
79
|
+
|
80
|
+
The body height is not reduced, the banner overlaps on top of the body, || Auto-detect whether it is in full-screen mode or not.
|
81
|
+
|
82
|
+
<tr>
|
83
|
+
<td></td>
|
84
|
+
<td align="center">
|
85
|
+
<img width="200" src="https://github.com/user-attachments/assets/14646090-bbc8-4c31-812b-f945faaadd06" alt="Banner Ad" />
|
86
|
+
</td>
|
87
|
+
<td align="center">
|
88
|
+
<img width="200" src="https://github.com/user-attachments/assets/c78e7879-cab6-4963-ad72-4a68316d7181" alt="Banner Ad" />
|
89
|
+
</td>
|
90
|
+
<td align="center">
|
91
|
+
<img width="200" src="https://github.com/user-attachments/assets/840ce3ef-60bb-4f74-9705-61d511d964f0" alt="Banner Ad" />
|
92
|
+
</td>
|
93
|
+
<td align="center">
|
94
|
+
<img width="200" src="https://github.com/user-attachments/assets/9342fb3b-bb38-4681-a794-44e25d6b9bd8" alt="Banner Ad" />
|
95
|
+
</td>
|
96
|
+
</tr>
|
97
|
+
</table>
|
98
|
+
|
99
|
+
|
100
|
+
<h3>Screenshots</h3>
|
101
|
+
|
102
|
+
<table>
|
103
|
+
<tr>
|
104
|
+
<td align="left"><strong>Non banner</strong></td>
|
105
|
+
<td align="center"><strong>App Open Ad</strong></td>
|
106
|
+
<td align="center"><strong>Interstitial Ad</strong></td>
|
107
|
+
<td align="center"><strong>Rewarded video or Rewarded Interstitial</strong></td>
|
108
|
+
<td align="center"><strong>Adsense</strong></td>
|
109
|
+
</tr>
|
110
|
+
<tr>
|
111
|
+
<td></td>
|
112
|
+
<td align="center">
|
113
|
+
<img width="200" src="https://github.com/user-attachments/assets/fc641c56-5219-4f02-8122-6a42a51f0853" alt="App Open Ad" />
|
114
|
+
</td>
|
115
|
+
<td align="center">
|
116
|
+
<img width="200" src="https://github.com/user-attachments/assets/7a5c68f2-18f9-4e23-9464-4a4c307f06ae" alt="Interstitial Ad" />
|
117
|
+
</td>
|
118
|
+
<td align="center">
|
119
|
+
<img width="200" src="https://github.com/user-attachments/assets/2d87f85e-5fb7-4bf4-8b86-c2411c35fdcf" alt="Rewarded Ad" />
|
120
|
+
</td>
|
121
|
+
<td align="center">
|
122
|
+
<img width="200" src="https://github.com/user-attachments/assets/14b289c4-74f7-45a7-9a8a-52df8859afec" alt="AdSense" />
|
123
|
+
</td>
|
124
|
+
</tr>
|
125
|
+
</table>
|
126
|
+
|
127
|
+
|
2
128
|
|
3
129
|
|
4
130
|
### emi-indo-cordova-plugin-admob
|
@@ -11,6 +137,9 @@
|
|
11
137
|
## Support framework
|
12
138
|
- Quasar: https://github.com/quasarframework/quasar/discussions/17706
|
13
139
|
- Capacitor: https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/discussions/29
|
140
|
+
- Jquery mobile: https://jquerymobile.com/
|
141
|
+
|
142
|
+
|
14
143
|
|
15
144
|
> [!NOTE]
|
16
145
|
> - To maintain this plugin in the long run,
|
@@ -20,15 +149,16 @@
|
|
20
149
|
## 💰Sponsor this project
|
21
150
|
[](https://paypal.me/emiindo)
|
22
151
|
[](https://ko-fi.com/F1F16NI8H)
|
23
|
-
|
152
|
+
|
153
|
+
### Check all release notes: https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/releases/
|
24
154
|
|
25
155
|
|
26
|
-
### Mobile Ads SDK (Android:
|
27
|
-
### User Messaging Platform (UMP Android: 3.
|
156
|
+
### Mobile Ads SDK (Android: 24.1.0) [Release Notes:](https://developers.google.com/admob/android/rel-notes)
|
157
|
+
### User Messaging Platform (UMP Android: 3.2.0) [Release Notes:](https://developers.google.com/admob/android/privacy/release-notes)
|
28
158
|
|
29
|
-
### Mobile Ads SDK (IOS:
|
159
|
+
### Mobile Ads SDK (IOS: 12.2.0) [Release Notes:](https://developers.google.com/admob/ios/rel-notes)
|
30
160
|
|
31
|
-
### User Messaging Platform (UMP IOS:
|
161
|
+
### User Messaging Platform (UMP IOS: 3.0.0) [Release Notes:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/privacy/download)
|
32
162
|
### IAB Europe Transparency & Consent Framework (CMP: 2.2.0)
|
33
163
|
|
34
164
|
|
@@ -36,19 +166,67 @@
|
|
36
166
|
## Documentation Capacitor example
|
37
167
|
- [Documentation Capacitor example: ](https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/discussions/29)
|
38
168
|
|
39
|
-
|
40
|
-
https://github.com/EMI-INDO/emi-indo-cordova-plugin-fanalytics
|
169
|
+
|
41
170
|
|
42
171
|
## New example
|
43
172
|
- https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/tree/main/example/www
|
44
173
|
|
174
|
+
## Version locking the plugin during production is highly recommended.
|
175
|
+
|
176
|
+
- Example cordova plugin add emi-indo-cordova-plugin-admob@1.6.0 --save --variable APP_ID_ANDROID=ca-app-pub-xxx~xxx
|
177
|
+
- View plugin version: https://www.npmjs.com/package/emi-indo-cordova-plugin-admob?activeTab=versions
|
178
|
+
- Release notes: https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/releases
|
179
|
+
|
180
|
+
## Installation
|
181
|
+
- Only platform Android
|
182
|
+
```sh
|
183
|
+
cordova plugin add emi-indo-cordova-plugin-admob --save --variable APP_ID_ANDROID=ca-app-pub-xxx~xxx
|
184
|
+
```
|
185
|
+
|
186
|
+
- Only platform IOS
|
187
|
+
```sh
|
188
|
+
cordova plugin add emi-indo-cordova-plugin-admob --save --variable APP_ID_IOS=ca-app-pub-xxx~xxx
|
189
|
+
```
|
190
|
+
|
191
|
+
- Platform Both
|
192
|
+
```sh
|
193
|
+
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
|
194
|
+
```
|
195
|
+
|
196
|
+
## Remove
|
197
|
+
```sh
|
198
|
+
cordova plugin rm emi-indo-cordova-plugin-admob
|
199
|
+
```
|
200
|
+
|
201
|
+
## Note IOS
|
202
|
+
> [!NOTE]
|
203
|
+
> - To prevent some warnings or errors in xcode later, it is best after adding platforms and plugins cd/project root/command line run cordova prepare.
|
204
|
+
> - after that just cd platform/ios command line run pod install --repo-update
|
205
|
+
|
206
|
+
## Import the Mobile Ads SDK IOS
|
207
|
+
### Then from the command line run:
|
208
|
+
- cd platforms/ios
|
209
|
+
- Then run cordova prepare
|
210
|
+
### Then from the command line run:
|
211
|
+
- pod install --repo-update
|
212
|
+
|
213
|
+
|
214
|
+
### This is not a dependency, it's a separate plugin but highly recommended.
|
215
|
+
https://github.com/EMI-INDO/emi-indo-cordova-plugin-fanalytics
|
216
|
+
|
217
|
+
|
218
|
+
## Older versions of plugins
|
45
219
|
|
46
|
-
|
47
|
-
|
220
|
+
<details>
|
221
|
+
<summary>Older versions of plugins</summary>
|
222
|
+
|
223
|
+
|
224
|
+
### Minimum Cordova Engines
|
225
|
+
- cordova-android version = 13.0.0
|
48
226
|
- cordova-ios version = 7.0.0
|
49
227
|
|
50
228
|
|
51
|
-
|
229
|
+
### IOS Ad Support IOS 18 *
|
52
230
|
- Fix error build IOS: https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/discussions/42
|
53
231
|
- Mobile Ads SDK (IOS: 11.12.0)
|
54
232
|
- emi-indo-cordova-plugin-admob@1.6.3 or higher requires cocoapods 1.16.2 or higher
|
@@ -57,7 +235,7 @@ https://github.com/EMI-INDO/emi-indo-cordova-plugin-fanalytics
|
|
57
235
|
> - emi-indo-cordova-plugin-admob@1.5.2 or higher
|
58
236
|
> - Minimum supported Xcode version up to 15.3 or higher
|
59
237
|
> - minimum deployment-target: 12.2
|
60
|
-
|
238
|
+
### Minimum macOS | Xcode, and others
|
61
239
|
- minimum macOS 14.4 or higher
|
62
240
|
- Xcode min 15.3 > or higher
|
63
241
|
- Command Line Tools 15.3 or higher
|
@@ -67,7 +245,7 @@ https://github.com/EMI-INDO/emi-indo-cordova-plugin-fanalytics
|
|
67
245
|
- Dependency: pod MerchantKit (not needed)
|
68
246
|
|
69
247
|
|
70
|
-
|
248
|
+
### IOS
|
71
249
|
> [!WARNING]
|
72
250
|
> - emi-indo-cordova-plugin-admob@1.5.1
|
73
251
|
> - Minimum supported Xcode version to 14.3
|
@@ -78,6 +256,8 @@ https://github.com/EMI-INDO/emi-indo-cordova-plugin-fanalytics
|
|
78
256
|
- Command Line Tools 14.1 or higher
|
79
257
|
https://developers.google.com/admob/ios/quick-start
|
80
258
|
|
259
|
+
</details>
|
260
|
+
|
81
261
|
<details>
|
82
262
|
<summary>Guaranteed income using this plugin #14</summary>
|
83
263
|
|
@@ -92,6 +272,11 @@ https://developers.google.com/admob/ios/quick-start
|
|
92
272
|
> -
|
93
273
|
</details>
|
94
274
|
|
275
|
+
|
276
|
+
## Video test of the old version of the plugin
|
277
|
+
<details>
|
278
|
+
<summary>Video test of the old version of the plugin</summary>
|
279
|
+
|
95
280
|
## VIDEO Test Collapsible banner ads
|
96
281
|
- Test Plugin with construct 3
|
97
282
|
|
@@ -117,7 +302,7 @@ https://developers.google.com/admob/ios/quick-start
|
|
117
302
|
|
118
303
|
[](https://youtu.be/sLXHKdU6DAg)
|
119
304
|
|
120
|
-
|
305
|
+
</details>
|
121
306
|
|
122
307
|
|
123
308
|
|
@@ -139,45 +324,6 @@ https://developers.google.com/admob/ios/quick-start
|
|
139
324
|
<li> impression-level-ad-revenue</li>
|
140
325
|
</ul>
|
141
326
|
</details>
|
142
|
-
## Version locking the plugin during production is highly recommended.
|
143
|
-
|
144
|
-
- Example cordova plugin add emi-indo-cordova-plugin-admob@1.6.0 --save --variable APP_ID_ANDROID=ca-app-pub-xxx~xxx
|
145
|
-
- View plugin version: https://www.npmjs.com/package/emi-indo-cordova-plugin-admob?activeTab=versions
|
146
|
-
- Release notes: https://github.com/EMI-INDO/emi-indo-cordova-plugin-admob/releases
|
147
|
-
|
148
|
-
## Installation
|
149
|
-
- Only platform Android
|
150
|
-
```sh
|
151
|
-
cordova plugin add emi-indo-cordova-plugin-admob --save --variable APP_ID_ANDROID=ca-app-pub-xxx~xxx
|
152
|
-
```
|
153
|
-
|
154
|
-
- Only platform IOS
|
155
|
-
```sh
|
156
|
-
cordova plugin add emi-indo-cordova-plugin-admob --save --variable APP_ID_IOS=ca-app-pub-xxx~xxx
|
157
|
-
```
|
158
|
-
|
159
|
-
- Platform Both
|
160
|
-
```sh
|
161
|
-
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
|
162
|
-
```
|
163
|
-
|
164
|
-
## Remove
|
165
|
-
```sh
|
166
|
-
cordova plugin rm emi-indo-cordova-plugin-admob
|
167
|
-
```
|
168
|
-
|
169
|
-
## Note IOS
|
170
|
-
> [!NOTE]
|
171
|
-
> - To prevent some warnings or errors in xcode later, it is best after adding platforms and plugins cd/project root/command line run cordova prepare.
|
172
|
-
> - after that just cd platform/ios command line run pod install --repo-update
|
173
|
-
|
174
|
-
## Import the Mobile Ads SDK IOS
|
175
|
-
### Then from the command line run:
|
176
|
-
- cd platforms/ios
|
177
|
-
- Then run cordova prepare
|
178
|
-
### Then from the command line run:
|
179
|
-
- pod install --repo-update
|
180
|
-
|
181
327
|
|
182
328
|
|
183
329
|
## >>> Device Ready <<<
|
package/example/config.xml
CHANGED
@@ -8,4 +8,11 @@
|
|
8
8
|
<content src="index.html" />
|
9
9
|
<allow-intent href="http://*/*" />
|
10
10
|
<allow-intent href="https://*/*" />
|
11
|
+
<preference name="GradlePluginKotlinVersion" value="2.1.0" />
|
12
|
+
<preference name="AndroidXEnabled" value="true" />
|
13
|
+
<preference name="GradlePluginKotlinEnabled" value="true" />
|
14
|
+
<preference name="orientation" value="portrait" />
|
15
|
+
<preference name="fullscreen" value="false" />
|
16
|
+
<preference name="android-minSdkVersion" value="23" />
|
17
|
+
<preference name="android-targetSdkVersion" value="35" />
|
11
18
|
</widget>
|
package/example/package.json
CHANGED
@@ -1,110 +1,60 @@
|
|
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
1
|
body {
|
24
|
-
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
}
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
padding:
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
}
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
margin:
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
.
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
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
|
-
}
|
2
|
+
font-family: Arial, sans-serif;
|
3
|
+
margin: 0;
|
4
|
+
height: 100%;
|
5
|
+
padding: 20px;
|
6
|
+
display: flex;
|
7
|
+
flex-direction: column;
|
8
|
+
align-items: center;
|
9
|
+
background-color: #f4f4f4;
|
10
|
+
}
|
11
|
+
|
12
|
+
|
13
|
+
h1 {
|
14
|
+
color: #333;
|
15
|
+
margin-bottom: 20px;
|
16
|
+
}
|
17
|
+
|
18
|
+
.button-container {
|
19
|
+
display: grid;
|
20
|
+
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
21
|
+
gap: 10px;
|
22
|
+
width: 100%;
|
23
|
+
max-width: 600px;
|
24
|
+
}
|
25
|
+
|
26
|
+
button {
|
27
|
+
padding: 10px 15px;
|
28
|
+
font-size: 14px;
|
29
|
+
border: none;
|
30
|
+
background-color: #007bff;
|
31
|
+
color: white;
|
32
|
+
border-radius: 5px;
|
33
|
+
cursor: pointer;
|
34
|
+
text-align: center;
|
35
|
+
transition: background-color 0.3s ease;
|
36
|
+
}
|
37
|
+
|
38
|
+
button:hover {
|
39
|
+
background-color: #0056b3;
|
40
|
+
}
|
41
|
+
|
42
|
+
textarea {
|
43
|
+
width: 100%;
|
44
|
+
max-width: 600px;
|
45
|
+
margin-top: 20px;
|
46
|
+
padding: 10px;
|
47
|
+
font-size: 14px;
|
48
|
+
border: 1px solid #ccc;
|
49
|
+
border-radius: 5px;
|
50
|
+
resize: none;
|
51
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
52
|
+
height: 150px;
|
53
|
+
}
|
54
|
+
|
55
|
+
label {
|
56
|
+
font-size: 16px;
|
57
|
+
font-weight: bold;
|
58
|
+
margin-top: 20px;
|
59
|
+
color: #333;
|
60
|
+
}
|
package/example/www/index.html
CHANGED
@@ -1,44 +1,43 @@
|
|
1
|
-
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
2
3
|
<head>
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
6
|
+
<meta name="theme-color" content="#000000">
|
7
|
+
<title>Cordova | Capacitor | Quasar</title>
|
8
|
+
<style> </style>
|
9
|
+
<link rel="stylesheet" href="css/index.css">
|
10
|
+
<script type="text/javascript" src="cordova.js"></script>
|
11
|
+
<script src="js/deviceready.js" defer></script>
|
12
|
+
<script src="js/appOpenAd.js" defer></script>
|
13
|
+
<script src="js/bannerAd.js" defer></script>
|
14
|
+
<script src="js/interstitialAd.js" defer></script>
|
15
|
+
<script src="js/rewardedAd.js" defer></script>
|
16
|
+
<script src="js/rewardedInterstitialAd.js" defer></script>
|
17
|
+
<script src="js/adSense.js" defer></script>
|
18
|
+
<script src="js/privacyOptionsFormShow.js" defer></script>
|
12
19
|
</head>
|
13
20
|
<body>
|
14
|
-
|
15
|
-
|
16
|
-
<
|
17
|
-
<
|
18
|
-
|
19
|
-
<
|
20
|
-
|
21
|
-
<
|
22
|
-
<
|
23
|
-
<
|
24
|
-
<
|
25
|
-
|
26
|
-
<
|
27
|
-
<
|
28
|
-
|
29
|
-
<
|
30
|
-
<
|
31
|
-
|
32
|
-
|
33
|
-
<
|
34
|
-
|
35
|
-
<p> <button onclick="registerWebView();">AdSense Register</button></p>
|
36
|
-
<p> <button onclick="loadUrl();">AdSense load Url</button></p>
|
37
|
-
|
38
|
-
<p> <button onclick="showPrivacyOptionsForm();">Show Privacy Options Form</button></p>
|
39
|
-
<p> <button onclick="forceDisplayPrivacyForm();">Force Display Privacy Form</button></p>
|
40
|
-
|
41
|
-
<p> <button onclick="cleanText();">Clean response Text</button></p>
|
42
|
-
|
21
|
+
<h1>Ad Management Panel</h1>
|
22
|
+
<div class="button-container">
|
23
|
+
<button onclick="loadAppOpen();">Auto Show App Open Ad</button>
|
24
|
+
<button onclick="loadBanner();">Load and Show Banner Ad</button>
|
25
|
+
<button onclick="showBanner();">Show Banner Ad</button>
|
26
|
+
<button onclick="hideBanner();">Hide Banner Ad</button>
|
27
|
+
<button onclick="removeBanner();">Remove Banner Ad</button>
|
28
|
+
<button onclick="loadInterstitial();">Load Interstitial Ad</button>
|
29
|
+
<button onclick="showInterstitial();">Show Interstitial Ad</button>
|
30
|
+
<button onclick="loadRewarded();">Load Rewarded Ad</button>
|
31
|
+
<button onclick="showRewarded();">Show Rewarded Ad</button>
|
32
|
+
<button onclick="loadRewardedInt();">Load Rewarded Int Ad</button>
|
33
|
+
<button onclick="showRewardedInt();">Show Rewarded Int Ad</button>
|
34
|
+
<button onclick="registerWebView();">AdSense Register</button>
|
35
|
+
<button onclick="loadUrl();">AdSense Load Url</button>
|
36
|
+
<button onclick="showPrivacyOptionsForm();">Show Privacy Options Form</button>
|
37
|
+
<button onclick="forceDisplayPrivacyForm();">Force Display Privacy Form</button>
|
38
|
+
<button onclick="cleanText();">Clean Response Text</button>
|
39
|
+
</div>
|
40
|
+
<label for="log">Debug Event All Response:</label>
|
41
|
+
<textarea id="log" name="log" placeholder="Logs will appear here..."></textarea>
|
43
42
|
</body>
|
44
43
|
</html>
|