简体   繁体   中英

Animating and hiding Banner Admob

I am considering displaying my Admob banner ad (320 x 50) within my upper navigation bar. Currently, my app logo is shown on the top of the navigation bar.

My question is, can I show my logo for 2 seconds (hiding the advert) then show the advert for 35seconds (hiding the logo)... and repeat? (Doing a quick animation between the two)...

If this is possible, what is the correct procedure for removing the banner add? Is this just a case of hiding the UIView (GADBannerView) and AdMob recognises that the BannerAd is not shown? Or would I have to dismiss the BannerAd and request a new one - how is this possible? (Like how the video adverts work - requesting a new video advert when the current video is dismissed).

Thanks

Yes, this is a simple case of hiding the UIView. It is recommended that you use one banner ad for the complete lifecycle of the app.

If you're going to be showing it and hiding it often, you're not going to want to request another ad, as this is unnecessary given that there's no harm in using the same banner multiple times. Also, the ad automatically refreshes every 45-90 seconds, which means that you should never have to re-request it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM