Google Mobile Ads SDK 6.10.0: <Google> Must set the rootViewController property of GADBannerView before calling loadRequest

狂风中的少年 提交于 2019-12-25 03:24:10

问题


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]);

Results in:

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)

回答1:


Heard from Google:

"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.

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



来源:https://stackoverflow.com/questions/24962670/google-mobile-ads-sdk-6-10-0-google-must-set-the-rootviewcontroller-property

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!