public class

AppLovinAd

extends Object
java.lang.Object
   ↳ com.applovin.sdk.AppLovinAd

Class Overview

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

Summary

Fields
protected final String videoFilename
Public Methods
long getAdIdNumber()
Represents a unique ID for the current ad.
AppLovinAdSize getSize()
Get size of the ad to display.
AppLovinAdType getType()
Get the ad type of the current ad.
boolean isVideoAd()
Check whether this is a video ad.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected final String videoFilename

Public Methods

public 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 AppLovinAdSize getSize ()

Get size of the ad to display.

Returns
  • Ad size

public AppLovinAdType getType ()

Get the ad type of the current ad.

Returns
  • Ad type

public 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.