生产 AdMob 横幅广告无法在 iOS 上加载
Production AdMob Banner Ad doesn't load oniOS
在制作 iOS 应用时,我使用了测试 AdMob AppID 和 AdUnitID。
每次都显示测试广告。
今天我创建了一个 AdMob 帐户并获得了生产 AppID 和 AdUnitID。
我复制了它们并替换了我应用中的测试。
我存档了该应用程序,以便使用 XCode 中的 发布 设置。
然后我上传到AppStore
但是,当我从 TestFlight 下载应用程序时,没有显示任何广告。
我错过了什么?
P.S。
- GoogleAds 框架是最新的
- AdMob 帐户已填写所需信息。
AppDelegate
GADMobileAds.configure(withApplicationID: <AdMob AppID>)
ViewController
bannerAd.adUnitID = <AdMob adUnitID>
bannerAd.rootViewController = self
bannerAd.load(GADRequest())
根据 Admob Help:
When apps are newly registered with AdMob, it takes some time and a few ad requests to allow inventory to build. Because of this, you may not see live impressions immediately.
Once your app is making more requests, you should see more consistent results. Please note that test ads operate through the same channels as live ads. Being able to return a test ad ensures that your application is communicating properly with our network.
我会说等待 24-48 小时才能开始看到实时广告,具体取决于您所在的地区。
在制作 iOS 应用时,我使用了测试 AdMob AppID 和 AdUnitID。
每次都显示测试广告。
今天我创建了一个 AdMob 帐户并获得了生产 AppID 和 AdUnitID。
我复制了它们并替换了我应用中的测试。
我存档了该应用程序,以便使用 XCode 中的 发布 设置。
然后我上传到AppStore
但是,当我从 TestFlight 下载应用程序时,没有显示任何广告。
我错过了什么?
P.S。 - GoogleAds 框架是最新的 - AdMob 帐户已填写所需信息。
AppDelegate
GADMobileAds.configure(withApplicationID: <AdMob AppID>)
ViewController
bannerAd.adUnitID = <AdMob adUnitID>
bannerAd.rootViewController = self
bannerAd.load(GADRequest())
根据 Admob Help:
When apps are newly registered with AdMob, it takes some time and a few ad requests to allow inventory to build. Because of this, you may not see live impressions immediately.
Once your app is making more requests, you should see more consistent results. Please note that test ads operate through the same channels as live ads. Being able to return a test ad ensures that your application is communicating properly with our network.
我会说等待 24-48 小时才能开始看到实时广告,具体取决于您所在的地区。