Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Android / [SOLVED] Is there any way to check if a loaded ad was watched / finished?

Author
Message
PHeMoX
7
Years of Service
User Offline
Joined: 9th Jan 2018
Location:
Posted: 24th Nov 2024 12:44
This may be a silly question, but is there a way for us to check if the ad showing was finished and / or clicked away by the user?

I want my game to start at a specific time, but the specific duration of the ads tends to be varying in time. Ie. I want my game to wait until the ad is finished or the user clicks to dismiss the ad. Any ideas?

The author of this post has marked a post as an answer.

Go to answer

Zappo
Valued Member
20
Years of Service
User Offline
Joined: 27th Oct 2004
Location: In the post
Posted: 26th Nov 2024 00:34
This post has been marked by the post author as the answer.
By default, your app will pause while an advert is being displayed so you don't have to worry about waiting for it to finish or for the user to close the ad before continuing.

If you wanted to only let the user do something if they watched a reward advert to completion, you can use "GetRewardAdRewardedAdMob" to check that they watched it to the end (and you get paid )
PHeMoX
7
Years of Service
User Offline
Joined: 9th Jan 2018
Location:
Posted: 28th Nov 2024 11:55 Edited at: 28th Nov 2024 16:50
Thank you Zappo, unfortunately the automatic pause you speak about doesn't actually occur. My app uses the Box2d physics engine and the ad is called in its own function right before a more general 'main loop' (using Repeat...until) of the gameplay. The fullscreen ad is not covering the full screen completely (but like 98%) and doesn't pause. The latter surprised me a bit, because I also read it should pause the whole app.

edit: Actually, I was wrong. The app does pause. The reason I thought it didn't was because I stored the system time for a timer before the ad. Of course it'll count whatever time passed during the ad. The game does pause

I will check using "GetRewardAdRewardedAdMob" a bit more, however I don't want to force users to watch an ad to completion all the time just for the game level to start (unless the reward will be very clear and very optional, like watching a reward ad for an addition life or boost or something, which I am actually considering doing). Still figuring out the least annoying way to do ads effectively, whilst also doing them in ways people are already familiar with in other games.
Zappo
Valued Member
20
Years of Service
User Offline
Joined: 27th Oct 2004
Location: In the post
Posted: 29th Nov 2024 18:45 Edited at: 29th Nov 2024 18:46
Sounds good PHeMoX. It sounds like you want an interstitial ad at the start of the level rather than a reward ad. The player only has to watch a few seconds and can close it to continue the game. For that, you would use ShowFullscreenAdvertAdMob.

Login to post a reply

Server time is: 2025-05-06 15:29:01
Your offset time is: 2025-05-06 15:29:01