How to use AdMob Rewarded Video Ad on Android



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!



Published by

Habibie

Habibie is an Indonesian freelance frontend-backend web developer and cross platform mobile app programmer. He's also good at graphics design, video editing, visual effects and animation.

Leave a Reply

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