Closed IrynaBt closed 1 year ago
app.json looks good based on quick comparison visually with our example https://github.com/invertase/react-native-google-mobile-ads/blob/main/RNGoogleMobileAdsExample/app.json
My guess is that you need to do a pod install
in order to munge the app.json (via our custom build steps...) into the iOS App's metadata, as that is part of the machinery that transmits the app.json contents into the running app
It does not help.
Hi @mikehardy @IrynaBt
I just upgraded to the latest release v10.3.1 for support SKAdNetwork and I am also getting the same error "ios_app_id key not found in react-native-google-mobile-ads" key in app.json
when trying to build the app for iOS.
In the previous version (v10.2.0) that I had, it was working fine.
This is my app.json:
{
"name": "abc",
"displayName": "abc",
"react-native-google-mobile-ads": {
"android_app_id": "androidId",
"ios_app_id": "iosId",
"optimize_initialization": true,
"optimize_ad_loading": true,
"user_tracking_usage_description": "This identifier will be used to deliver personalized ads to you.",
"sk_ad_network_items": [
"....skadnetwork",
"....skadnetwork",
]
}
}
Any ideas? Thanks.
Fixed!
In my case, there is an extra comma at the end of sk_ad_network_items
.
Make sure you have the JSON well-formed.
In my case it was necessary to update ruby version to 2.6.6
Hello 👋, to help manage issues we automatically close stale issues.
This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?
This issue will be closed in 15 days if no further activity occurs.
Thank you for your contributions.
Still getting this issue
What happened?
When I try to run application I get this error: ios_app_id key not found in react-native-google-mobile-ads key in app.json. App will crash without it.
Platforms
iOS, but have not tested behavior on Android
React Native Info
Are your using Typescript?
package.json
app.json
ios/Podfile
No response
android/build.gradle
No response
android/app/build.gradle
No response
android/settings.gradle
No response
AndroidManifest.xml
No response