Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to get a callback when the user closes the ad? #2

Closed
GoogleCodeExporter opened this issue Mar 22, 2015 · 3 comments
Closed

Comments

@GoogleCodeExporter
Copy link

If I make a call to showAdIfLoaded() or loadAndShow() there is currently no 
callback to know if the user has returned from the ad (timeout or clicking on 
the 'X')

For example, if I'm trying to show an ad between levels in my app, how could I 
know when to begin the next level? Everything happens asynchronously.

I've found a temporary solution, but all of this would be easily solved if the 
showAdIFLoaded() or loadAndShow() could block until the user returns from 
viewing the ad.

Original issue reported on code.google.com by whoaback...@gmail.com on 9 Feb 2015 at 11:06

@chen-fishbein
Copy link
Owner

Fixed - added AdsListener

@dmanyukhin
Copy link

Hi,
is it possible to add callback that fires if user closes ad before time ends (Reward ads) ?
Currently onAdClosed fires in both cases, when user watch ad completely and when user closes ad right after it appears, which is critical for Reward ads, I am surprised that nobody asked about that before
I have though about workaround using timer, but I need to know ads length for that, which is also unavailable, may be you have other idea how to check if user closes ad before time, I will really appreciate any help
Thanks,
Denis

@codenameone
Copy link

This is the old project, the latest version is here: https://github.com/shannah/admobfullscreen-codenameone/

See this commit shannah@147ca9c

If you need detailed events you can submit a pull request to that project with additional events.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants