Admob不工作?

use*_*767 1 iphone ads admob xcode4 ios5

我之前制作了一个应用程序,这个代码在5.0.1更新之前工作但它不适用于新的应用程序.可能是什么问题呢?

这是代码:

{
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
// Do any additional setup after loading the view from its nib.
// Create a view of the standard size at the bottom of the screen. 
bannerView_ = [[GADBannerView alloc] initWithFrame:CGRectMake(0.0, self.view.frame.size.height - GAD_SIZE_320x50.height, GAD_SIZE_320x50.width, GAD_SIZE_320x50.height)]; 
// Specify the ad's "unit identifier." This is your AdMob Publisher ID. 
bannerView_.adUnitID = MY_BANNER_UNIT_ID; 
// Let the runtime know which UIViewController to restore after taking 
// the user wherever the ad goes and add it to the view hierarchy. 
bannerView_.rootViewController = self; [self.view addSubview:bannerView_]; 
// Initiate a generic request to load it with an ad. 
[bannerView_ loadRequest:[GADRequest request]];}
Run Code Online (Sandbox Code Playgroud)

小智 19

您确定已将项目二进制文件链接到构建设置中的以下库:

  • AudioToolbox
  • MessageUI
  • 系统配置
  • CoreGraphics中