Package com.my.target.nativeads.banners
Class NativeBanner
- java.lang.Object
-
- com.my.target.nativeads.banners.NativeBanner
-
- Direct Known Subclasses:
NativePromoBanner
public class NativeBanner extends java.lang.ObjectA data class for Native Banner Ad.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNativeBanner.BuilderBuilder for model is used for mediation
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageDatagetAdChoicesIcon()java.lang.StringgetAdvertisingLabel()Advertising label isjava.lang.StringgetAgeRestrictions()java.lang.StringgetCtaText()java.lang.StringgetDescription()java.lang.StringgetDisclaimer()java.lang.StringgetDomain()A web site address of advertiser.ImageDatagetIcon()java.lang.StringgetNavigationType()Navigation type of ads.floatgetRating()Application rating used for ad with store navigation type
navigationTypejava.lang.StringgetTitle()intgetVotes()Application store votes used for ad with store navigation type
navigationTypebooleanhasAdChoices()static NativeBannernewBanner(NativeAdBanner nativeAdBanner)
-
-
-
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
-
-