Shin-NiL / Godot-Android-Admob-Plugin

Android AdMob plugin for Godot Game Engine 3.2 or higher
MIT License
543 stars 66 forks source link

Toggle isReal automatically when build production #164

Closed kyoz closed 2 years ago

kyoz commented 3 years ago

Godot version: 3.3

AdMob Plugin version: 5.0

Issue description: Can i toggle this by gdscript on runtime. Cause if i have toggle this in inspector, sometime in the future, when maintaining my project, i may forget it and cause new release is full of test ads. :(

Merlin1846 commented 2 years ago

Just run if not OS.is_debug_build(): $AdMob.is_real = true

This will tell it to show real ads if it is NOT running in the editor OR a debug build. Their you go it's automated.

kyoz commented 2 years ago

Or i forgot this, i have actually solve before. Btw thank you very much.😊

Merlin1846 commented 2 years ago

Sorry that code might not work use this instead.

if OS.is_debug_build(): $AdMob.is_real_set(false) else: $AdMob.is_real_set(true)