# ConsentDebugSettings.Builder

# ConsentDebugSettings.Builder


```
class ConsentDebugSettings.Builder
```

<br />

*** ** * ** ***

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

## Summary

| ### Public constructors |
|---|
| `https://developers.google.com/admob/android/reference/privacy/kotlin/com/google/android/ump/ConsentDebugSettings.Builder#Builder(android.content.Context)(context: https://developer.android.com/reference/android/content/Context.html!)` |

| ### Public functions |
|---|---|
| `https://developers.google.com/admob/android/reference/privacy/kotlin/com/google/android/ump/ConsentDebugSettings.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/ConsentDebugSettings.Builder#addTestDeviceHashedId(java.lang.String)(hashedId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` Registers a device as a test device. |
| `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/ConsentDebugSettings.Builder#build()()` Builds 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/ConsentDebugSettings.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/ConsentDebugSettings.Builder#setDebugGeography(int)( @https://developers.google.com/admob/android/reference/privacy/kotlin/com/google/android/ump/ConsentDebugSettings.DebugGeography debugGeography: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html )` Sets the debug geography for testing purposes. |

## Public constructors

### Builder

```
Builder(context: Context!)
```

## Public functions

### addTestDeviceHashedId

```
@CanIgnoreReturnValue
fun addTestDeviceHashedId(hashedId: String!): ConsentDebugSettings.Builder!
```

Registers a device as a test device. Test devices respect debug geography settings to enable easier testing. Test devices must be added individually so that debug geography settings won't accidentally get released to all users.

You can access the hashedDeviceId from logcat once your app calls `https://developers.google.com/admob/android/reference/privacy/kotlin/com/google/android/ump/ConsentInformation#requestConsentInfoUpdate(android.app.Activity,com.google.android.ump.ConsentRequestParameters,com.google.android.ump.ConsentInformation.OnConsentInfoUpdateSuccessListener,com.google.android.ump.ConsentInformation.OnConsentInfoUpdateFailureListener)`

| Parameters |
|---|---|
| `hashedId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` | The hashed device ID that should be considered a debug device. |

### build

```
fun build(): ConsentDebugSettings!
```

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

### setDebugGeography

```
@CanIgnoreReturnValue
fun setDebugGeography(
    @ConsentDebugSettings.DebugGeography debugGeography: Int
): ConsentDebugSettings.Builder!
```

Sets the debug geography for testing purposes.

Default value is `https://developers.google.com/admob/android/reference/privacy/kotlin/com/google/android/ump/ConsentDebugSettings.DebugGeography#DEBUG_GEOGRAPHY_DISABLED()`.