public interface

AppLovinAd

com.applovin.sdk.AppLovinAd

Class Overview

This interface represents an ad that has been served by the AppLovin server and should be displayed to the user.

Summary

Public Methods
abstract long getAdIdNumber()
Represents a unique ID for the current ad.
abstract String getAdValue(String key)
Get an arbitrary ad value for a given key.
abstract AppLovinAdSize getSize()
Get size of the ad to display.
abstract AppLovinAdType getType()
Get the ad type of the current ad.
abstract String getZoneId()
The zone identifier for the ad, if any.
abstract boolean isVideoAd()
Check whether this is a video ad.

Public Methods

public abstract long getAdIdNumber ()

Represents a unique ID for the current ad. Please include this if you report a broken/bad ad to AppLovin Support.

Returns
  • A unique identifier of the ad.

public abstract String getAdValue (String key)

Get an arbitrary ad value for a given key. The list of keys may be found in AppLovin documentation online.

public abstract AppLovinAdSize getSize ()

Get size of the ad to display.

Returns
  • Ad size

public abstract AppLovinAdType getType ()

Get the ad type of the current ad.

Returns
  • Ad type

public abstract String getZoneId ()

The zone identifier for the ad, if any.

Returns
  • zone identifier of this ad, If any.

public abstract boolean isVideoAd ()

Check whether this is a video ad. If so, upon display, a new video player activity will be launched.

Returns
  • True if a video ad. False otherwise.