简体   繁体   English

AdMob可以进行测试,并且可以通过“测试飞行”进行构建,而不是通过App Store构建吗?

[英]AdMob works in testing and builds through Test Flight but not from the App Store?

Currently my app renders AdMob adverts in simulator (test adverts) and adverts in TestFlight (real adverts) perfectly fine. 目前,我的应用在模拟器中呈现AdMob广告(测试广告),而在TestFlight中呈现AdMob广告(真实广告)则非常完美。 However when I've downloaded my app from the App Store the adverts don't appear. 但是,当我从App Store下载我的应用程序时,广告不会出现。 It's hard to debug because I can't see the logs. 很难调试,因为我看不到日志。

Anyone have any idea what might cause this? 任何人都不知道这可能导致什么吗?

So for anyone that finds this issue my solution was: 因此,对于任何发现此问题的人,我的解决方案是:

I queried the App Store receipt list and checked the entries in that dictionary. 我查询了App Store的收据列表,并检查了该词典中的条目。 If it contained a value (my app only has one IAP) then remove the adverts within the app. 如果其中包含一个值(我的应用程序只有一个IAP),请删除该应用程序内的广告。 I thought the dictionary was unique to each app, turns out its not and it's shared. 我以为字典对于每个应用程序都是唯一的,事实证明它不是,并且是共享的。

TestFlight accounts didn't contain any entries so adverts were visible. TestFlight帐户不包含任何条目,因此可见广告。 Same with simulator. 与模拟器相同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM