Break out android/ios admob keys

This commit is contained in:
ehesp
2019-09-20 15:09:47 +01:00
parent 1a2d15fc52
commit 032c1b9847
3 changed files with 19 additions and 5 deletions

View File

@@ -50,7 +50,8 @@ Add the ID to your root level `firebase.json` file under the `react-native` obje
```json
{
"react-native": {
"admob_app_id": "ca-app-pub-xxxxxxxx~xxxxxxxx"
"admob_app_id_android": "ca-app-pub-xxxxxxxx~xxxxxxxx",
"admob_app_id_ios": "ca-app-pub-xxxxxxxx~xxxxxxxx"
}
}
```
@@ -172,6 +173,6 @@ import { InterstitialAd, TestIds } from '@react-native-firebase/admob';
// Create a new instance
const interstitialAd = InterstitialAd.createForAdRequest(TestIds.INTERSTITIAL, {
requestNonPersonalizedAdsOnly: true,
keywords: ['fashion', 'clothing']
keywords: ['fashion', 'clothing'],
});
```