• Copy failed

How to Integrate iAds and AdMob

How to Integrate iAds and AdMob

Currently I'm working on a new version of the airTracker app, adding some new features, removing a couple of bugs and moreover replacing Apple's iAds by Google's AdMob. Why? iAds does only serve ads to following countries U.S., Canada, Mexico, Australia, New Zealand, U.K., France, Germany, Italy, Spain, and Japan - the list of countries was copied from the iTunes connect help. Unfortunately I have realized that Austria is not delivered with ads after the app was submitted to the App Store. While searching for instructions how to integrate AdMob into my app best, I found a really nice library to handle both ad platforms - iAds and Google's AdMob. The LARSAdController can be integrated and setup really easy. Moreover the library can be configured to use iAds as main ad provider and if iAds can not delivery any ads at the moment then the library uses MobAd as fallback. The perfect solution for my needs! The repository contains an example how to integrate the LARSAdController into the app.

I have integrated the the AdController also into my UITableViewController and my requirement was to show the ad view always in the bottom of my table view.

- (UIView*)tableView:(UITableView*)tableView viewForFooterInSection:(NSInteger)section 
      return [[LARSAdController sharedManager] containerView];

- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section
    return [[LARSAdController sharedManager] containerView].frame.size.height;


I'm looking forward to get some comments from you :) 


Posted in iOS, Blog

Comments (0)

Leave a comment

You are commenting as guest. Optional login below.