Apple IAD Programming related information __ programming

Source: Internet
Author: User
Tags admob
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.