NativeAd.NativeAdType

enum NativeAd.NativeAdType : Enum


Ad types of a native request.

Summary

Enum Values

BANNER

Banner ad.

CUSTOM_NATIVE

Custom native format ad.

NATIVE

Native ad.

Public functions

NativeAd.NativeAdType
valueOf(value: String)

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

Array<NativeAd.NativeAdType>

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

Public properties

EnumEntries<NativeAd.NativeAdType>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Enum Values

val NativeAd.NativeAdType.BANNERNativeAd.NativeAdType

Banner ad.

This feature is available to Ad Manager publishers only. For more information see mix native and banner ad requests.

CUSTOM_NATIVE

val NativeAd.NativeAdType.CUSTOM_NATIVENativeAd.NativeAdType

Custom native format ad.

This feature is available to Ad Manager publishers only. For more information, see create custom native ad formats.

Public functions

valueOf

fun valueOf(value: String): NativeAd.NativeAdType

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
kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

values

fun values(): Array<NativeAd.NativeAdType>

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.

Public properties

entries

val entriesEnumEntries<NativeAd.NativeAdType>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

This method may be used to iterate over the enum entries.