• Hi folks,

    the forum is now set to read only.

    After 6 yrs under my control, I have done all the work on April 6th that was needed to be able to transfer the database, forum files and the domain to Philipp Moeller aka @Phil7. The Github repository was already transfered and under his control.

    According to GDPR/DSGVO laws, all user accounts are now deleted that didn't accept the new terms (Updated on March 7th 2024 and an email was send to your address).

    I wish you all a great future and health. As the internet is gigantic but sometimes also very small, I am sure we will bump into each other someday again. Looking forward to it. :-)

    Cheers
    Michael

  • Hi folks,
    as per verbal aggreement between the new owner of the Cerberus X community and myself, I will keep this place online till May 6th, 2024.
    After that date it will be purged and this Domain will be most likely be used for my own stuff again.
    I am not participating in the new place for various reasons.
    If someone wants to contact me you can do so via mail to mike@fantomgl.com.
    Best wishes
    Michael

Admob Rewarded Videos

SLotman

Active member
3rd Party Module Dev
Tutorial Author
Joined
Jul 3, 2017
Messages
261
So, I've got a skeleton of a module, implementing Admob rewarded video ads (on top of the old interstitial module). It shows the test ad, and it receives the message with "10 coins" (the standard reward AFAIK)

My question is: is there any way I can make a callback from Java to Monkey? Something like this:

'AdmobRewards.monkey
Class AdmobRewards Extends Null = "AdmobRewards"
Method ShowAd:Void(myFunction)
End Class

'AdmobRewards.java
class AdmobRewards implements Runnable{
public void ShowAd( myFunction) { _callback = myFunction; }
static public void registerReward(RewardItem reward) { _callback(reward); }
}

So far I'm just storing those values on variables and passing them to Monkey with 'getRewardType' and 'getRewardAmmount' - but this is a hack job, would be nice to be able to just have a 'rewardReceived' abstract method or something available in Monkey to be used.
 
I think there is a way. I've not done it myself, if you look at brl.cerberusstore, there maybe some pointers in there
 
Yikes, I'm looking at it and its waaay beyond me :p

On the monkey/cerberus side it implements async events and an interface... and I don't understand yet how that connects with the java source :(
 
I might take a look this weekend. I too got a basic rewards ad working, but failed to do any async. Maybe better luck this time ;-)
 
Is the rewarded video ad still working or have Google changed things?
 
I don't know - because of my daily job I didn't had the time to work on it :(

And I probably won't be able to test it anytime soon: I got a grant to make a game, that should take 1.5 years to make (!) and it won't be on Cerberus unfortunately (game is in 3D, probably will be ported to consoles too)

That being said, it should work for now. There's a new API that is more complex to implement, but this one should still work AFAIK.
 
I understand, okay thanks anyway. Do you happen to know if it is word the effort to put an ordinary small top banner at the top while playing games or is that a waste of time?
 
The implementation in code is very small. The only thing that may take a bit of your time is the setup of your google admob on their site.
There are a lot of companies making huge amounts of money with banners.
 
For just a banner you don't need this code of mine. This is for fullscreen rewarded ads (those ads you see in fullscreen and then get a reward after they're finished).

For banners, just use the brl.admob included into Cerberus, it works great :)

But: banners are the lowest payment. Interstitial and rewarded ads usually pays more.
 
I noticed something about new laws in EU that need conscent from user, does the old API support those?
 
I you are using AdMob in a GDPR country you will most likely have to gather user consent for your privacy policy that contains all relevant information about the use of software that deals with user data and give them options of what to allow and what not. But there are also other privacy protection laws coming up in some countries, so this is not a "only EU" kind of thing anymore.
 
is it an extra API call to make or is this conscent 100% automatic from Google side?
 
Basically it is all in you hands how to gather the consent and how to show the options, but there is the Google User Messaging Platform (UMP) connected to Admob, that enables you to make adequate dialogues for it and seems to handle the consent to show ads. This could be another inbetween project to integrate this api into Cerberus.
 
Is this also true for rewarded videos, where the user decides if he/she wants an ad?
 
I guess so because it is not about if you want to see ads but if google may take your data and collect and process it to decide what ads to show you next.
 
Back
Top Bottom