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

2020-04-01  本文已影响0人  Zszen

按照官方在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

上一篇 下一篇

猜你喜欢

热点阅读