ads banner in TableView

605 views
Skip to first unread message

Rin Prak

unread,
Feb 21, 2016, 10:25:48 AM2/21/16
to Google Mobile Ads SDK Developers

Hi, I see a posted on this website: http://googleadsdeveloper.blogspot.com/2011/12/incorporating-google-admob-ads-into.html

I want to put a banner ads in my iOS app but when I scroll the table, the banner also scroll... but i see the tutorial in this link said they can keep the bottom link not scroll... so could you please share me a sample project. More importantly, I want the banner to be display randomly in any cell; wether top, middle, or button every 30 second. Could you give me some guidance...






Veer Arjun Busani

unread,
Feb 22, 2016, 11:23:13 AM2/22/16
to Google Mobile Ads SDK Developers
Hi Rin,

I have created a sample project in Objective-C and you could go through it and let us know if you need anything else.
  • I have created two types of Banners. One would always stick to the bottom of the View Controller. This is added in the root View Controller.
  • The next type is as you have requested, a Banner randomly popping up every 30 seconds in a Table View. I have used a timer to get this effect but you could build upon this if needed.
Thanks,
Veer Arjun Busani
Mobile Ads SDK Team

Rin Prak

unread,
Feb 25, 2016, 5:52:13 AM2/25/16
to Google Mobile Ads SDK Developers
Hi Veer Arjun Busani,

Thanks you so much for your sample, but there are so many things in this sample... since I'm a very young beginner, could you simplify by separating them into two project between the one stick on the bottom of the view controller, and the other one which is popping randomly?
 Thanks again for your help...

Veer Arjun Busani

unread,
Feb 25, 2016, 10:44:25 AM2/25/16
to Google Mobile Ads SDK Developers
Hi Rin,

You can download the iOS Build with Table Views here - the One with Random & the One with Static Banner.

Rin Prak

unread,
Feb 26, 2016, 11:03:27 PM2/26/16
to Google Mobile Ads SDK Developers

Thanks you so much Veer Arjun Busani for your sample, but i still have some problem because my project used TabBarViewController as an initial view controller in the story board, and the tableview is navigated from a navigation controller, If i ad a view controller on top of navigation controller there are an error. So could you simply write a code directly in my tableview without using viewcontroller? You can see in the picture.
Thanks again for your help.

Veer Arjun Busani

unread,
Feb 29, 2016, 9:23:29 AM2/29/16
to Google Mobile Ads SDK Developers
Hi Rin,

Here is the sample app that you can use. Your issue seems to be more related to iOS development rather than actual Mobile Ads SDK Support. If you need forum help with how Table Views or View Controllers actually work, then I would suggest you to use StackOverflow.

Rin Prak

unread,
Mar 2, 2016, 10:45:45 AM3/2/16
to Google Mobile Ads SDK Developers
Hi Veer Arjun Busani,

Thanks you so much for your help. Actually I also try to ask this problem in StakeOverflow, but no one could help me. Your last sample is very very good and work with my project, but the ads is shown only when we scroll the table, could you make it automatically show without scrolling? Moreover, could you please make this kind of sample with the one stick on the bottom of the tableview? I know it is not related to the google Mobile ads group but only you could help me... hehe thanks you very very much.

Veer Arjun Busani

unread,
Mar 2, 2016, 9:47:47 PM3/2/16
to Google Mobile Ads SDK Developers
Hey Rin,

Can you place this in BannerTableViewController.m - 

-(void)timeForBanner:(NSTimer*)timer {
    showBanner
= true;
   
[self.tableView reloadData];
   
NSLog(@"timeForBanner");
}


As this is beyond the scope of this forum, you can email me at v3t...@gmail.com for any further assistance. 


Thanks,

Veer Busani


Rin Prak

unread,
Mar 6, 2016, 8:44:49 AM3/6/16
to Google Mobile Ads SDK Developers
Hi, Veer Arjun Busani,

Could you help me please, I have sent an email to you but I haven't received any reply yet. So could you help me because the ads is shown only in the top row and it overlaps with my label in the row. How to insert an ads in between the row that contains data and display it randomly? Your kind help on this matter would be much appreciated.
Reply all
Reply to author
Forward
0 new messages