Smart and Adaptive banners not Working on Android
See original GitHub issueDescribe the bug Smart and adaptive banners not working on Android.
To Reproduce Steps to reproduce the behavior:
const options: BannerAdOptions = {
adId,
adSize: BannerAdSize.SMART_BANNER,
position: BannerAdPosition.BOTTOM_CENTER,
};
AdMob.showBanner(options).then(() => {
console.log('MY-LOG ' + 'Banner Ads Ready!!');
});
subscribing to
AdMob.addListener(BannerAdPluginEvents.FailedToLoad, (error) => {
console.error(error.code); // 3
console.error(error.message); // No ad config
});
Desktop (please complete the following information):
- OS: [MacOS]
Smartphone (please complete the following information):
- OS: [Android]
Additional context Checking the source code of the plugin I found this:
ADAPTIVE_BANNER("ADAPTIVE_BANNER", AdSize.INVALID),
SMART_BANNER("ADAPTIVE_BANNER", AdSize.zza);
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Anchored adaptive banners | Android - Google Developers
Adaptive banners are the next generation of responsive ads, maximizing performance by optimizing ad size for each device. Improving on smart ...
Read more >Add Smart Banner for apps - Google Ad Manager Help
Use of Smart Banners with other features, such as Native ads, is not supported. The Smart Banner ad unit size doesn't work with...
Read more >Smart banner returning error code `Ad failed to load: 3`.
I have lots of ad units, creative and line items which are already running and active. But after implementing new ad unit which...
Read more >Android Notifications Not Showing Up? 10 Fixes You Can Try
2. Review the App's Notification Settings ... If restarting your phone didn't do the job, one of the most common reasons notifications don't...
Read more >Integrate Adaptive Banner with Android Studio
Adaptive banners are the next generation of responsive ads, maximizing performance by optimizing ad size for each device. Improving on smart banners, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Mozart-Alkhateeb Sorry, this is our mistake. will fix.
Yep, there is a bug in the size declaration https://github.com/capacitor-community/admob/blob/478e1efdd82b5ec9b225f1552ef247947ef4f6f4/android/src/main/java/com/getcapacitor/community/admob/banner/BannerAdSizeEnum.java#L15