Before I get started and try and figure out how to integrate Admob, Mobclix, Pinch Analytics etc - Has anyone else successfully added ads to a NimbleKit app yet?
Create an AdMob delegate class; it can be as simple as a class that only implements -publisherId:.
Add the following code to your view creation (modify as appropriate):
AdMobView *ad = [AdMobView requestAdWithDelegate:<your delegate>]; // start a new ad request
ad.frame = CGRectMake(0, 432, 320, 48); // set the frame, in this case at the bottom of the screen
[self.window addSubview:ad]; // attach the ad to the view hierarchy; self.window is responsible for retaining the ad
Users browsing this forum: No registered users and 0 guests