Skip to content

Commit

Permalink
update www/res/plugins/admob.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianjnuwu committed Dec 24, 2024
1 parent f753aee commit 4e20f0e
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions www/res/plugins/admob.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import { AdMob } from "@capacitor-community/admob";
import {
AdMob,
BannerAdOptions,
BannerAdSize,
BannerAdPosition,
BannerAdPluginEvents,
AdMobBannerSize,
} from "@capacitor-community/admob";

$(document).ready(() => {
// Initialize AdMob plugin
Expand All @@ -14,9 +21,11 @@ $(document).ready(() => {
function $show_banner() {
AdMob.showBanner({
adId: "ca-app-pub-6690516270288705/1043067086",
adSize: "BANNER",
position: "BOTTOM_CENTER",
adSize: BannerAdSize.BANNER,
position: BannerAdPosition.BOTTOM_CENTER,
margin: 0,
// isTesting: true
// npa: true
})
.then(() => {
// Log when the banner is displayed successfully
Expand Down

0 comments on commit 4e20f0e

Please sign in to comment.