Package 

Interface CloudXNativeAdListener

    • Method Detail

      • onNativeAdLoadFailed

         abstract Unit onNativeAdLoadFailed(String adUnitId, CloudXError error)

        Native ad failed to load.

        Parameters:
        adUnitId - The ad unit ID that failed to load.
        error - Details about the failure.
      • onNativeAdExpired

         Unit onNativeAdExpired(CloudXAd ad)

        Native ad has expired and should no longer be displayed. Destroy the ad and load a new one if needed.

        Default no-op for backward compatibility — not all publishers need to handle expiration.

        Parameters:
        ad - The expired ad.
      • onNativeAdClosed

         Unit onNativeAdClosed(CloudXAd ad)

        Called when the user closes/hides the native ad via AdChoices (e.g., reports or dismisses the ad).

        The ad creative is invalidated after this fires — remove it from the UI and optionally load a replacement. In a feed context, advance to the next item.

        Not all ad networks support this callback. Default no-op for backward compatibility.

        Parameters:
        ad - The ad that was closed.