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

    • newBanner

      @NonNull public static NativePromoBanner newBanner(@NonNull NativeAdBanner nativeAdBanner)
    • getCategory

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

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

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

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

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

      @NonNull public String toString()
      Overrides:
      toString in class NativeBanner