I want to implement AdMob ads in my ios app, all works fine but the problem is my app is fully work without internet also, so when ads show there is no problem but when ads are not showing only blank screen appears which is not good for app,, look at these images below…
i want to remove this blank space , is it possible to move bells and image up when no ads display,, thanks
2
Answers
For iOS SDK have a look at https://developers.google.com/admob/ios/banner#implementing_banner_events
And wait for
bannerViewDidReceiveAd
before displaying your ad.If using react native have a look at this answer for an implementation:
https://stackoverflow.com/a/54566364/2303348
Ad: Monitor your Admob earnings using the Motics ios app.
I’ll be guessing your banner ad is embedded in a view. To remove the blank space when there’s no ad to show (e.g due to issues such as no internet).
Sample code below:
If you are not embedding your ad in a view, replace the banner ad directly.