Skip to end of metadata
Go to start of metadata

JavaScript is disabled on your browser.
com.appnexus.opensdk

Class NativeAdSDK

  • java.lang.Object
    • com.appnexus.opensdk.NativeAdSDK


  • public class NativeAdSDK
    extends java.lang.Object
    Application view Interactions with the Native SDK
    • Constructor Summary

      Constructors 
      Constructor and Description
      NativeAdSDK() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void registerTracking(NativeAdResponse response, android.view.View container, java.util.List<android.view.View> views, NativeAdEventListener listener)
      Register a list developer views that will track impressions and respond to clicks for the native ad.
      static void registerTracking(NativeAdResponse response, android.view.View view, NativeAdEventListener listener)
      Register the developer view that will track impressions and respond to clicks for the native ad.
      static void unRegisterTracking(android.view.View view)
      Called when you are finished with the views for the response or wish to reuse the view object(s) for a new NativeAdResponse.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NativeAdSDK

        public NativeAdSDK()
    • Method Detail

      • registerTracking

        public static void registerTracking(NativeAdResponse response,
                                            android.view.View view,
                                            NativeAdEventListener listener)
        Register the developer view that will track impressions and respond to clicks for the native ad.
        Parameters:
        response - A NativeAdResponse
        view - can be a single view, or container, or a view group
        listener - A NativeAdEventListener
      • registerTracking

        public static void registerTracking(NativeAdResponse response,
                                            android.view.View container,
                                            java.util.List<android.view.View> views,
                                            NativeAdEventListener listener)
        Register a list developer views that will track impressions and respond to clicks for the native ad.
        Parameters:
        container - view/view group that will show native ad
        response - that contains the meta data of native ad
        views - a list of clickables
        listener - called when Ad event happens, can be null
      • unRegisterTracking

        public static void unRegisterTracking(android.view.View view)
        Called when you are finished with the views for the response or wish to reuse the view object(s) for a new NativeAdResponse. The old NativeAdResponse will be destroyed once it is unregistered.
        Parameters:
        view - can be a single view, or container, or a view group

  • No labels