Skip to end of metadata
Go to start of metadata

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

Interface MediatedBannerAdView



  • public interface MediatedBannerAdView
    This is the interface a mediation adaptor must implement for requesting banner ads. The mediation interface allows third-party SDKs to be called by the AppNexus SDK. To integrate a third-party SDK, create a class that implements MediatedBannerAdView. Implement the required method and configure it within the AppNexus Ad Network Manager to be called whenever the targeting matches the conditions defined in the Ad Network Manager. (The Ad Network Manager is a web application that AppNexus platform members can use to work with ad networks that are not on the platform.)
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void destroy()
      The AppNexus SDK will call this method when the third-party SDK's view is being removed and should be cleaned up.
      void onDestroy() 
      void onPause() 
      void onResume() 
      android.view.View requestAd(com.appnexus.opensdk.MediatedBannerAdViewController mBC, android.app.Activity activity, java.lang.String parameter, java.lang.String uid, int width, int height, TargetingParameters tp)
      The AppNexus SDK will call this method to ask the third-party SDK to request an ad from its network.
    • Method Detail

      • requestAd

        android.view.View requestAd(com.appnexus.opensdk.MediatedBannerAdViewController mBC,
                                    android.app.Activity activity,
                                    java.lang.String parameter,
                                    java.lang.String uid,
                                    int width,
                                    int height,
                                    TargetingParameters tp)
        The AppNexus SDK will call this method to ask the third-party SDK to request an ad from its network. The AppNexus SDK expects to be notified of events through the MediatedBannerAdViewController. Note that once a requestAd call has been made, the AppNexus SDK expects onAdLoaded or onAdFailed to be called through the MediatedBannerAdViewController within 15 seconds or the mediation call is considered to have failed.
        Parameters:
        mBC - The controller to notify on load, failure, etc. Once the banner ad view is created successfully from the adapter, call mBC.setView(view) to pass the ad back to AppNexus SDK.
        activity - The activity from which this method was called.
        parameter - An optional opaque string passed from the Ad Network Manager, this can be used to defined SDK-specific parameters such as additional targeting information. The encoding of the contents of this string are entirely up to the implementation of the third-party SDK adaptor.
        uid - The network ID for this ad call. This ID is opaque to the AppNexus SDK and its contents and their encoding are up to the implementation of the third-party SDK.
        width - The width of the advertisement in pixels as defined in the BannerAdView object that initiated this call.
        height - The height of the advertisement in pixels as defined in the BannerAdView object that initiated this call.
      • destroy

        void destroy()
        The AppNexus SDK will call this method when the third-party SDK's view is being removed and should be cleaned up.
      • onPause

        void onPause()
      • onResume

        void onResume()
      • onDestroy

        void onDestroy()

  • No labels