我正在尝试实现 AdMob SDK,但是当我在 viewDidLoad 方法中运行以下代码时出现这些错误和警告...
// Create a view of the standard size at the bottom of the screen.
// Available AdSize constants are explained in GADAdSize.h.
bannerView_ = [[GADBannerView alloc] initWithAdSize:kGADAdSizeBanner];
// Specify the ad's "unit identifier." This is your AdMob Publisher ID.
bannerView_.adUnitID = @"a15030fff8e7e98";
// 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]];
以下是我收到的错误和警告……出了什么问题?
这里还有我的项目导航器中的 AdMob 文件...
编辑:当我的应用程序启动时,我现在收到此崩溃...
'NSInvalidArgumentException', reason: '-[GADBannerView private]: unrecognized selector sent to instance