Class NativePubData
-
- All Implemented Interfaces:
public final class NativePubDataData class representing the public data structure for native ads. This class contains all the essential information needed to display a native ad.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringtitleprivate final Stringdescriptionprivate final InMobiNativeImageiconImageprivate final StringctaTextprivate final JSONObjectextrasprivate final Stringsponsoredprivate final FloatadRatingprivate final BooleanisVideoprivate final MediaViewmediaViewprivate final ViewadChoiceIcon
-
Constructor Summary
Constructors Constructor Description NativePubData(String title, String description, InMobiNativeImage iconImage, String ctaText, JSONObject extras, String sponsored, Float adRating, Boolean isVideo, MediaView mediaView, View adChoiceIcon)
-
Method Summary
Modifier and Type Method Description final StringgetTitle()final StringgetDescription()final InMobiNativeImagegetIconImage()final StringgetCtaText()final JSONObjectgetExtras()final StringgetSponsored()final FloatgetAdRating()final BooleanisVideo()final MediaViewgetMediaView()final ViewgetAdChoiceIcon()-
-
Constructor Detail
-
NativePubData
NativePubData(String title, String description, InMobiNativeImage iconImage, String ctaText, JSONObject extras, String sponsored, Float adRating, Boolean isVideo, MediaView mediaView, View adChoiceIcon)
- Parameters:
title- The title text of the native ad, if available.description- The description text of the native ad, if available.iconImage- The icon image asset for the native ad.ctaText- The call-to-action text for the native ad, if available.extras- Additional key-value pairs containing extra data for the native ad.sponsored- The sponsored text/label for the native ad, if available.adRating- The rating of the advertised app or product, if available.isVideo- Boolean indicating whether the ad contains video content.mediaView- The media view for displaying rich media content, if available.adChoiceIcon- The ad choice icon view for user privacy controls, if available.
-
-
Method Detail
-
getDescription
final String getDescription()
-
getIconImage
final InMobiNativeImage getIconImage()
-
getCtaText
final String getCtaText()
-
getExtras
final JSONObject getExtras()
-
getSponsored
final String getSponsored()
-
getAdRating
final Float getAdRating()
-
getMediaView
final MediaView getMediaView()
-
getAdChoiceIcon
final View getAdChoiceIcon()
-
-
-
-