Google移动广告SDK 6.10.0:< Google>必须在调用loadRequest之前设置GADBannerView的rootViewController属性 [英] Google Mobile Ads SDK 6.10.0: <Google> Must set the rootViewController property of GADBannerView before calling loadRequest

查看:140
本文介绍了Google移动广告SDK 6.10.0:< Google>必须在调用loadRequest之前设置GADBannerView的rootViewController属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此错误刚刚开始出现,升级到6.10.0之后,因此报告同一问题的其他问题出现了另一个问题。我已经完成了代码并设置了GADBannerView的Root View Controller没有生效:

This error just started showing up following upgrade to 6.10.0, so a different issue to the other questions reporting this same issue. I've walked through the code and setting the Root View Controller of the GADBannerView doesn't take effect:

    [self.adUnit setRootViewController:controller];
    NSLog(@"Ad Unit:          %@", [self.adUnit class]);
    NSLog(@"Root VC:          %@", [controller class]);
    NSLog(@"Ad Unit Root VC:  %@", [self.adUnit.rootViewController class]);

结果:

2014-07-25 11:52:23.234 *** [16665:607] Ad Unit:          GADBannerView
2014-07-25 11:52:23.235 *** [16665:607] Root VC:          MyAppViewController
2014-07-25 11:52:23.235 *** [16665:607] Ad Unit Root VC:  (null)


推荐答案

听说谷歌:

我跟工程师说过这是固定在我们的主要修订版。他们仍在调查它为什么发生在第一位。

"I checked with the engineers who said this is fixed at our head revision. They're still investigating why it happened in the first place though.

我还没有约会的时间我们会正在做另一个版本,所以在短期内我建议回滚到6.9来解决你的直接问题。

I don't have a date yet for when we'll be doing another release, so in the short term I'd recommend rolling back to 6.9 to address your immediate issue."

Ben

这篇关于Google移动广告SDK 6.10.0:< Google>必须在调用loadRequest之前设置GADBannerView的rootViewController属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆