按照官方在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
网友评论