# AgeRestrictedTreatment


```
public enum AgeRestrictedTreatment extends Enum
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html) ||
|   | ↳ | [com.google.android.libraries.ads.mobile.sdk.common.AgeRestrictedTreatment](https://developers.google.com/ad-manager/mobile-ads-sdk/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/common/AgeRestrictedTreatment) |

*** ** * ** ***

Age restricted treatment options passed to `https://developers.google.com/ad-manager/mobile-ads-sdk/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/common/RequestConfiguration.Builder#setAgeRestrictedTreatment(com.google.android.libraries.ads.mobile.sdk.common.AgeRestrictedTreatment)`.

## Summary

| ### Enum Values |
|---|---|
| `https://developers.google.com/ad-manager/mobile-ads-sdk/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/common/AgeRestrictedTreatment#CHILD` | Indicates that ad requests should receive CHILD age treatment. |
| `https://developers.google.com/ad-manager/mobile-ads-sdk/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/common/AgeRestrictedTreatment#TEEN` | Indicates that ad requests should receive TEEN age treatment. |
| `https://developers.google.com/ad-manager/mobile-ads-sdk/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/common/AgeRestrictedTreatment#UNSPECIFIED` | Indicates that no specific age restricted treatment signal applies to the ad request. |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/ad-manager/mobile-ads-sdk/android/next-gen/reference/kotlin/enums/EnumEntries<@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/ad-manager/mobile-ads-sdk/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/common/AgeRestrictedTreatment>` | `https://developers.google.com/ad-manager/mobile-ads-sdk/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/common/AgeRestrictedTreatment#getEntries()()` Age restricted treatment options passed to `https://developers.google.com/ad-manager/mobile-ads-sdk/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/common/RequestConfiguration.Builder#setAgeRestrictedTreatment(com.google.android.libraries.ads.mobile.sdk.common.AgeRestrictedTreatment)`. |
| `final int` | `https://developers.google.com/ad-manager/mobile-ads-sdk/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/common/AgeRestrictedTreatment#getValue()()` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/ad-manager/mobile-ads-sdk/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/common/AgeRestrictedTreatment` | `https://developers.google.com/ad-manager/mobile-ads-sdk/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/common/AgeRestrictedTreatment#valueOf(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html value)` Returns the enum constant of this type with the specified name. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html AgeRestrictedTreatment[]` | `https://developers.google.com/ad-manager/mobile-ads-sdk/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/common/AgeRestrictedTreatment#values()()` Returns an array containing the constants of this enum type, in the order they're declared. |

## Enum Values

### CHILD

```
AgeRestrictedTreatment AgeRestrictedTreatment.CHILD
```

Indicates that ad requests should receive CHILD age treatment.

### TEEN

```
AgeRestrictedTreatment AgeRestrictedTreatment.TEEN
```

Indicates that ad requests should receive TEEN age treatment.

### UNSPECIFIED

```
AgeRestrictedTreatment AgeRestrictedTreatment.UNSPECIFIED
```

Indicates that no specific age restricted treatment signal applies to the ad request.

## Public methods

### getEntries

```
public final @NonNull EnumEntries<@NonNull AgeRestrictedTreatment> getEntries()
```

Age restricted treatment options passed to `https://developers.google.com/ad-manager/mobile-ads-sdk/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/common/RequestConfiguration.Builder#setAgeRestrictedTreatment(com.google.android.libraries.ads.mobile.sdk.common.AgeRestrictedTreatment)`.

### getValue

```
public final int getValue()
```

### valueOf

```
public final @NonNull AgeRestrictedTreatment valueOf(@NonNull String value)
```

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

| Throws |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-illegal-argument-exception/index.html` | if this enum type has no constant with the specified name |

### values

```
public final @NonNull AgeRestrictedTreatment[] values()
```

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.