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
The ad call date of the ad (EPOCH, in milliseconds).
Link copied to clipboard
The AdResponse string the AdElement is created from.
Link copied to clipboard
The body of the native ad.
Link copied to clipboard
The callToAction of the native ad.
Link copied to clipboard
The ClickHandler on this SASNativeAdElement
Link copied to clipboard
The 'click url' property value of the native ad.
Link copied to clipboard
The coverImage of the native ad.
Link copied to clipboard
open var downloads: Long
The downloads of the native ad.
Link copied to clipboard
The icon of the native ad.
Link copied to clipboard
open var inventoryId: Long
The inventory id of the ad.
Link copied to clipboard
open var likes: Long
The likes of the native ad.
Link copied to clipboard
The media element of the native ad.
Link copied to clipboard
open var networkId: Int
The network id of the native ad.
Link copied to clipboard
No Ad url to call if mediation fails
Link copied to clipboard
The price of the native ad.
Link copied to clipboard
The privacy url of the native ad.
Link copied to clipboard
open var rating: Float
The rating of the native ad.
Link copied to clipboard
Value indicating that the property value was not yet set.
Link copied to clipboard
The sponsored value of the native ad.
Link copied to clipboard
The subtitle of the native ad.
Link copied to clipboard
The title of the native ad.
Link copied to clipboard
An array of click tracking urls from the internal String description.

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)