Package com.my.target.nativeads.banners
Class NativePromoBanner
java.lang.Object
com.my.target.nativeads.banners.NativeBanner
com.my.target.nativeads.banners.NativePromoBanner
A data class for Native Ad. Can contain cards, video or just image
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder for model is used for mediation -
Method Summary
Methods inherited from class com.my.target.nativeads.banners.NativeBanner
getAdChoicesIcon, getAdvertisingLabel, getAgeRestrictions, getBundleId, getCtaText, getDescription, getDisclaimer, getDomain, getIcon, getNavigationType, getRating, getTitle, getVotes, hasAdChoices
-
Method Details
-
newBanner
-
getCategory
- Returns:
- ad category text for store-type ads
-
getSubCategory
- Returns:
- ad subcategory text for store-type ads
-
getImage
- Returns:
- main image
- See Also:
-
hasVideo
public boolean hasVideo()- Returns:
- has this banner video or not
-
getCards
- Returns:
- list with native ad cards
- See Also:
-
toString
- Overrides:
toStringin classNativeBanner
-