Skip to content

Commit

Permalink
Revert "chore(docs): update gathering consent info"
Browse files Browse the repository at this point in the history
This reverts commit daa3eee.
  • Loading branch information
dylancom committed Jan 8, 2024
1 parent be21a71 commit a82412b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions RNGoogleMobileAdsExample/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"react-native-google-mobile-ads": {
"android_app_id": "ca-app-pub-3940256099942544~3347511713",
"ios_app_id": "ca-app-pub-3940256099942544~1458002511",
"delay_app_measurement_init": false,
"optimize_initialization": true,
"optimize_ad_loading": true,
"user_tracking_usage_description": "This identifier will be used to deliver personalized ads to you.",
Expand Down
27 changes: 27 additions & 0 deletions docs/european-user-consent.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,33 @@ To setup and configure ads consent collection, first of all:

You'll need to generate a new development build before using it.

### Delaying app measurement

By default, the Google Mobile Ads SDK initializes app measurement and begins sending user-level event data to Google immediately when the app starts.
If your app will be used by users within the EEA, it is important you prevent app measurement until your first ad has been requested (after consent).

Within your projects `app.json` file, set the `delay_app_measurement_init` to `true` to delay app measurement:

```json
{
"react-native-google-mobile-ads": {
"android_app_id": "ca-app-pub-xxxxxxxx~xxxxxxxx",
"ios_app_id": "ca-app-pub-xxxxxxxx~xxxxxxxx",
"delay_app_measurement_init": true
}
}
```

Once set, rebuild your application:

```bash
# For iOS
npx react-native run-ios

# For Android
npx react-native run-android
```

### App Tracking Transparency

If you want to handle Apple's App Tracking Transparency requirements, ensure you've configured and published your [ATT message](https://developers.google.com/admob/ump/ios/quick-start#app_tracking_transparency) in your Google AdMob account.
Expand Down

0 comments on commit a82412b

Please sign in to comment.