嗨左我添加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];
答案 0 :(得分:1)
我找到了答案,这真的很愚蠢。
发布此信息给那些也在寻找这个愚蠢问题的人。
如果您希望在设备上收到广告,请勿将您的设备ID放在adRequest.testDevices