Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9272907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:58:31+00:00 2026-06-18T15:58:31+00:00

I am using AdMob and loading a GADBannerView into a UITableViewController instead of a

  • 0

I am using AdMob and loading a GADBannerView into a UITableViewController instead of a general UIView. Can anyone tell me how to have the banner load in and just appear at the top of the table view? Below is the code:

In the nameViewController.h file:

@interface nameViewController : UITableViewController {
    GADBannerView *AbMob;
}

In the nameViewController.m file on (void)viewDidLoad:

//AdMob block
AbMob = [[GADBannerView alloc]
         initWithFrame:CGRectMake(0.0,
                                  self.view.frame.size.height -
                                  GAD_SIZE_320x50.height,
                                  GAD_SIZE_320x50.width,
                                  GAD_SIZE_320x50.height)];

AbMob.adUnitID = AdMob_ID;
AbMob.rootViewController = self;
[self.view addSubview:AbMob];

GADRequest *r = [[GADRequest alloc] init];
r.testing = YES;
[AbMob loadRequest:r];

Any ideas would be greatly appreciated, right now its just kind of floating out there.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T15:58:33+00:00Added an answer on June 18, 2026 at 3:58 pm

    Here is a full-blown example of how to embed an ad at both the top and bottom of a table view. Slight modifications could be made to only show one at the top.

    Note that per AdMob T&C, there can only be a maximum of 2 ads even in a long table view, and no more than 1 ad should be showing at one time. Just showing 1 ad at the top works just fine as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can I load admob ad using AsyncTask ? I have tried it but I
Do you have experience using Mono for Android and AdMob? Can you describe how
I have been using AdMob adverts on my Web Apps for a while now
I have setup a test application using Admob Mediation service. The application functions fine,
I have setup a test application using Admob Mediation service. I have an issue
Using Android Admob sdk I receive same banner all the time. On different devices
Does anybody have a suggestion to use Admob's iOS ads without using the iPhone
Using AdMob in MonoTouch Projects with iOS SDK 4.2 We have a test project
Using AdMob, how can I give an advertisement in an Android Application?
I am using an adMob banner in my application but when I run it,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.