public final class FlurryAdBanner extends Object
Constructor and Description |
---|
FlurryAdBanner(Context context,
ViewGroup viewGroup,
String adSpace)
Create an instance of FlurryAdBanner.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys the ad object and releases all associated resources.
|
void |
displayAd()
Displays the ad, if ready.
|
void |
fetchAd()
Fetches and prepares an ad for display.
|
void |
fetchAndDisplayAd()
Fetch and display the ad.
|
String |
getAdSpace()
get the adspace of the ad object
|
boolean |
isReady()
Indicates whether or not the ad is ready for display.
|
void |
setListener(FlurryAdBannerListener listener)
Set the lister for asynchronous ad serving.
|
void |
setTargeting(FlurryAdTargeting targeting)
Set the targeting for this ad.
|
public FlurryAdBanner(Context context, ViewGroup viewGroup, String adSpace)
context
- The current activity context.viewGroup
- The viewGroup to place the banner ad in.adSpace
- The placement of the ad within your app. For example, for a splash screen ad, it might be named "SPLASH_SCREEN"public void destroy()
public void setListener(FlurryAdBannerListener listener)
listener
- Your implementation of the ad listener.public void setTargeting(FlurryAdTargeting targeting)
targeting
- The ad targeting.public void fetchAd()
public void displayAd()
public void fetchAndDisplayAd()
public boolean isReady()
public String getAdSpace()