• Dear Cerberus X User!

    As we prepare to transition the forum ownership from Mike to Phil (TripleHead GmbH), we need your explicit consent to transfer your user data in accordance with our amended Terms and Rules in order to be compliant with data protection laws.

    Important: If you accept the amended Terms and Rules, you agree to the transfer of your user data to the future forum owner!

    Please read the new Terms and Rules below, check the box to agree, and click "Accept" to continue enjoying your Cerberus X Forum experience. The deadline for consent is April 5, 2024.

    Do not accept the amended Terms and Rules if you do not wish your personal data to be transferred to the future forum owner!

    Accepting ensures:

    - Continued access to your account with a short break for the actual transfer.

    - Retention of your data under the same terms.

    Without consent:

    - You don't have further access to your forum user account.

    - Your account and personal data will be deleted after April 5, 2024.

    - Public posts remain, but usernames indicating real identity will be anonymized. If you disagree with a fictitious name you have the option to contact us so we can find a name that is acceptable to you.

    We hope to keep you in our community and see you on the forum soon!

    All the best

    Your Cerberus X Team

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