谷歌Admob收到广告但没有显示

时间:2014-04-17 02:17:40

标签: ios objective-c admob

嗨左我添加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];

1 个答案:

答案 0 :(得分:1)

我找到了答案,这真的很愚蠢。
发布此信息给那些也在寻找这个愚蠢问题的人。
如果您希望在设备上收到广告,请勿将您的设备ID放在adRequest.testDevices