com.google.ads
Interface Ad

All Known Implementing Classes:
AdView, InterstitialAd

public interface Ad

An interface for all types of ads.


Method Summary
 boolean isReady()
          Returns true if the ad is successfully loaded and is ready to be shown.
 void loadAd(AdRequest adRequest)
          Download an ad using the supplied AdRequest.
 void setAdListener(AdListener adListener)
          Set an AdListener for this Ad.
 void stopLoading()
          Stops loading the ad.
 

Method Detail

isReady

boolean isReady()
Returns true if the ad is successfully loaded and is ready to be shown.

Returns:
true if the ad is successfully loaded and is ready to be shown.

loadAd

void loadAd(AdRequest adRequest)
Download an ad using the supplied AdRequest.

Parameters:
adRequest - the AdRequest used to fetch the ad.

setAdListener

void setAdListener(AdListener adListener)
Set an AdListener for this Ad.

Parameters:
adListener - the AdListener.

stopLoading

void stopLoading()
Stops loading the ad.