An object for requesting ads.
| class | AdLoader.Builder | Builder for a AdLoader. |
|
| boolean |
isLoading()
Returns
true if the ad is loading.
|
| void | |
| void | |
| void |
Returns true if the ad is loading. If multiple ads are requested,
returns true until all ads finish loading.
Loads an ad.
| adRequest | An object containing all of the request information. |
|---|
Loads an ad.
| adManagerAdRequest | An Ad Manager ad request. |
|---|
Sends a request for maxNumberOfAds ads. The AdLoader will send up to
maxNumberOfAds callbacks in response, which may include any combination of
the following:
NativeCustomFormatAd.OnCustomFormatAdLoadedListener.onCustomFormatAdLoaded(NativeCustomFormatAd)
NativeAd.OnNativeAdLoadedListener.onNativeAdLoaded(NativeAd)
AdListener.onAdFailedToLoad(LoadAdError)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. |