Android Verizon Ads SDK Standard Edition Documentation  1.1
Public Member Functions | List of all members
InterstitialAdFactory.InterstitialAdFactoryListener Interface Reference

Interface for receiving notifications from the InterstitialAdFactory. More...

Public Member Functions

void onCacheLoaded (InterstitialAdFactory adFactory, int numRequested, int numReceived)
 Called when the cache request is complete. More...
 
void onCacheUpdated (InterstitialAdFactory adFactory, int cacheSize)
 Called when the number of ads in the cache has been modified. More...
 
void onError (InterstitialAdFactory adFactory, ErrorInfo errorInfo)
 Called when there is an error requesting a InterstitialAd or loading a InterstitialAd from the cache. More...
 
void onLoaded (InterstitialAdFactory adFactory, InterstitialAd interstitialAd)
 Called when the view for the InterstitialAd has been loaded. More...
 

Detailed Description

Interface for receiving notifications from the InterstitialAdFactory.

Member Function Documentation

◆ onCacheLoaded()

void onCacheLoaded ( InterstitialAdFactory  adFactory,
int  numRequested,
int  numReceived 
)

Called when the cache request is complete.

Parameters
adFactorythe calling InterstitialAdFactory
numRequestedthe number of ads requested for the cache (i.e. the difference between the maximum number of ads for your cache and the ads already in the cache)
numReceivedthe number of ads received for the cache. This value may be less than the number requested if not all ads requested were available.

◆ onCacheUpdated()

void onCacheUpdated ( InterstitialAdFactory  adFactory,
int  cacheSize 
)

Called when the number of ads in the cache has been modified.

This could mean that ads have been added to the cache or that an ad was removed from the cache for display.

Parameters
adFactorythe calling InterstitialAdFactory
cacheSizethe new value of the cache. Represents the number of InterstitialAds available

◆ onError()

void onError ( InterstitialAdFactory  adFactory,
ErrorInfo  errorInfo 
)

Called when there is an error requesting a InterstitialAd or loading a InterstitialAd from the cache.

Parameters
adFactorythe calling InterstitialAdFactory
errorInfoan ErrorInfo object containing details about the error

◆ onLoaded()

void onLoaded ( InterstitialAdFactory  adFactory,
InterstitialAd  interstitialAd 
)

Called when the view for the InterstitialAd has been loaded.

A new InterstitialAd instance will be provided as part of this callback.

Parameters
adFactorythe calling InterstitialAdFactory
interstitialAdthe InterstitialAd object that is ready to be displayed