java.lang.Object | |
↳ | com.google.android.gms.ads.AdLoader.Builder |
Builder for a AdLoader
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
AdLoader.Builder for constructing an AdLoader . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a new AdLoader.Builder
for constructing an AdLoader
.
Parameters | |
---|---|
context |
Context :
The context. |
adUnitID |
String :
The ad unit ID.
|
Parameters | |
---|---|
listener |
NativeAppInstallAd.OnAppInstallAdLoadedListener :
An object that handles displaying native app install ads. |
Returns | |
---|---|
AdLoader.Builder |
Parameters | |
---|---|
listener |
NativeContentAd.OnContentAdLoadedListener :
An object that handles displaying native content ads. |
Returns | |
---|---|
AdLoader.Builder |
Parameters | |
---|---|
templateId |
String :
Custom template Id defined in the DFP front end. |
adLoadedListener |
NativeCustomTemplateAd.OnCustomTemplateAdLoadedListener :
An object that handles displaying native custom template ads. |
customClickListener |
NativeCustomTemplateAd.OnCustomClickListener :
An optional listener that handles custom clicks on custom template
ads.
|
Returns | |
---|---|
AdLoader.Builder |
Parameters | |
---|---|
listener |
OnPublisherAdViewLoadedListener :
An object that handles displaying banner ads. |
adSizes |
AdSize :
Sets the supported sizes of the banner ad. |
Returns | |
---|---|
AdLoader.Builder |
Throws | |
---|---|
IllegalArgumentException |
If adSizes is null or empty.
|
Parameters | |
---|---|
listener |
AdListener :
An object that handles errors encountered when retrieving native ads. |
Returns | |
---|---|
AdLoader.Builder |
Parameters | |
---|---|
correlator |
Correlator :
A Correlator to attach with this loader. This parameter cannot be
null.
|
Returns | |
---|---|
AdLoader.Builder |
Parameters | |
---|---|
options |
NativeAdOptions :
An object that specifies various native ad options. |
Returns | |
---|---|
AdLoader.Builder |
Parameters | |
---|---|
options |
PublisherAdViewOptions :
An object that specifies various DFP banner ad options. |
Returns | |
---|---|
AdLoader.Builder |