cant figure out how to know if an interstitial was shown/ dismissed #168
Unanswered
AlecAcosta
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
want to pause the game until the player closes the interstital ad, tried the full_screen_content_callback signals but i get no response
i print on screen with Global.label.text, it shows the message "interstitial loaded", then shows the ad but stays on the message "wainting for interstitial dismissed", then no more ads load cause no signal was fired to destroy the interstitial_ad to free it
im not pausing the game in this code, just testing what signals to use
my code:
`
func _ready() -> void:
if Engine.has_singleton("PoingGodotAdMob"):
MobileAds.initialize()
interstitial_ad_load_callback = InterstitialAdLoadCallback.new()
interstitial_ad_load_callback.on_ad_loaded = func(_interstitial_ad : InterstitialAd) -> void:
Global.label.text = "interstitial loaded"
interstitial_ad = _interstitial_ad
func show_interstitial():
Global.label.text = "waiting for\ninterstitial\ndismissed"
interstitial_ad.show()
`
Beta Was this translation helpful? Give feedback.
All reactions