public class

AdLoader

extends Object
java.lang.Object
   ↳ com.google.android.gms.ads.AdLoader

Class Overview

An object for requesting ads.

Summary

Nested Classes
class AdLoader.Builder Builder for a AdLoader
Public Methods
String getMediationAdapterClassName()
Returns the mediation adapter class name.
boolean isLoading()
Returns true if the ad is loading.
void loadAd(PublisherAdRequest publisherAdRequest)
Send a request for an ad.
void loadAd(AdRequest adRequest)
Send a request for an ad.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public String getMediationAdapterClassName ()

Returns the mediation adapter class name. In the case of a mediated ad response, this is the name of the class that was responsible for performing the ad request and returning the ad. For non-mediated responses, this value is null.

Returns
String

public boolean isLoading ()

Returns true if the ad is loading.

Returns
boolean

public void loadAd (PublisherAdRequest publisherAdRequest)

Send a request for an ad.

Parameters
publisherAdRequest PublisherAdRequest: An object containing all of the request information.

public void loadAd (AdRequest adRequest)

Send a request for an ad.

Parameters
adRequest AdRequest: An object containing all of the request information.