Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

nightwalker21

macrumors newbie
Original poster
Jul 27, 2011
18
0
USA
I'm trying to learn the best way of implementing Google's AdMob to my app I did it once but wasn't sure it was the right way so I'm trying to make sure it is. I would just like to know where in this line of code do I need to put the code for Google AdMob?

Here is what I am working with:
Code:
//  D3@TH's Creations
//
//  Created by D3@TH on 5/16/14.
//  Copyright (c) 2014 D3@TH. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    NSString *fullURL = @"http://sample.com";
    NSURL *url = [NSURL URLWithString:fullURL];
    NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
    [_viewWeb loadRequest:requestObj];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end

Just to let some people know so they don't get confused sample.com is not my site I removed my site because of advertising rules. I'm also making a Tab Bar WebView app.
 
Didn't Google stop serving AdMob ads a few years ago? I thought they sent me an email telling me that they'd stopped it in favor of a newer ad service (which I didn't bother looking into, because I'd already stopped using AdMob before I got the email from Google).
 
Then what would be a good site to use ads on my app? Besides Apples iAd?

Didn't Google stop serving AdMob ads a few years ago? I thought they sent me an email telling me that they'd stopped it in favor of a newer ad service (which I didn't bother looking into, because I'd already stopped using AdMob before I got the email from Google).
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.