Package com.inmobi.ads.listeners
Class AdEventListener
-
- All Implemented Interfaces:
public abstract class AdEventListener<T>
-
-
Constructor Summary
Constructors Constructor Description AdEventListener()
-
Method Summary
Modifier and Type Method Description void
onAdFetchSuccessful(@NonNull() T ad, @NonNull() AdMetaInfo info)
Called to notify that an ad was received successfully but is not ready to be displayed yet. void
onAdLoadSucceeded(@NonNull() T ad, @NonNull() AdMetaInfo info)
Called to notify that an ad was successfully loaded and is ready to be displayed. void
onAdLoadFailed(@NonNull() T ad, @NonNull() InMobiAdRequestStatus status)
Called to notify that a request to load an ad failed. void
onAdClicked(@NonNull() T ad, Map<Object, Object> params)
Called to notify that the user interacted with the ad. void
onRequestPayloadCreated(Array<byte> requestPayload)
Called to notify when the request payload is created void
onRequestPayloadCreationFailed(@NonNull() InMobiAdRequestStatus status)
Called to notify when the request payload creation fails void
onAdImpression(@NonNull() T ad)
Called to notify that inmobi has logged an impression for the ad -
-
Method Detail
-
onAdFetchSuccessful
void onAdFetchSuccessful(@NonNull() T ad, @NonNull() AdMetaInfo info)
Called to notify that an ad was received successfully but is not ready to be displayed yet.
- Parameters:
ad
- Represents the ad which was loaded or preloadedinfo
- Represents the ad meta information
-
onAdLoadSucceeded
void onAdLoadSucceeded(@NonNull() T ad, @NonNull() AdMetaInfo info)
Called to notify that an ad was successfully loaded and is ready to be displayed.
- Parameters:
ad
- Represents the ad which was loadedinfo
- Represents the ad meta information
-
onAdLoadFailed
void onAdLoadFailed(@NonNull() T ad, @NonNull() InMobiAdRequestStatus status)
Called to notify that a request to load an ad failed.
- Parameters:
ad
- Represents the ad which failed to loadstatus
- Represents the InMobiAdRequestStatus status containing error reason
-
onAdClicked
void onAdClicked(@NonNull() T ad, Map<Object, Object> params)
Called to notify that the user interacted with the ad.
- Parameters:
ad
- Represents the ad on which user clickedparams
- Represents the click parameters
-
onRequestPayloadCreated
void onRequestPayloadCreated(Array<byte> requestPayload)
Called to notify when the request payload is created
- Parameters:
requestPayload
- Represents the request payload
-
onRequestPayloadCreationFailed
void onRequestPayloadCreationFailed(@NonNull() InMobiAdRequestStatus status)
Called to notify when the request payload creation fails
- Parameters:
status
- Represents the InMobiAdRequestStatus status containing error reason
-
onAdImpression
void onAdImpression(@NonNull() T ad)
Called to notify that inmobi has logged an impression for the ad
- Parameters:
ad
- Represents the ad which was impressed
-
-
-
-