I have a problem that I can't solve: I have everything configured so that an ad appears when a button is pressed and it works correctly but I want it to appear only the first time the button is pressed. To do this I have created a variable to check whether or not I have pressed the button once, I put the instruction to display the ad within a condition that validates the variable and by doing this the ads are never seen. Does anyone have any idea what might be happening?
var verAnuncio = true func _ready() -> void: admob.load_interstitial() func _on_colocar_pressed() -> void: if verAnuncio == true: admob.show_interstitial() verAnuncio = false
I use this plugin for godot: https://github.com/Shin-NiL/Godot-Android-Admob-Plugin
2.1m questions
2.1m answers
60 comments
57.0k users