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

By admin-powenko

Dr. Powen Ko is a teacher and CEO on LoopTek LLC, and like to teaching. if you need to class, please let PowenKo know, he will love to service and sharing. LoopTek web site is www.looptek.com

Leave a Reply