Interface POBNativeAd
-
- All Implemented Interfaces:
public interface POBNativeAdInterface used for creating POBNativeAdProvider
-
-
Method Summary
Modifier and Type Method Description abstract voidrenderAd(@NonNull() POBNativeAdListener listener)Render the native template in POBNativeAdView object abstract voidrenderAd(@NonNull() POBNativeTemplateView templateView, @NonNull() POBNativeAdListener listener)Another flavor of renderAd method use by publisher to pass there own custom view template abstract voiddestroy()Method to destroy the native ad abstract POBNativeAdViewgetAdView()Returns the rendered Native Ad View in both OpenWrapPartnerWin and OnAdServerWin condition Instance of POBNativeAdView works as a wrapper around AdServerView and OpenWrap POBNativeTemplateView abstract POBNativeAdTitleResponseAssetgetTitleAssetForId(int assetId)Return the title asset for the respective Id abstract POBNativeAdDataResponseAssetgetDataAssetForId(int assetId)Return the data asset for the respective Id abstract POBNativeAdImageResponseAssetgetImageAssetForId(int assetId)Return the image asset for the respective Id abstract POBNativeAdTitleResponseAssetgetTitle()Return the title asset abstract POBNativeAdDataResponseAssetgetDescription()Return the description asset abstract POBNativeAdImageResponseAssetgetIcon()Return the icon asset abstract POBNativeAdDataResponseAssetgetCallToAction()Return the call to action asset abstract POBNativeAdDataResponseAssetgetAdvertiser()Return the advertiser asset abstract POBNativeAdDataResponseAssetgetPrice()Return the price asset abstract POBNativeAdDataResponseAssetgetRating()Return the rating asset abstract POBNativeAdImageResponseAssetgetMainImage()Return the main image abstract voidregisterViewForInteraction(@NonNull() View adView, @NonNull() List<View> clickableViews, @NonNull() POBNativeAdListener listener)Register's native ad view and its asset views for impression and click tracking purpose. abstract ViewgetAdInfoIcon()Returns the Ad Info Icon -
-
Method Detail
-
renderAd
abstract void renderAd(@NonNull() POBNativeAdListener listener)
Render the native template in POBNativeAdView object
- Parameters:
listener- POBNativeAdListener to get rendering callbacks
-
renderAd
abstract void renderAd(@NonNull() POBNativeTemplateView templateView, @NonNull() POBNativeAdListener listener)
Another flavor of renderAd method use by publisher to pass there own custom view template
- Parameters:
templateView- custom template to get populatelistener- POBNativeAdListener of rendering callbacks
-
destroy
abstract void destroy()
Method to destroy the native ad
-
getAdView
@Nullable() abstract POBNativeAdView getAdView()
Returns the rendered Native Ad View in both OpenWrapPartnerWin and OnAdServerWin condition Instance of POBNativeAdView works as a wrapper around AdServerView and OpenWrap POBNativeTemplateView
- Returns:
Instance of POBNativeAdView
-
getTitleAssetForId
@Nullable() abstract POBNativeAdTitleResponseAsset getTitleAssetForId(int assetId)
Return the title asset for the respective Id
- Parameters:
assetId- Id of the asset.- Returns:
Instance of POBNativeAdTitleResponseAsset
-
getDataAssetForId
@Nullable() abstract POBNativeAdDataResponseAsset getDataAssetForId(int assetId)
Return the data asset for the respective Id
- Parameters:
assetId- Id of the asset.- Returns:
Instance of POBNativeAdDataResponseAsset
-
getImageAssetForId
@Nullable() abstract POBNativeAdImageResponseAsset getImageAssetForId(int assetId)
Return the image asset for the respective Id
- Parameters:
assetId- Id of the asset.- Returns:
Instance of POBNativeAdImageResponseAsset
-
getTitle
@Nullable() abstract POBNativeAdTitleResponseAsset getTitle()
Return the title asset
- Returns:
Instance of POBNativeAdTitleResponseAsset
-
getDescription
@Nullable() abstract POBNativeAdDataResponseAsset getDescription()
Return the description asset
- Returns:
Instance of POBNativeAdDataResponseAsset
-
getIcon
@Nullable() abstract POBNativeAdImageResponseAsset getIcon()
Return the icon asset
- Returns:
Instance of POBNativeAdImageResponseAsset
-
getCallToAction
@Nullable() abstract POBNativeAdDataResponseAsset getCallToAction()
Return the call to action asset
- Returns:
Instance of POBNativeAdDataResponseAsset
-
getAdvertiser
@Nullable() abstract POBNativeAdDataResponseAsset getAdvertiser()
Return the advertiser asset
- Returns:
Instance of POBNativeAdDataResponseAsset
-
getPrice
@Nullable() abstract POBNativeAdDataResponseAsset getPrice()
Return the price asset
- Returns:
Instance of POBNativeAdDataResponseAsset
-
getRating
@Nullable() abstract POBNativeAdDataResponseAsset getRating()
Return the rating asset
- Returns:
Instance of POBNativeAdDataResponseAsset
-
getMainImage
@Nullable() abstract POBNativeAdImageResponseAsset getMainImage()
Return the main image
- Returns:
Instance of POBNativeAdImageResponseAsset
-
registerViewForInteraction
abstract void registerViewForInteraction(@NonNull() View adView, @NonNull() List<View> clickableViews, @NonNull() POBNativeAdListener listener)
Register's native ad view and its asset views for impression and click tracking purpose.
- Parameters:
adView- native ad view containerclickableViews- clickable asset viewslistener- POBNativeAdListener of rendering callbacks
-
getAdInfoIcon
@Nullable()@MainThread() abstract View getAdInfoIcon()
Returns the Ad Info Icon
- Returns:
Instance of View
-
-
-
-