Package com.my.target.nativeads.banners
Class NativePromoBanner
-
- All Implemented Interfaces:
public class NativePromoBanner extends NativeBanner
A data class for Native Ad. Can contain cards, video or just image
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classNativePromoBanner.BuilderBuilder for model is used for mediation
-
Method Summary
Modifier and Type Method Description ArrayList<NativePromoCard>getCards()StringgetCategory()CollagegetCollage()HtmlgetHtml()ImageDatagetImage()StringgetImageDominantColor()StringgetSubCategory()floatgetVideoDuration()booleanhasVideo()booleanisHtml5()StringtoString()-
Methods inherited from class com.my.target.nativeads.banners.NativeBanner
getAboutCompanyInfo, getAdChoicesIcon, getAdChoicesMenuActions, getAdvertisingLabel, getAgeRestrictions, getBundleId, getCtaText, getDescription, getDisclaimer, getDisclaimerInfo, getDomain, getErid, getIcon, getId, getNavigationType, getRating, getStoreType, getTitle, getVotes, hasAdChoices -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getCards
@NonNull() ArrayList<NativePromoCard> getCards()
- Returns:
list with native ad cards
-
getCategory
@Nullable() String getCategory()
- Returns:
ad category text for store-type ads
-
getCollage
@Nullable() Collage getCollage()
- Returns:
collage for nativeAd
-
getImageDominantColor
@Nullable() String getImageDominantColor()
- Returns:
dominant color of an image
-
getSubCategory
@Nullable() String getSubCategory()
- Returns:
ad subcategory text for store-type ads
-
getVideoDuration
float getVideoDuration()
- Returns:
banner video duration. if banner hasn't video return 0
-
hasVideo
boolean hasVideo()
- Returns:
has this banner video or not
-
isHtml5
boolean isHtml5()
-
-
-
-