Package 

Class CloudXNativeAdAdapter

    • Method Summary

      Modifier and Type Method Description
      abstract Unit load(CloudXAdapterLoadParams params)
      Unit onAttachedToAdViewContainer() Called when a native ad loaded through the banner/MREC bridge has been inserted into the SDK's ad-view container.
      • Methods inherited from class io.cloudx.sdk.adapter.CloudXNativeAdAdapter

        destroy
      • Methods inherited from class java.lang.Object

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

      • CloudXNativeAdAdapter

        CloudXNativeAdAdapter()
    • Method Detail

      • onAttachedToAdViewContainer

         Unit onAttachedToAdViewContainer()

        Called when a native ad loaded through the banner/MREC bridge has been inserted into the SDK's ad-view container.

        This callback is only meaningful for native-in-banner flows. Standard native rendering uses io.cloudx.sdk.CloudXNativeAd.prepareForInteraction as its registration point because the publisher owns the native view hierarchy. Override this hook only when the mediated native SDK needs to defer registration or impression setup until CloudX has attached the rendered native banner view to its container.

        This callback is not Android View.onAttachedToWindow, and it does not by itself guarantee a billable impression. Adapter implementations should still route actual impression confirmation through CloudXNativeAdAdapterListener.onAdImpression.

        The default implementation is a no-op so existing native adapters do not need to implement it.