SASNativeAdElement

open class SASNativeAdElement : Serializable, SCSViewabilityManagerListener, SASAdElementInfo

This class represents a native ad object as returned by the ad servers.

Constructors

Link copied to clipboard
constructor(@NonNull context: Context)
Default constructor

Types

Link copied to clipboard
interface ClickHandler
Interface to be implemented by Objects that will handle clicks on native ads in a custom fashion.
Link copied to clipboard
open class ImageElement
Member class representing an image, part of a native ad
Link copied to clipboard
interface OnClickListener
Interface to implement to be warn when a click is performed on the native ad.

Properties

Link copied to clipboard
open var adCallDate: Long
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var downloads: Long
Link copied to clipboard
Link copied to clipboard
open var inventoryId: Long
Link copied to clipboard
open var likes: Long
Link copied to clipboard
Link copied to clipboard
open var networkId: Int
Link copied to clipboard
No Ad url to call if mediation fails
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var rating: Float
Link copied to clipboard
Value indicating that the property value was not yet set.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Returns the list of mediation ads received from the ad delivery
Link copied to clipboard
Return a debug info String that describes this creative
Link copied to clipboard
Returns a HashMap containing the extra parameters present in the ad, if any.
Link copied to clipboard
Returns the format type of this SASAdElement
Link copied to clipboard
Returns an array of impression pixel urls from the internal String description
Link copied to clipboard
open fun getInsertionId(): Int
Returns the insertion Id of this SASNativeAdElement
Link copied to clipboard
Gets the OnClickListener currently set on this SASNativeAdElement
Link copied to clipboard
Returns the mediation ad that was selected from the list and will be displayed
Link copied to clipboard
open fun registerView(@NonNull v: View)
open fun registerView(@NonNull v: View, @NonNull clickableViews: Array<View>)
Marks the specified View as the View that renders this SASNativeAdElement.
Link copied to clipboard
Sets the list of mediation ads received from the ad delivery
Link copied to clipboard
open fun setCoverImage(@NonNull url: String, width: Int, height: Int)
Sets the 'cover image' property value
Link copied to clipboard
open fun setExtraParameters(@Nullable extraParameterMap: HashMap<String, Any>)
Sets a HashMap containing the extra parameters for this ad.
Link copied to clipboard
open fun setIcon(@NonNull url: String, width: Int, height: Int)
Sets the 'icon' property value
Link copied to clipboard
open fun setImpressionUrlString(@Nullable impressionUrls: String)
Sets the impression pixel list, as comma separated strings
Link copied to clipboard
open fun setInsertionId(mInsertionId: Int)
Sets the insertion Id of this SASNativeAdElement
Link copied to clipboard
Sets the OnClickListener on this SASNativeAdElement
Link copied to clipboard
open fun setSelectedMediationAd(@Nullable selectedMediationAd: SASMediationAdElement)
Sets the mediation ad that was selected from the list and will be displayed
Link copied to clipboard
open fun toString(): String
Returns a String representation of this instance
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun unregisterView(@NonNull v: View)