Here I share my experience to bring AdMob Rewarded Video Ad into my apps. This kind of app works well because users will watch the ads completely to get rewarded, for example to get virtual coins, gems, etc.

You must have your own ad ID from AdMob and replace this line below (in MainActivity) with your own:

I’m using Android Studio. First, you must add this line into gradle dependencies:

Then, make sure you put these permission codes into your manifest file:

Now here is Java codes for MainActivity.java :

Give it a try and good luck!



Habibie

Habibie is an Indonesian freelance PHP, MySQL, HTML5, CSS3, JavaScript, Java, Python and C# programmer. He also do graphics design, video editing, visual effects, animation, 3D modeling and making games.

Related Post

How to use AdMob Rewarded Video Ad on Android

Leave a Reply

Your email address will not be published. Required fields are marked *

95 − ninety three =