Loading and Showing Banners Programmatically
First create an adview to load and show ad inside it, Use Linear or Relative layout, set this ad layout to bottom or top, if you set in the bottom then remember that in the bottom we have used a
Bottom Menu Bar, so keep your banner ad layout just top of it.
Now follow the docs, create an method for banner ad, Remove extra code if possible. Height we already define in the xml, This is the id your Linear layout. Now replace YOUR_AD_UNIT_ID with your banner ads id.
Now add a button to show banner ad onclick. Remember that you have added banner code in the main_activity xml file so it should call from MainActviity.java file first
So how you will do that? First thing is that, banner ads should show automatically means without a click, so do it first place the ad code in the onCreate method of MainActvity.java file, function called successfully, but is it right place to add this?
No, then where? Remember that always show or load after ads SDK is initialized, so add this method on AppLovin SDK Initialized, Now perfect, no app crash will occur. Run your app. Connect your mobile or use emulator.
Banner ad is showing fine.... Continue for our next video ... Thanks for watching...
1. How to integrate AppLovin SDK Ads: • How to Integrate AppLovin Ads into our New...
2. How to integrate AppLovin Interstitial Ads: • How to Integrate AppLovin Interstitial Ads...
3. How to integrate AppLovin Reward Video Ads: • How to Integrate AppLovin Reward Video Ads...
4. How To Setup AppLovin Facebook Mediation: • How to Setup Facebook Meta Mediation or Bi...
Downloading of Android Studio is very easy, to download it you have to click on this link: https://krishnaapps.com/docs/android-...
Need step by step guide for installing android studio click here: https://krishnaapps.com/docs/android-...
Hire us For Making Custom Android Studio Apps, Screenshots Design Work, App Reskin, Admin Panel Installation, Apps Submission on Play Store, App Manage etc.
Check our portfolio on codeintra: https://codeintra.com/store/krishna-a...
#applovin #applovinads #bannerads #ads #advertisement #androidstudio #android #androidcode #sourcecode #earningapp #earningappcode #installandroidstudio #KrishnaApps #codecanyon #codeintra #downloadandroid #downloadandroidstudio #learnandroid #howto #programming #howtomakeapp #howtomakeandroidapp #latestandroidstudio #appsmaker #createapps #mobileappsbuilder #androidtutorialforbeginners #androidtutorials #androidtutorial #tutorialandroid #buildapps #createapp #androiddevelopers #androiddeveloper #androiddevelopment #latestandroidapp #appscode #source_code #learn_android #android_studio #android_studio_earning_app
Background Music is from:
Music by https://pixabay.com/users/orangiromus... https://pixabay.com/music
Download Source Code:
Here is the password: Jai Shri Krishna