public abstract class

NativeAd

extends Object
  java.lang.Object
  ↳co.adcel.nativeads.NativeAd

Class Overview

Abstract class that provides access to the native advertising data..

Summary

Nested Classes

interface NativeAd.OnAdExpiredListener Interface for handling the event of terminating validity period of RTB advertising provider

Public Methods

abstract String getTitle() Returns the title of the advertising unit
abstract String getDescriptionText() Returns the description text of the advertising unit
abstract String getIconUrl() Returns the link to the icon of the advertising unit
abstract float getIconWidth() Returns the width of the icon
abstract float getIconHeight() Returns the height of the icon
abstract String getImageUrl() Returns the link to the image of the advertising unit
abstract float getImageWidth() Returns the width of the image
abstract float getImageHeight() Returns the height of the image
abstract String getCtaText() Returns the button text
abstract float getStarRaiting() Returns the rating
boolean isExpired() Returns the sign of the relevance of the advertising unit
void setOnAdExpiredListener( OnAdExpiredListener onAdExpiredListener) Sets the event listener for RTB advertising expiration

Public Methods

abstract String getTitle()

Returns

Text of the advertising unit heading

abstract String getDescriptionText()

Returns

Text of the advertising unit description

abstract String getIconUrl()

Returns

Link to the advertising unit icon

abstract float getIconWidth()

Returns

Value of the icon width

abstract float getIconHeight()

Returns

Value of the icon heights

abstract String getImageUrl()

Returns

Link to the advertising unit show

abstract float getImageWidth()

Returns

Value of the image width

abstract float getImageHeight()

Returns

Value of the image height

abstract String getCtaText()

Returns

Button text

abstract float getStarRaiting()

Returns

Rating value

boolean isExpired()

Returns the sign of the advertising unit relevance

Returns

true - if advertising unit is not relevant, false - if data is still relevant

void setOnAdExpiredListener(OnAdExpiredListener onAdExpiredListener)

Sets the event listener for RTB advertising expiration

Parameters

onAdExpiredListener Interface for handling the event of terminating validity period of RTB advertising provider