EddyVerbruggen / nativescript-admob

NativeScript plugin to earn some precious :moneybag::moneybag: with ads by Google AdMob
MIT License
69 stars 26 forks source link

How to check when ad is closed? #44

Closed Omi231 closed 5 years ago

Omi231 commented 5 years ago

In previous version of this plugin, when using admob.createInterstititial we were able use onAdClosed event which was very useful. After I updated this plugin I am unable to do the same. Is there any way I can call a function when the ad is closed?

EddyVerbruggen commented 5 years ago

How did you use it exactly?

Omi231 commented 5 years ago

In previous version of plugin, i was calling createInterstitial when user taped on a button and then was listening to ad Close event to download a file. Now because i can't listen the event I have stopped using interstitials which has decreased my revenue from the app.

EddyVerbruggen commented 5 years ago

Have you considered sending a PR to fix the issue?

Omi231 commented 5 years ago

Have you considered sending a PR to fix the issue?

Sorry, it is beyond my skill level.

EddyVerbruggen commented 5 years ago

I'm not sure how you've been previously been able to use the onAdClosed event through the plugin API, but I'll add official support for it today.

EddyVerbruggen commented 5 years ago

3.1.0 is now available, see the updated readme @ onAdClosed.