AgeRestrictedTreatment

public enum AgeRestrictedTreatment


Age restricted treatment enum options passed to setAgeRestrictedTreatment.

Summary

Enum Values

CHILD

Indicates that ad requests should receive CHILD age treatment.

TEEN

Indicates that ad requests should receive TEEN age treatment.

UNSPECIFIED

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

Public fields

final int

Public methods

int

Returns the integer value of the age restricted treatment.

static AgeRestrictedTreatment

Returns the enum constant of this type with the specified name.

static AgeRestrictedTreatment[]

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 fields

value

public final int value

Public methods

getValue

public int getValue()

Returns the integer value of the age restricted treatment.

valueOf

public static AgeRestrictedTreatment valueOf(String name)

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.)

Returns
AgeRestrictedTreatment

the enum constant with the specified name

Throws
java.lang.IllegalArgumentException

if this enum type has no constant with the specified name

values

public static 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.

Returns
AgeRestrictedTreatment[]

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