Admob iOS下新版sdk出現(xiàn)錯誤的解決方法

來源:簡書
作者:Zszen
時間:2020-06-30
2350
本文是Admob iOS下新版sdk出現(xiàn)錯誤的解決方法。

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

2068504-9870ff2aca332412 (1).jpg

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

立即登錄,閱讀全文
原文鏈接:點擊前往 >
文章來源:簡書
版權(quán)說明:本文內(nèi)容來自于簡書,本站不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。文章內(nèi)容系作者個人觀點,不代表快出海對觀點贊同或支持。如有侵權(quán),請聯(lián)系管理員(zzx@kchuhai.com)刪除!
優(yōu)質(zhì)服務(wù)商推薦
更多