GD-HTML5 icon indicating copy to clipboard operation
GD-HTML5 copied to clipboard

How to check ads timeout (avoid "too soo" warning)?

Open vforsh opened this issue 5 years ago • 1 comments

Hello,

Sometimes when I call gdsdk.showAd I get a warning:

The advertisement was requested too soon

It is fine and I understand why it happens. But my question is - is there any way to check if the ad is ready before I call gdsdk.showAd method?

Before this call, I pause the game, mute the sound, and show my own ad overlay. And when the ad is complete I resume the game, unmute the sound and hide ad overlay.

It looks fine when the ad actually displays. But if it is not ready (too soon) then overlay flashes for a fraction of a second, sound suddenly abrupts, and then resumes. It looks like some kind of a glitch and ruins the player experience.

I would like to avoid it and don't try to show an ad if it is not ready yet.

Thanks in advance!

vforsh avatar Dec 10 '20 12:12 vforsh

Hi there, I am currently trying the same on cocos creator but to me it has error not gdsdk itself which says "gdsdk undefined". How are you importing the sdk??

faizanophobia avatar Mar 01 '21 11:03 faizanophobia