Admob does not display banners
Issue
Admob banners do not render when using real appid and unit ids.
This happens with the types "BANNER", "FULL_BANNER", "LARGE_BANNER", "LEADERBOARD" and "SMART_BANNER". Just the "MEDIUM_RECTANGLE" works.
Weird is.. it always works with using admob test ids and about 1 of 100 times it works with the real ones. But when it works with real ids, then it will stop with the next render.
I did double check my Admob settings, theres no frequency capping set for those units. So i believe this must be a bug with this lib.
My code looks like: ` firebase.admob().initialize('ca-app-pub-**********************'); <<=== in the main component
const Banner = firebase.admob.Banner; const AdRequest = firebase.admob.AdRequest; const request = new AdRequest(); request.addKeyword('somekeyword'); request.addKeyword('anotherkeyword');
export const SearchBanner = () => {
return (
Environment
Android & iOS (Dev & Release)
- Application Target Platform:
macOS HighSierra
- Development Operating System:
Xcode and Android Studio
- React Native version:
0.53.0
- RNFirebase Version:
3.2.2
- Firebase Module:
Admob
Does onAdFailedToLoad get called at all?
I did not notice that there is a onAdFailedToLoad prop, thanks for this hint.
We can close this issue, because the returned error is: "Error: The ad request was successful, but no ad was returned due to lack of ad inventory."
It seems that admob has not that much inventory for the banner formats.