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 6723915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:37:34+00:00 2026-05-26T09:37:34+00:00

How going, dudes? So today it’s a really ridiculous question, but i just can’t

  • 0

How going, dudes?
So today it’s a really ridiculous question, but i just can’t get it to work the way i want.
I’m implementing the AdMob stuff but i want to get some additional information.

They gave the instructions on the GoogleCodes/AdMob
but i can’t make it give me the logs i want.

This is on the .h

#import <UIKit/UIKit.h>
#import "GADBannerView.h"
#import "GADBannerViewDelegate.h"

@interface AppForAllTestsViewController : UIViewController<GADBannerViewDelegate>

This is on the .m

-(void)adViewDidReceiveAd:(GADBannerView *)bannerView{
    NSLog(@"RECEIVED");

    [UIView beginAnimations:@"BannerSlide" context:nil];
    bannerView.frame = CGRectMake(0.0, self.view.frame.size.height - bannerView.frame.size.height, 
                                   bannerView.frame.size.width, 
                                   bannerView.frame.size.height);
    [UIView commitAnimations];
}

-(void)adView:(GADBannerView *)view didFailToReceiveAdWithError:(GADRequestError *)error{
    NSLog(@"FAILURE RECEIVING AD: %@", [error localizedDescription]);
}


-(void)adMobProcess{
    adMobBanner = [[GADBannerView alloc]initWithFrame:CGRectMake(0.0, 
                                                                 self.view.frame.size.height-GAD_SIZE_320x50.height, 
                                                                 GAD_SIZE_320x50.width, 
                                                                 GAD_SIZE_320x50.height)];

    adMobBanner.adUnitID = my_id;
    adMobBanner.rootViewController = self;
    [self.view addSubview:adMobBanner];
    [adMobBanner loadRequest:[GADRequest request]];

}

-(void)awakeFromNib{
    NSLog(@"GOOD MORNING");
    [adMobBanner setDelegate:self];
}

- (void)viewDidLoad{
    [self adMobProcess];
    [super viewDidLoad];
}

You can see that i’m setting the delegate to “self” but nothing happens, none of the changes, can any one, please, help me? (:

  • 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-05-26T09:37:35+00:00Added an answer on May 26, 2026 at 9:37 am

    The AdMob iOS documentation states:

    Remember to set the delegate using the setDelegate: before making the request for an ad.

    Because you set the delegate in awakeFromNib, you are either setting the delegate before initializing the adMobBanner (NPE?), or you are setting it after the adRequest. You should instead set the delegate in adMobProcess before calling loadRequest.

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

Sidebar

Related Questions

Going through K&R, I'm trying to get my head around C. I want to
Going nuts over this. Simple query but its just not working. I simply need
Going on from my question yesterday, I need to know the way to approach
Going off of my other question and its pair . I'm looking to grab
Im going to make a new application for a car dealership. They basically want
Im going crazy trying to debug a problem, where I get an exception ***
Can anyone provide an easier more automatic way of doing this? I have the
Going through a weird problem here. I am trying to get the date of
Alright, I am going for the total shotgun question here. I tried to create
Why is it so awkward to get a two-column form layout to work in

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.