MoPubNativeEventListener

public static interface NativeAd.MoPubNativeEventListener

An interface for native ad impression and click tracking events that publishers can implement to be notified by the MoPub SDK.

Public Methods

public void /onClick(View view)

  • Description: The callback fired when the native ad has been clicked. No-op for MoPubStreamAdPlacer and ad adapters implementations.

  • Parameters:

    • view: The view containing the native ad that has recorded the click

public void /onImpression(View view)

  • Description: The callback fired when the native ad has recorded an impression. No-op for MoPubStreamAdPlacer and ad adapters implementations.

  • Parameters:

    • view: The view containing the native ad that has recorded the impression

Last updated March 03, 2020

TWITTER, MOPUB, and the Bird logo are trademarks of Twitter, Inc. or its affiliates. All third party logos and trademarks included are the property of their respective owners.

© 2020 MoPub (a division of Twitter, Inc.)