PowenKo, iOS Tutorial 146, AdMob

October 18, 2011   ·   0 Comments

1. get admob acount here

2.get publish id

(2)choice iPhone / iPad

(3) get publish id 發佈商ID.

3. download SDK
Google AdMob Ads SDK for iOS



4. get code
You can download an
example project

or see see Google AdMob Ads iOS Fundamentals to code

5.define MY_BANNKER_UINT_ID as your AdMob Publish ID

6. build

PS:第一次執行是看不到廣告的 ,要等至少2分鐘才會接收成功

7not wait to test 不想等可以這麼做
find

[bannerView_ loadRequest:[GADRequest request]];

replace

[GADRequest *testRequest = [GADRequest request];
testRequest.testing = YES;
[bannerView_ loadRequest:testRequest];

so you can see

shareShare on FacebookShare on Google+Share on LinkedInEmail this to someonePrint this pageBuffer this pageDigg thisFlattr the authorShare on RedditPin on PinterestShare on StumbleUponShare on TumblrTweet about this on Twitter

By


Readers Comments (0)


You must be logged in to post a comment.

PowenKo’s Online Store

powenko_arduinoBook
iOS Tutorial9

Amazon

adsbygoogle

Recent Posts

Categories

Amazon