public abstract class

InterstitialAd

extends Object
java.lang.Object
   ↳ com.smaato.sdk.interstitial.InterstitialAd

Summary

Public Constructors
InterstitialAd()
Public Methods
abstract String getAdSpaceId()
Will return adSpaceID value which was set in the Interstitial.loadAd method
abstract String getCreativeId()
abstract String getSessionId()
abstract boolean isAvailableForPresentation()
Check if ad is not expired and can be shown
void setBackgroundColor(int backgroundColor)
Background color to be used for the presenting Interstitial activity.
final void showAd(Activity activity)
Show the interstitial ad.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public InterstitialAd ()

Public Methods

public abstract String getAdSpaceId ()

Will return adSpaceID value which was set in the Interstitial.loadAd method

Returns
  • adSpaceId String value

public abstract String getCreativeId ()

public abstract String getSessionId ()

Returns
  • Session ID assigned by Smaato to the ad object

public abstract boolean isAvailableForPresentation ()

Check if ad is not expired and can be shown

Returns
  • true if ad is ready to be presented, false otherwise

public void setBackgroundColor (int backgroundColor)

Background color to be used for the presenting Interstitial activity. Useful when there is a possibility the ad won't fill the entire display. BLACK by default.

public final void showAd (Activity activity)

Show the interstitial ad.

Parameters
activity Activity from which Interstitial Ad is going to be started.