Looking at AdMob's wiki
The readme suggests:
- Code: Select all
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
but this is where I get lost in Obj-C (hence using NK!
). I'm looking into how LiquidGear
calls ads but I'm not sure if I can garner anything from their method as the NK library is obfuscated.
I'll keep poking around and if anyone with better Obj-C knowledge than I has any ideas, please add your input.