It looks like you're new here. If you want to get involved, click one of these buttons!
--ad initialization ad = Ads.new("admob") -- ... ad:showAd("banner", unitID) showAds = true --this goes inside my button:onclick() if showAds == true then showAds = false if ad then ad:hideAd("banner") end else showAds = true if ad then ad:showAd("banner") end end |
Comments
The crash was not because of ads.
It was because of a sprite that I remove too, but then forgot to add again on the next button click.
Likes: antix