Before telling me that I did not set up payments on adMob, now I did but I still do not give the publicity…
Ok after one night I managed to fix it.
I have a simplest question now, i’m sorry if i use this topic. When I ask for a video rewarded sometimes charge a while then it shows nothing, there is a way to wait until the video is not loaded
There are two ways to know if the video is loaded.
-
Call the .isLoaded() method. See: https://docs.coronalabs.com/plugin/appodeal/isLoaded.html
-
Listen for events in your listener function you included in your .init() call. When any of these events occur:
https://docs.coronalabs.com/plugin/appodeal/event/adsRequest/phase.html
your listener function will get called and passed a table we typically call “event”. That table will have a member called phase that you can test against.
local function appodealListener( event ) if "loaded" == event.phase then -- now you know the video is loaded. end end
or something similar.
Rob
If I load the video manually I should do it manually every time?
While in the second way how do I know if she uploaded a video or banner or image?
Which one of the two tips I advise?
Forgive me but I have never posted advertising and I’m a bit disoriented
I thought that Appodeal pre-loaded ads. After you show an ad, it should queue up the next one. I’ll see if I can get confirmation of this behavior.
Rob
Appodeal automatically pre-loads ads for you. You can turn it off for manual loading (not recommended), but if you do you must call load() yourself on every app start and after every time an ad has been shown / failed to load, to make sure ads are constantly available.
As Rob mentioned earlier, to be notified when an ad has been loaded, use the listener and check for the “loaded” event as in the example he posted above. The same listener is called whether you use automatic or manual loading.
It’s recommended that you leave automatic loading turned on as it saves you the trouble of adding loading logic to your app. With automatic loading turned on Appodeal will take care of all loading for you. Just call isLoaded() before showing an ad to check if an ad is available to show().
Thank you very much to both
I did as you said and with the addition of some control everything goes as it should.
As recommended, it is best not to load manualemnte.