UITableView, AdMob banner disappear by scrolling

437 views
Skip to first unread message

wues...@gmail.com

unread,
Feb 10, 2016, 9:08:23 AM2/10/16
to Google Mobile Ads SDK Developers
Hi Guys,

because apple will be discontinued the iAd Network in future I will show advertisement with the AdMob program from google.
Now my Problem:
I have a large UITableView, if I scroll down the iAd Banner (apple) is always located at the bottom of the view, don't disappear by scrolling (because it is fixed) and don't cover the last row (its sitting somehow under the UITableView.

For an iAd Banner this is working by the command line :      self.canDisplayBannerAds = true

Have a look at these tow screenshots:

 1:



2:





If I try to put the AdMob banner at exactly the same location it ist sitting under the UITableView ( so that you have scroll to the bottom of the UITableView), or it ist sitting either over the heading line (Navigation Bar) or over the first row at the UITableView (and cover this row).

So what can I do to put my AdMob banner at a location in my UITableView, where it always will be show / see from user and also don't cover anything of my UITableView (like a row)?

Have a look at these three screenshots:

1:


2:



3:






Is there exist a command for the googleMobileAds.framework, which do the same like the command of the iAd.framework?
Or have you another idea / solution for my Problem?

regards Sebb



Veer Arjun Busani

unread,
Feb 10, 2016, 3:07:09 PM2/10/16
to Google Mobile Ads SDK Developers
Hi there,

To do this, all you need to change is where the Banner View is added. Let's say that you have an UIViewController, which adds an UITableView. You can then simply add the Banner View at the bottom of the UIViewController and change the UITableView's frame to adjust to the height of the Banner View. 

I have attached a sample project in SWIFT. Note that the sample consists SnapKit and MAD SDK as pod. So make sure to pod install.

Project: Link

Thanks,
Veer Arjun Busani
Mobile Ads SDK Team
Reply all
Reply to author
Forward
0 new messages