您好
在我添加GADBannerView之后,委托(delegate)bannerViewDidLoadAd
通知收到了新广告,为什么 View 上没有显示任何内容?
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/