ANDROID APP

Admob Tutorial 💰 How to add AdMob to your Android App | Google Admob Tutorial (2020)



In this video, you will learn how to add AdMob to your Android App. This is a Google AdMob tutorial in Android Kotlin that will show you how to start monetizing your apps 🤑

Once your Android application is developed and ready to publish and you want to make some money from the application by integrating Google AdMob in it, you need to learn how to do that.

In this video, you will learn how to integrate AdMob in an Android application. By the end of this Admob tutorial you will know how to integrate 3 different ads in android application: Banners ads, Interstitial Ads, and Rewarded Video Ads.

Implement Banner Ads
Banner ads occupy a spot within an app’s layout, either at the top or bottom of the device screen. They stay on screen while users are interacting with the app, and can refresh automatically after a certain period of time.

Add AdView to the layout
The first step toward displaying a banner is to place AdView in the layout for the Activity or Fragment in which you’d like to display it. The easiest way to do this is to add one to the corresponding XML layout file.

Implement Interstitial Ads Android
Interstitial ads are full-screen ads that cover the interface of their host app. They’re typically displayed at natural transition points in the flow of an app, such as between activities or during the pause between levels in a game. When an app shows an interstitial ad, the user has the choice to either tap on the ad and continue to its destination or close it and return to the app.

Rewarded Video Ads Android
Rewarded video ads are full-screen video ads that users have the option of watching in full in exchange for in-app rewards.

Set up event notifications for Rewarded Video Ad
The SDK provides the RewardedVideoAdListener interface, which has methods corresponding to the events in a rewarded video ad’s lifecycle. Have your app define a class that implements this interface and pass it to setRewardedVideoAdListener prior to loading an ad.

The code example in Initialize rewarded video ads already shows how to declare that your class implements RewardedVideoAdListener and set the listener on the RewardedVideoAd object

Forward lifecycle events for Rewarded Video Ad
To forward the parent Activity’s lifecycle events to the RewardedVideoAd object, call the resume(), pause(), and destroy() methods in the parent Activity’s onResume(), onPause(), and onDestroy() methods respectively.

#admob #androidTutorials #GoogleAdmob

🔥🔥 Get my complete Android Masterclass here: https://bit.ly/2Y8KOFL

Check out the article, that includes all links and used code:
https://tutorials.eu/integrate-admob-in-your-android-app-in-kotlin/

tutorialsEU offers you free video tutorials about programming and development for complete beginners up to experienced programmers.
This includes C#, Unity, Python, Android, Kotlin, Machine Learning, etc.

Stay tuned and subscribe to tutorialsEU: https://goo.gl/rBFh3x

source