嗨,在我添加GADBannerView之后,委托bannerViewDidLoadAd通知收到了新广告,为什么视图中什么也没有显示?

botBanner = [[GADBannerView alloc] initWithAdSize:GADAdSizeFullWidthPortraitWithHeight(50)];
botBanner.adUnitID = kGADKey;
botBanner.delegate = self;
botBanner.rootViewController = self;
[_adBannerBotView addSubview:botBanner];

adRequest = [GADRequest request];

// Make the request for a test ad. Put in an identifier for
// the simulator as well as any devices you want to receive test ads.
adRequest.testDevices = [NSArray arrayWithObjects:@"<I add my device id>", GAD_SIMULATOR_ID, nil];
[botBanner loadRequest:adRequest];

最佳答案

我找到了答案,这真的很愚蠢。
将其发布给也正在寻找此愚蠢问题的人。
如果要在设备上接收广告,请不要将设备ID放入adRequest.testDevices

关于ios - Google Admob收到了广告,但没有任何显示,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/23123450/

10-14 00:56