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 10, 2025
1 parent 8e8b57b commit 4930753
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions www/src/plugins/admob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ AdMob.initialize()

function $show_banner() {
AdMob.showBanner({
adId: "ca-app-pub-6690516270288705/1043067086",
adId: "ca-app-pub-6690516270288705/6940688181",
adSize: BannerAdSize.FULL_BANNER,
position: BannerAdPosition.BOTTOM_CENTER,
margin: 0,
Expand All @@ -38,7 +38,7 @@ function $remove_banner() {
.catch((err) => {
return console.error("Error hiding banner: ", err.message);
});
}
};

function $show_video() {
const adId = "ca-app-pub-6690516270288705/7898187843";
Expand All @@ -53,9 +53,9 @@ function $show_video() {
.catch((err) => {
console.error("Error displaying rewarded interstitial: ", err.message);
});
}
};

$("#form_button").on("click", () => $show_banner());
$("#splash-screen").on("click", () => $show_banner());

$("#start_game").on("click", () => $remove_banner());

Expand Down

0 comments on commit 4930753

Please sign in to comment.