Class NativeBanner

  • Direct Known Subclasses:
    NativePromoBanner

    public class NativeBanner
    extends java.lang.Object
    A data class for Native Banner Ad.
    • Method Detail

      • newBanner

        @NonNull
        public static NativeBanner newBanner​(@NonNull
                                             NativeAdBanner nativeAdBanner)
      • getTitle

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

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

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

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

        @Nullable
        public java.lang.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:
        NavigationType
      • getVotes

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

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

        @NonNull
        public java.lang.String getNavigationType()
        Navigation type of ads. Possible values in {@link 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 java.lang.String getAdvertisingLabel()
        Advertising label is
        Returns:
        ad advertising label
      • getAdChoicesIcon

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

        public boolean hasAdChoices()
        Returns:
        isHasAdChoices