Skip to content

Commit

Permalink
update www/src/plugins/admob.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianjnuwu committed Jan 8, 2025
1 parent 5521561 commit 0b9c0cd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions www/src/plugins/admob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ function $hide_banner() {
});
}

/*
function $show_video() {
const adId = "ca-app-pub-6690516270288705/7898187843";
AdMob.prepareRewardVideoAd({ adId })
Expand Down Expand Up @@ -63,6 +64,7 @@ function $award() {
console.log("Error displaying interstitial ad: ", err.message);
});
}
*/

AdMob.initialize()
.then(() => {
Expand All @@ -72,7 +74,6 @@ AdMob.initialize()
console.log("Error initializing AdMob: ", err.message);
});

$("#form_button").on("click", () => {
$show_banner();
$show_video();
});
$("#form_button").on("click", () => $show_banner());

$("#game_exit").on("click", () => $hide_banner());

0 comments on commit 0b9c0cd

Please sign in to comment.