我正在尝试在我计划在 iOS 上部署的游戏上实施 Unity Ads,但由于某种原因,它们只出现在编辑器中(其中显示“一切似乎都在工作!”)但每次我构建对于我的 iPhone 5s,广告不会弹出。这是我的脚本(为了激活它,我只是将它附加到场景中的游戏对象上):
static int loadCount = 0;
void Start()
{
if (loadCount % 3 == 0) // only show ad every third time
{
ShowAd ();
}
loadCount++;
}
public void ShowAd()
{
if (Advertisement.IsReady())
{
Advertisement.Show();
}
}
任何帮助表示赞赏!