diff --git a/docs/index.mdx b/docs/index.mdx index a4f24b66..6d722124 100644 --- a/docs/index.mdx +++ b/docs/index.mdx @@ -401,7 +401,10 @@ Within your projects configuration file, you have to provide a user tracking usa #### Requesting App Tracking Transparency authorization -To request the App Tracking Transparency authorization we recommend using the [react-native-permissions](https://github.com/zoontek/react-native-permissions) library or making it part of the UMP consent flow [European User Consent page](/european-user-consent). +To request the App Tracking Transparency authorization we recommend using a library or making it part of the UMP consent flow [European User Consent page](/european-user-consent). + + + ```js import { check, request, PERMISSIONS, RESULTS } from 'react-native-permissions'; @@ -417,6 +420,29 @@ const adapterStatuses = await mobileAds().initialize(); // Now ads can be loaded. ``` + + + +```js +import { + getTrackingPermissionsAsync, + PermissionStatus, + requestTrackingPermissionsAsync, +} from 'expo-tracking-transparency'; + +const { status } = await getTrackingPermissionsAsync(); +if (status === PermissionStatus.UNDETERMINED) { + await requestTrackingPermissionsAsync(); +} + +const adapterStatuses = await mobileAds().initialize(); + +// Now ads can be loaded. +``` + + + + ### European User Consent Out of the box, AdMob does not handle any related regulations which you may need to enforce on your application.