AdPlacementType

enum AdPlacementType : Enum<AdPlacementType> , Serializable

Enum class describing the expected type of placement for the Advertisement.

You pass it to the AdService.makeAdvertisement method.

The SDK supports two types of ads:

  • INLINE – created to be displayed in your view hierarchy.

  • INTERSTITIAL – for presenting full screen cover ad.

Advertisement matches the AdMetadata.placement received from the server with the placement type you provided when calling the AdService.makeAdvertisement.

Entries

Link copied to clipboard

Ad created to be displayed in your view hierarchy.

Link copied to clipboard

Ad created to be displayed as a full screen cover.

Properties

Link copied to clipboard

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

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The string value of the enum constant.

Functions

Link copied to clipboard
open override fun encode(json: JSONObject): JSONObject

Can throw an exception if encoding fails.

Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard

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