> For the complete documentation index, see [llms.txt](https://docs.wortise.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wortise.com/en/react-native/user-consent.md).

# User consent

The Wortise SDK includes support for Google Ads **Consent Manager** (**CMP**) to request the consent of every user.

Obtaining the user consent is important to comply with the privacy policies and qualify for higher CPMs.

## Request consent <a href="#request-consent" id="request-consent"></a>

To request the user consent, it is needed to invoke the method `RNWortiseConsentManager.requestIfRequired` at an appropriate moment of the app. This will show a dialog, only when it is required (normally during the first app launch), so the user can grant or deny consent.

There is also the `RNWortiseConsentManager.request` method to always show the dialog, and not only when required (for example, to provide an option in the app settings to allow the user change the consent at anytime).

### Example

```typescript
import {
  RNWortiseConsentManager,
  RNWortiseSdk
} from '@wortise/react-native-sdk';

RNWortiseSdk.wait().then(() => RNWortiseConsentManager.requestIfRequired());
```
