lee*_*der 8 xcode ads ios firebase react-native
我正在构建一个不打算展示广告的 react-native 应用程序,但我有 Firebase 身份验证和其他相关服务。令我惊讶的是,我在下面不断收到此错误。会发生什么?
*** Terminating app due to uncaught exception
'GADInvalidInitializationException', reason: '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'
Run Code Online (Sandbox Code Playgroud)
我发现解决此错误的方法是通过添加来更新 info.plist
<key>GADIsAdManagerApp</key>
<true/>
Run Code Online (Sandbox Code Playgroud)
这解决了错误问题,但不是根本问题,这就是为什么它需要 GAD 应用程序标识符,因为广告不会显示在应用程序中。
| 归档时间: |
|
| 查看次数: |
1816 次 |
| 最近记录: |