PMNativeAd.NativeRequestListener (Interface)

Document created by david.simerly on Nov 21, 2017Last modified by david.simerly on Apr 4, 2018
Version 2Show Document
  • View in full screen mode

PubMatic SDKs

AdRequest

NativeAdSize

PMAdRendered

PMAdRequest

PMAdRequest.AD_TYPE

PMAdRequest.AWT_OPTION

PMAdRequest.ETHNICITY

PMAdRequest.GENDER

PMAdRequest.HASHING_TECHNIQUE

PMAdRequest.OPERID

PMAdRequest.RS

PMAdSize

PMAdSize

PMBannerAdRequest

PMBannerAdView

PMBannerAdView.BannerAdViewDelegate

PMBannerAdView.BannerAdViewDelegate.
     ActivityListener

PMBannerAdView.BannerAdViewDelegate.
     FeatureSupportHandler

PMBannerAdView.BannerAdViewDelegate.
     InternalBrowserListener

PMBannerAdView.BannerAdViewDelegate.
     RequestListener

PMBannerAdView.BannerAdViewDelegate.
     RichMediaListener

PMBannerImpression

PMBid

PMError

PMImpression

PMInterstitialAd

PMInterstitialAd.InterstitialAdListener

PMInterstitialAd.InterstitialAdListener.
     ActivityListener

PMInterstitialAd.InterstitialAdListener.
     FeatureSupportHandler

PMInterstitialAd.InterstitialAdListener.
     InternalBrowserListener

PMInterstitialAd.InterstitialAdListener.
     RequestListener

PMInterstitialAd.InterstitialAdListener.
     RichMediaListener

PMInterstitialAdRequest

PMLogger

PMLogger.LogListener

PMLogger.PMLogLevel

PMNativeAd

PMNativeAd.Image

➤ PMNativeAd.
     NativeRequestListener

PMNativeAdRequest

PMNativeAssetRequest

PMNativeAssetResponse

PMNativeDataAssetRequest

PMNativeDataAssetResponse

PMNativeDataAssetTypes

PMNativeImageAssetRequest

PMNativeImageAssetResponse

PMNativeImageAssetTypes

PMNativeTitleAssetRequest

PMNativeTitleAssetResponse

PMPrefetchManager

PMPrefetchManager.PMPrefetchListener

PMPrefetchRequest

PubMaticSDK


PubMatic Android SDK Guide

com.pubmatic.sdk.nativead

Interface PMNativeAd.NativeRequestListener

 

Enclosing class:
PMNativeAd

public static interface PMNativeAd.NativeRequestListener

 

An interface to notify the native ad request callbacks

 

Method Summary

Modifier and TypeMethod and Description
voidonNativeAdClicked(PMNativeAd ad) Callback when the user clicks on the native ad.
voidonNativeAdFailed(PMNativeAd ad, PMError error) Callback when PMNativeAd fails to get an ad.
voidonNativeAdReceived(PMNativeAd ad) Callback when the native ad is received.

 

Method Detail


onNativeAdReceived

void onNativeAdReceived(PMNativeAd ad)

 

Callback when the native ad is received.

 

Parameters:
ad -

 

onNativeAdFailed

void onNativeAdFailed(PMNativeAd ad,                       PMError error)

 

Callback when PMNativeAd fails to get an ad. This may be due to invalid zone, network connection not available, timeout, no Ad to fill at this point.

 

Parameters:
ad - PMNativeAd object which has requested for the Ad.
error - Error occurred.

 

onNativeAdClicked

void onNativeAdClicked(PMNativeAd ad)

 

Callback when the user clicks on the native ad. Implement your logic on view click in this method.

 

Do not implement your own clickListener in your activity.

 

 

Parameters:
ad -

 

Attachments

    Outcomes