How to Add iAd Banner in IPhone App http://bees4honey.com/blog/tutorial/how-to-add-iad-banner-in-iphoneipad-app/
Information from cocoachina.com 1. Apple iAd http://www.cocoachina.com/appstore/top/2010/0628/1762.html Mobile ad system Knowledge aggregation
Have a more detailed introduction and sample code download
2. How to keep iad from hiding the banner when you can't get the ads http://www.cocoachina.com/iphonedev/sdk/2010/0714/1863.html
3. Using Iad.framework, how to let the program still run under 3.x. Http://www.cocoachina.com/bbs/read.php?tid-24414-page-1.html The second page of the post, there is a solution
iphone pops up AdMob ad based on PhoneGap project
PhoneGap and AdMob of the relevant knowledge will not say, if used to be sure to know, here directly to say steps.
Step one: Open Xcode and create a new project based on PhoneGap.
Step Two: Add the AdMob header and. a files. (As for how to add, refer to my article: Xcode add third Third-party)
Step three: Add #import "GADBannerView.h" to the Appdelegate header file
Step Fourth: Declare an instance variable Gadbannerview *gbannerview in the appdelegate header file;
Step Fifth: Add the following code inside the Webviewdidfinishload function in the APPDELEGATE.M file
Gbannerview = [[Gadbannerview alloc]init];
[Gbannerview setdelegate:self];
[Gbannerview setframe:cgrectmake (0, 0, 320, 50)];
Gbannerview.adunitid =@ "The ID of the AdMob publisher you are applying for";//mine is A14F0AABCBD12CD, if you don't mind, just advertise it for me.
Gbannerview.rootviewcontroller = Self.viewcontroller;
Gbannerview.backgroundcolor = [Uicolor Greencolor];
[Self.viewController.view Addsubview:gbannerview];
[Gbannerview loadrequest:[gadrequest request]];
Sixth step: Open Phonegap.plist, find externalhots, under normal circumstances is 0 Items
Click Next to "+", add an item, enter *
(If you do not add this step, you will report error whitelist rejection wrong)
Below is my work, I hope everyone to give evaluation: parenting treasure http://itunes.apple.com/us/app/ Yu-er-bao-dian/id557095677?ls=1&mt=8