标签:
关于广告的问题,国内的可能水都很深,数据 就上了,直接说加 SDK
1,加入 以下framework
coreMedia .framewordk,
coreTelephony.framewordk,
AudioToolbox.framewordk,
MediaPlayer.framewordk,
MessageUI.framewordk,
storekit.framework,
MediaPlayer,
EventKitUI,
EventKit,
AdSupport.framework 这个库要注意,苹果后台要设置对了 这个库黑我好多次了
2,把 SDK 加到工程中,下载地址 http://download.csdn.net/detail/a287971/8338719
3,
#import "GADBannerView.h" GADBannerView *bannerView_;
bannerView_ = [[GADBannerView alloc] initWithFrame:CGRectMake(0.0, self.view.frame.size.height-113, GAD_SIZE_320x50.width, GAD_SIZE_320x50.height)]; bannerView_.adUnitID = @"ca-app-pub-4604023153892773/4960498111"; // 这里换成你自己的<pre name="code" class="html">adUnitID bannerView_.rootViewController = self; [self.view addSubview:bannerView_]; [bannerView_ loadRequest:[GADRequest request]];
4, other linker Flags 设置成 -ObjC
标签:
原文地址:http://blog.csdn.net/beijingak/article/details/42502363