Class NativePromoBanner

java.lang.Object
com.my.target.nativeads.banners.NativeBanner
com.my.target.nativeads.banners.NativePromoBanner

public class NativePromoBanner extends NativeBanner
A data class for Native Ad. Can contain cards, video or just image
  • Method Details

    • getCategory

      public String getCategory()
      Returns:
      ad category text for store-type ads
    • getSubCategory

      public String getSubCategory()
      Returns:
      ad subcategory text for store-type ads
    • getImage

      public ImageData getImage()
      Returns:
      main image
      See Also:
    • hasVideo

      public boolean hasVideo()
      Returns:
      has this banner video or not
    • getCards

      public ArrayList<NativePromoCard> getCards()
      Returns:
      list with native ad cards
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class NativeBanner