AgeRestrictedTreatment

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 functions

java-static AgeRestrictedTreatment!
valueOf(name: String!)

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

java-static Array<AgeRestrictedTreatment!>!

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

Public properties

Int

Enum Values

CHILD

val AgeRestrictedTreatment.CHILDAgeRestrictedTreatment

Indicates that ad requests should receive CHILD age treatment.

TEEN

val AgeRestrictedTreatment.TEENAgeRestrictedTreatment

Indicates that ad requests should receive TEEN age treatment.

UNSPECIFIED

val AgeRestrictedTreatment.UNSPECIFIEDAgeRestrictedTreatment

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

Public functions

valueOf

java-static fun valueOf(name: String!): AgeRestrictedTreatment!

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

java-static fun values(): Array<AgeRestrictedTreatment!>!

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
Array<AgeRestrictedTreatment!>!

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

Public properties

value

val valueInt