Here is how to integrate iAd Network Ad (Mobile Advertisements) in your iOS App

It seems ApStore is most popular for one feature utility, game or productive ‘Free’ App.

 
It is known that most downloaded apps are ‘Free’.

 
So question arises how you will able to monetise your app when you only giving it away for free.

 

iAd Background from Wikipedia: iAd is a mobile advertising platform developed by Apple Inc. for its iPhone, iPod Touch, and iPad line of mobile devices allowing third-party developers to directly embed advertisements into their applications.

 
Integrating iAd Network Ad (Mobile Network Advertisements) is easy as three steps.

 
Step 01: Create space for iAd Banner & now drag ‘Ad BannerView’ from Interface builders’ Object Library from right hand panel to your UIViewController in your storyboard. Now add required & suggested constraints using interface builder.

 
iAd Network Ad Banner View Sizes

 
Step 02: Add following code in implementation of your ViewController’s .m file

 

@implementation ViewController
{
    ADBannerView *_bannerView;
}

 
Step 03: Now add following code in viewDidLoad under your ViewController’s .m file.

 

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    // On iOS 6 ADBannerView introduces a new initializer, use it when available.
    if ([ADBannerView instancesRespondToSelector:@selector(initWithAdType:)]) {
        _bannerView = [[ADBannerView alloc] initWithAdType:ADAdTypeBanner];
    } else {
        _bannerView = [[ADBannerView alloc] init];
    }
    _bannerView.delegate = self;
    [self.view addSubview:_bannerView];
}

 
You are done…!!!

 
Now you can release your app to AppStore if every thing is working fine. Apple will show dummy ads in Simulator or on Your device, Once app is released to AppStore actual ads will start showing up after 3 to 4 days.

 
Hope it helps,

 
Thanks & Regards
Mandar Apte

Published by Mandar Apte

Mandar is a Mumbai-based multi-disciplinary designer with UX/UI, Logo, Symbol, and Brand Identity design expertise. He currently runs his Mudrkashar Linguistic Apple iPhone, iPad, and Mac app business in the heart of Mumbai city.

Leave a comment

Leave a Reply