Class NativeBanner

java.lang.Object
com.my.target.nativeads.banners.NativeBanner
Direct Known Subclasses:
NativePromoBanner

public class NativeBanner extends Object
A data class for Native Banner Ad.
  • Method Details

    • newBanner

      @NonNull public static NativeBanner newBanner(@NonNull NativeAdBanner nativeAdBanner)
    • getIcon

      @Nullable public ImageData getIcon()
      Returns:
      icon image
      See Also:
    • getTitle

      @Nullable public String getTitle()
      Returns:
      ad title text
    • getCtaText

      @Nullable public String getCtaText()
      Returns:
      ad call-to-action text
    • getDescription

      @Nullable public String getDescription()
      Returns:
      ad description text
    • getDisclaimer

      @Nullable public String getDisclaimer()
      Returns:
      ad disclaimer text
    • getAgeRestrictions

      @Nullable public String getAgeRestrictions()
      Returns:
      ad age restrictions text
    • getRating

      public float getRating()
      Application rating used for ad with store navigation type
      navigationType
      Returns:
      ad rating. Can be [0, 5] inclusively
      See Also:
    • getVotes

      public int getVotes()
      Application store votes used for ad with store navigation type
      navigationType
      Returns:
      votes count
      See Also:
    • getDomain

      @Nullable public String getDomain()
      A web site address of advertiser. Can be used for ad with web navigation type
      navigationType
      Returns:
      domain text
      See Also:
    • getNavigationType

      @NonNull public String getNavigationType()
      Navigation type of ads. Possible values in NavigationType class. Represents base type of ad, according this type there can be different click logic and fields displaying
      Returns:
      banner navigation type
    • getAdvertisingLabel

      @Nullable public String getAdvertisingLabel()
      Advertising label is
      Returns:
      ad advertising label
    • getAdChoicesIcon

      @Nullable public ImageData getAdChoicesIcon()
      Returns:
      adChoices icon image
      See Also:
    • getBundleId

      @Nullable public String getBundleId()
      Returns:
      bundleId
    • hasAdChoices

      public boolean hasAdChoices()
      Returns:
      isHasAdChoices
    • toString

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