mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-07 09:27:42 +08:00
Break out android/ios admob keys
This commit is contained in:
@@ -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'],
|
||||
});
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user