-
- All Implemented Interfaces:
-
io.cloudx.sdk.CloudXDestroyable
@RestrictTo(value = {RestrictTo.Scope.LIBRARY_GROUP}) public abstract class CloudXNativeAdAdapter implements CloudXDestroyable
-
-
Constructor Summary
Constructors Constructor Description CloudXNativeAdAdapter()
-
Method Summary
Modifier and Type Method Description abstract Unitload(CloudXAdapterLoadParams params)UnitonAttachedToAdViewContainer()Called when a native ad loaded through the banner/MREC bridge has been inserted into the SDK's ad-view container. -
-
Method Detail
-
load
abstract Unit load(CloudXAdapterLoadParams params)
-
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.
-
-
-
-