Package com.inmobi.ads.listeners

## Class AdEventListener

- All Implemented Interfaces:

      public abstract class AdEventListener<T>

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `AdEventListener()` |

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### 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

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### AdEventListener

          AdEventListener()

  - ### 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 preloaded
        `info` - 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 loaded
        `info` - 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 load
        `status` - 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 clicked
        `params` - 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