美文网首页
Admob iOS下新版sdk出现错误的解决方法

Admob iOS下新版sdk出现错误的解决方法

作者: Zszen | 来源:发表于2020-04-01 14:23 被阅读0次

按照官方在plist上添加

<key>GADApplicationIdentifier</key>
<string>ca-app-pub-3940256099942544~1458002511</string>

错误提示

The Google Mobile Ads SDK was initialized incorrectly. Google AdMob publishers should follow instructions here: https://googlemobileadssdk.page.link/admob-ios-update-plist to include the AppMeasurement framework, set the -ObjC linker flag, and set GADApplicationIdentifier with a valid App ID. Google Ad Manager publishers should follow instructions here: https://googlemobileadssdk.page.link/ad-manager-ios-update-plist

The Google Mobile Ads SDK was initialized incorrectly. Google AdMob publishers should follow instructions here: https://googlemobileadssdk.page.link/admob-ios-update-plist to include the AppMeasurement framework, set the -ObjC linker flag, and set GADApplicationIdentifier with a valid App ID. Google Ad Manager publishers should follow instructions here: https://googlemobileadssdk.page.link/ad-manager-ios-update-plist

在plist上添加

<key>GADIsAdManagerApp</key>
<true/>

再次运行即可, 大概是屏蔽掉GoogleAppMeasurement.framework的检查


本身只使用admob的话用不到它

https://stackoverflow.com/questions/34652141/disable-google-app-measurement-debug-logging
https://blog.csdn.net/lvmaker/article/details/100061183
https://developers.google.com/admob/ios/quick-start#update_your_infoplist

相关文章

网友评论

      本文标题:Admob iOS下新版sdk出现错误的解决方法

      本文链接:https://www.haomeiwen.com/subject/yqxauhtx.html