This project serves as a comprehensive showcase of various ad formats available through Google Ads (AdMob) integration in Android apps using Kotlin. By exploring this demo, you'll gain a clear understanding of how to implement different types of ads to enhance your app's monetization and user engagement strategies.
This demo covers a range of ad formats, including:
- Banner Ads: Display small ad banners within your app's layout.
- Adaptive Banner Ads: Optimize banner ad size dynamically based on available space.
- Interstitial Ads: Present full-screen ads during app transitions or at strategic moments.
- Native Ads: Seamlessly integrate ads into your app's content for a natural user experience.
- Rewarded Ads: Offer users rewards in exchange for viewing ads.
- Rewarded Interstitial Ads: Combine the interstitial ad experience with rewards.
- App Open Ads: Showcase full-screen ads during app loading or transitions.
-
Clone the repository to your local machine:
git clone https://github.com/PanktiSP13/GoogleAdsDemoInKotlin.git
-
Open the project in Android Studio.
-
Set up your AdMob account and configure your ad unit IDs as needed.
-
Build and run the app on an emulator.
Explore the app to see different ad formats in action. Each section of the app demonstrates a specific ad format, providing insights into their integration, behavior, and user experience. By examining the code and layouts, you'll be equipped to implement these ad formats in your own projects.
![](https://private-user-images.githubusercontent.com/58383702/261592473-34768deb-b749-4fd6-b1c0-6245e4527f41.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxNzEyNjUsIm5iZiI6MTcyNjE3MDk2NSwicGF0aCI6Ii81ODM4MzcwMi8yNjE1OTI0NzMtMzQ3NjhkZWItYjc0OS00ZmQ2LWIxYzAtNjI0NWU0NTI3ZjQxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEyVDE5NTYwNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ3MTY4OTY5ZmI3MzBhYmNmZjhkZWZkNmI4YjJhNDFkNDkxMjFhOGM0NGJhODZlNzMyY2E2NzJmNjRjZWMwNWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.J9eRIpIsKBLN-bsWF5qc43Xy66_eZj7opq5IIzBZyIQ)
![](https://private-user-images.githubusercontent.com/58383702/261592513-08097756-07a0-47b3-bd8d-d1a17c56d6ea.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxNzEyNjUsIm5iZiI6MTcyNjE3MDk2NSwicGF0aCI6Ii81ODM4MzcwMi8yNjE1OTI1MTMtMDgwOTc3NTYtMDdhMC00N2IzLWJkOGQtZDFhMTdjNTZkNmVhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEyVDE5NTYwNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM2Y2RiNzFmYTdkN2ExYTE2MWI1ZDQ3OTA4NWMwNjE5ZGU2NmFiODFkZmRiZTZmZTEyMzFiNGQ0OGYyNGUxMjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.09DuNCOk-1QjQRFss9IzlcPhGkxFomE__zmkyKZX5f8)
![](https://private-user-images.githubusercontent.com/58383702/261592570-d438aba7-8e3e-4281-b50c-53638c6322b9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jViNmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.qFSmIls1_Qa9wmk-lBs6r9cLxZnu1Z7_IZ_xJO2uFFg)
![](https://private-user-images.githubusercontent.com/58383702/261592668-aede680a-7ec9-40fa-b1a4-bb95b7da0d0e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxNzEyNjUsIm5iZiI6MTcyNjE3MDk2NSwicGF0aCI6Ii81ODM4MzcwMi8yNjE1OTI2NjgtYWVkZTY4MGEtN2VjOS00MGZhLWIxYTQtYmI5NWI3ZGEwZDBlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEyVDE5NTYwNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE2MmM5Yzk2MGQxZmZmNjcxMDBlZGE2M2ViYzI5MWU0Zjg0MjZkNWE3NmQ5ZGVmMmYwNThiZjllNWIxMTc4NGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.L14JZofWrP9iTtGvaAyjK8WLmlHbOQwJT0ylVlDeRLw)
![](https://private-user-images.githubusercontent.com/58383702/261592733-cd70821f-03c4-4168-99c1-ed7f79088a29.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50L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