An object for requesting ads.
| class | AdLoader.Builder | Builder for a AdLoader. |
|
| String |
getMediationAdapterClassName()
This method is deprecated. Use
getMediationAdapterClassName() or
getMediationAdapterClassName() instead.
|
| boolean |
isLoading()
Returns
true if the ad is loading.
|
| void | |
| void | |
| void |
This method is deprecated.
Use
getMediationAdapterClassName() or
getMediationAdapterClassName() instead.
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 true if the ad is loading. If multiple ads are requested,
returns true until all ads finish loading.
Send a request for an ad.
| publisherAdRequest | An object containing all of the request information. |
|---|
Send a request for an ad.
| adRequest | An object containing all of the request information. |
|---|
Send a request for maxNumberOfAds ads. The AdLoader will send up to
maxNumberOfAds callbacks in response, which may include any combination of
the following:
onContentAdLoaded(NativeContentAd)
onAppInstallAdLoaded(NativeAppInstallAd)
onCustomTemplateAdLoaded(NativeCustomTemplateAd)
onAdFailedToLoad(int)isLoading()
inside their implementations of these methods to determine whether the AdLoader has
completely finished loading ads.
| adRequest | An object containing all of the request information. |
|---|---|
| maxNumberOfAds | An integer denoting the maximum number of ads to load. |