Categories: 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

linda

Recent Posts

The Benefits of Choosing Permanent Makeup

If you're tired of spending countless hours in front of the mirror perfecting your look,â€Ķ

1 day ago

Salon Home Services: What to Expect

Salon home services bring the pampering right to your living room. Imagine getting a haircut,â€Ķ

2 days ago

How to Choose the Right Salon

Choosing the right salon is like finding the perfect book—when you discover the right one,â€Ķ

2 days ago

Maximize Your Skills with Online Business English

Hey there! If you're looking to boost your English skills, especially in a business context,â€Ķ

6 days ago

Exploring the Features of Elf Bar BC20000

Hello, fellow vapers and the vape-curious! If you find yourself wandering through the expansive universeâ€Ķ

6 days ago

Brazil’s Role in Shaping BRICS Leadership

By John Kaweske Hey there! So, have you ever wondered what Brazil is up toâ€Ķ

2 weeks ago