Skip to content

Commit 87840c3

Browse files
authored
docs(admob, consent): admob_app_id config key gone, note platform-specific keys (#5298)
1 parent 34344dd commit 87840c3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/admob/european-user-consent.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ Within your projects `firebase.json` file, set the `admob_delay_app_measurement_
4242
```json
4343
{
4444
"react-native": {
45-
"admob_app_id": "YOUR_APP_ID",
45+
"admob_android_app_id": "ca-app-pub-xxxxxxxx~xxxxxxxx",
46+
"admob_ios_app_id": "ca-app-pub-xxxxxxxx~xxxxxxxx",
4647
"admob_delay_app_measurement_init": true
4748
}
4849
}
@@ -251,7 +252,7 @@ non-personalized ad.
251252

252253
This is a common error which occurs on both Android & iOS when making a request to display a Google-rendered consent form. Unfortunately the reasoning for this error is generic, making it hard to debug. There are a number of steps to check which are usually the cause for this error:
253254

254-
- The AdMob App ID is incorrect: Ensure you have entered the correct ID into the `firebase.json` file under the `admob_app_id` key in the `react-native` config.
255+
- The AdMob App ID is incorrect: Ensure you have entered the correct ID into the `firebase.json` file under the `admob_android_app_id` or `admob_ios_app_id` key in the `react-native` config.
255256
- A publisher ID is incorrect: Ensure your entered publisher IDs are correct.
256257
- The publisher ID needs to be available on the same account as your AdMob App ID.
257258
- The user is outside of the EEA: If a user does not need to provide consent, the form request will error. Ensure you have checked the users status via `requestInfoUpdate`. If using an emulator, ensure you set a debug location via `setDebugGeography`.

0 commit comments

Comments
 (0)