NativeAd.NativeAdType

public enum NativeAd.NativeAdType extends Enum


Ad types of a native request.

Summary

Enum Values

BANNER

Banner ad.

CUSTOM_NATIVE

Custom native format ad.

NATIVE

Native ad.

Public methods

final @NonNull EnumEntries<@NonNull NativeAd.NativeAdType>

Ad types of a native request.

final @NonNull NativeAd.NativeAdType

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

final @NonNull NativeAd.NativeAdType[]

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

Enum Values

NativeAd.NativeAdType NativeAd.NativeAdType.BANNER

Banner ad.

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

CUSTOM_NATIVE

NativeAd.NativeAdType NativeAd.NativeAdType.CUSTOM_NATIVE

Custom native format ad.

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

Public methods

getEntries

public final @NonNull EnumEntries<@NonNull NativeAd.NativeAdTypegetEntries()

Ad types of a native request.

valueOf

public final @NonNull NativeAd.NativeAdType 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
kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

values

public final @NonNull NativeAd.NativeAdType[] 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.