# ConsentRequestParameters.Builder

# ConsentRequestParameters.Builder


```
class ConsentRequestParameters.Builder
```

<br />

*** ** * ** ***

Builder of `https://developers.google.com/admob/android/reference/privacy/kotlin/com/google/android/ump/ConsentRequestParameters`.

## Summary

| ### Public constructors |
|---|
| `https://developers.google.com/admob/android/reference/privacy/kotlin/com/google/android/ump/ConsentRequestParameters.Builder#Builder()()` |

| ### Public functions |
|---|---|
| `https://developers.google.com/admob/android/reference/privacy/kotlin/com/google/android/ump/ConsentRequestParameters!` | `https://developers.google.com/admob/android/reference/privacy/kotlin/com/google/android/ump/ConsentRequestParameters.Builder#build()()` |
| `https://developers.google.com/admob/android/reference/privacy/kotlin/com/google/android/ump/ConsentRequestParameters.Builder!` | `@https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developers.google.com/admob/android/reference/privacy/kotlin/com/google/android/ump/ConsentRequestParameters.Builder#setConsentDebugSettings(com.google.android.ump.ConsentDebugSettings)(consentDebugSettings: https://developers.google.com/admob/android/reference/privacy/kotlin/com/google/android/ump/ConsentDebugSettings?)` Sets the `https://developers.google.com/admob/android/reference/privacy/kotlin/com/google/android/ump/ConsentDebugSettings`. |
| `https://developers.google.com/admob/android/reference/privacy/kotlin/com/google/android/ump/ConsentRequestParameters.Builder!` | `@https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developers.google.com/admob/android/reference/privacy/kotlin/com/google/android/ump/ConsentRequestParameters.Builder#setConsentSyncId(java.lang.String)(consentSyncId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` Sets the consent sync ID to sync the user consent status collected with the same ID. |
| `https://developers.google.com/admob/android/reference/privacy/kotlin/com/google/android/ump/ConsentRequestParameters.Builder!` | `@https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developers.google.com/admob/android/reference/privacy/kotlin/com/google/android/ump/ConsentRequestParameters.Builder#setTagForUnderAgeOfConsent(boolean)(tagForUnderAgeOfConsent: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)` Sets whether the user is tagged for under age of consent. |

## Public constructors

### Builder

```
Builder()
```

## Public functions

### build

```
fun build(): ConsentRequestParameters!
```

### setConsentDebugSettings

```
@CanIgnoreReturnValue
fun setConsentDebugSettings(consentDebugSettings: ConsentDebugSettings?): ConsentRequestParameters.Builder!
```

Sets the `https://developers.google.com/admob/android/reference/privacy/kotlin/com/google/android/ump/ConsentDebugSettings`.

If `null`, no debug setting will be used.

### setConsentSyncId

```
@CanIgnoreReturnValue
fun setConsentSyncId(consentSyncId: String!): ConsentRequestParameters.Builder!
```

Sets the consent sync ID to sync the user consent status collected with the same ID.

The consent sync ID must meet the following requirements:

- Constructed as a UUID string as matches the regular expression (regex) \^\[0-9a-zA-Z+.=\\/_\\-$,{}\]{22,150}$
- A minimum of 22 characters.
- A maximum of 150 characters.

Failure to meet the requirements results in the consent sync ID not being set and the UMP SDK logging a warning to the console.

### setTagForUnderAgeOfConsent

```
@CanIgnoreReturnValue
fun setTagForUnderAgeOfConsent(tagForUnderAgeOfConsent: Boolean): ConsentRequestParameters.Builder!
```

Sets whether the user is tagged for under age of consent.

Default value is `false`.