Page tree


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
void onNativeAdClicked(PMNativeAd ad) Callback when the user clicks on the native ad.
void onNativeAdFailed(PMNativeAd ad, PMError error) Callback when PMNativeAd fails to get an ad.
void onNativeAdReceived(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 -


⇧ Top