CustomEventNativeListener

public interface CustomEventNativeListener extends CustomEventListener


Custom events that implement CustomEventNative should use this listener to send callbacks to the mediation library to properly manage ad flow.

Summary

Public methods

abstract void

Indicates that an impression has been recorded for the ad.

abstract void

Indicates that a unified native ad has been requested and successfully received.

Inherited methods

From com.google.android.gms.ads.mediation.customevent.CustomEventListener
abstract void

Indicates that the user has clicked on this custom event.

abstract void

Indicates that the custom event rendered something in full screen and is now transferring control back to the application.

abstract void

Indicates that a custom event request has failed along with the underlying cause.

abstract void
onAdFailedToLoad(int errorCode)

This method is deprecated.

Use onAdFailedToLoad instead.

abstract void

Indicates that user interaction with the custom event is causing the device to switch to a different application (such as a web browser).

abstract void

Indicates that the custom event is rendering something that is full screen.

Public methods

onAdImpression

abstract void onAdImpression()

Indicates that an impression has been recorded for the ad. This method should only be called if setOverrideImpressionRecording is set to true.

onAdLoaded

abstract void onAdLoaded(UnifiedNativeAdMapper mapper)

Indicates that a unified native ad has been requested and successfully received.