public interface

AppLovinAdLoadListener

com.applovin.sdk.AppLovinAdLoadListener

Class Overview

This interface defines a listener intended to be notified when the SDK loads, or fails to load, an ad over the network.

Summary

Public Methods
abstract void adReceived(AppLovinAd ad)
This method is called when a new ad has been received.
abstract void failedToReceiveAd(int errorCode)
This method is called when an ad could not be retrieved from the server.

Public Methods

public abstract void adReceived (AppLovinAd ad)

This method is called when a new ad has been received.

This method is invoked on the UI thread.

Parameters
ad Newly received ad. Guaranteed not to be null.

public abstract void failedToReceiveAd (int errorCode)

This method is called when an ad could not be retrieved from the server.

This method is invoked on the UI thread

Common error codes are:
202 -- no ad is available
5xx -- internal server error
negative number -- internal errors

Parameters
errorCode An error code recieved from the server. Common error codes are defined in AppLovinErrorCodes.