com.sec.android.ad
Class AdHubInterstitial

java.lang.Object
  extended by com.sec.android.ad.AdHubInterstitial
All Implemented Interfaces:
com.sec.android.ad.UserInterface

public class AdHubInterstitial
extends java.lang.Object
implements com.sec.android.ad.UserInterface

The AdHubInterstitial Class is a base class to obtain an Interstitial Ad.

* Features


You do not have to specify the ad size for the Interstitial Ad (full-screen ad) because the SDK automatically requests and shows the appropriately sized ad for the device screen.
Call startAd() to obtain an Ad.

Version:
v2.0.0

Field Summary
 
Fields inherited from interface com.sec.android.ad.UserInterface
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AdHubInterstitial(Context context, java.lang.String inventoryID)
           
 
Method Summary
 int getThreadPriority()
          Returns the priority of the thread used in AdHubInterstitial.
 void setGeoCoder()
          Sets the GeoCoder from location.
 void setListener(AdInterstitialListener interstitialListener)
          Set Listener.
 void setLocation(double latitude, double longitude)
          Sets the location.
 void setLocation(double latitude, double longitude, double altitude)
          Sets the location.
 void setThreadPriority(int priority)
          Sets the priority of the Thread being used in AdHubInterstitial.
 void setUserProfile(UserProfile profile)
          Register UserProfile.
 void startAd()
          Requests an Interstitial Ad from the server.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdHubInterstitial

public AdHubInterstitial(Context context,
                         java.lang.String inventoryID)
Method Detail

setListener

public void setListener(AdInterstitialListener interstitialListener)
Set Listener. Notifications can be received through AdInterstitialListener.

Parameters:
listener - AdInterstitialListener

startAd

public void startAd()
Requests an Interstitial Ad from the server.

Specified by:
startAd in interface com.sec.android.ad.UserInterface

setUserProfile

public void setUserProfile(UserProfile profile)
Register UserProfile.

Specified by:
setUserProfile in interface com.sec.android.ad.UserInterface
Parameters:
profile - information such as age, gender, interests, etc.

setGeoCoder

public void setGeoCoder()
Sets the GeoCoder from location. You can call this after running SetLocation.

Specified by:
setGeoCoder in interface com.sec.android.ad.UserInterface

setLocation

public void setLocation(double latitude,
                        double longitude,
                        double altitude)
Sets the location. Check the LocationManager in the Android Platform SDK for the method to obtain data to set in the location field.

Specified by:
setLocation in interface com.sec.android.ad.UserInterface
Parameters:
latitude - latitude, range: -90 ~ 90
longitude - longitude, range: -180 ~ 180
altitude - altitude, range: Double

setLocation

public void setLocation(double latitude,
                        double longitude)
Sets the location. Check the LocationManager in the Android Platform SDK for the method to obtain data to set in the location field.

Specified by:
setLocation in interface com.sec.android.ad.UserInterface
Parameters:
latitude - latitude, range: -90 ~ 90
longitude - longitude, range: -180 ~ 180

setThreadPriority

public void setThreadPriority(int priority)
Sets the priority of the Thread being used in AdHubInterstitial.

Specified by:
setThreadPriority in interface com.sec.android.ad.UserInterface
Parameters:
priority - - The new Thread priority setting. Must be less than AdHubInterstitial.MAX_PRIORITY(10) and greater than AdHubInterstitial.MIN_PRIORITY(1). The default value is AdHubInterstitial.NORM_PRIORITY(5).

getThreadPriority

public int getThreadPriority()
Returns the priority of the thread used in AdHubInterstitial.

Specified by:
getThreadPriority in interface com.sec.android.ad.UserInterface
Returns:
The priority of the thread