gpt4 book ai didi

ios - Google Admob 收到广告但没有显示

转载 作者:行者123 更新时间:2023-11-29 03:02:53 25 4
gpt4 key购买 nike

您好
在我添加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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com