-
- All Implemented Interfaces:
public final class NativeAdRequestConfiguration.Builder
Builds an NativeAdRequestConfiguration.
-
-
Constructor Summary
Constructors Constructor Description NativeAdRequestConfiguration.Builder(String adUnitId)
-
Method Summary
Modifier and Type Method Description final NativeAdRequestConfiguration
build()
Constructs an NativeAdRequestConfiguration with the specified attributes. final NativeAdRequestConfiguration.Builder
setShouldLoadImagesAutomatically(Boolean shouldLoadImagesAutomatically)
Sets whether images should be loaded automatically. final NativeAdRequestConfiguration.Builder
setAge(String age)
Sets current user age entered inside the app. final NativeAdRequestConfiguration.Builder
setContextQuery(String contextQuery)
Sets current user query entered inside the app. final NativeAdRequestConfiguration.Builder
setContextTags(List<String> contextTags)
Sets tags describing current user context inside the app. final NativeAdRequestConfiguration.Builder
setGender(String gender)
Sets user gender entered inside the app. final NativeAdRequestConfiguration.Builder
setLocation(Location location)
Sets the user's mLocation for targeting process. final NativeAdRequestConfiguration.Builder
setParameters(Map<String, String> parameters)
Sets custom mParameters. final NativeAdRequestConfiguration.Builder
setBiddingData(String biddingData)
Sets bid Id. final NativeAdRequestConfiguration.Builder
setPreferredTheme(AdTheme preferredTheme)
Sets preferred theme. -
-
Constructor Detail
-
NativeAdRequestConfiguration.Builder
NativeAdRequestConfiguration.Builder(String adUnitId)
-
-
Method Detail
-
build
final NativeAdRequestConfiguration build()
Constructs an NativeAdRequestConfiguration with the specified attributes.
-
setShouldLoadImagesAutomatically
final NativeAdRequestConfiguration.Builder setShouldLoadImagesAutomatically(Boolean shouldLoadImagesAutomatically)
Sets whether images should be loaded automatically.
- Parameters:
shouldLoadImagesAutomatically
- Determines if ad images should be loaded as a part of ad loading process.
-
setAge
final NativeAdRequestConfiguration.Builder setAge(String age)
Sets current user age entered inside the app. Used for targeting.
- Parameters:
age
- for targeting process.
-
setContextQuery
final NativeAdRequestConfiguration.Builder setContextQuery(String contextQuery)
Sets current user query entered inside the app. Used for targeting.
- Parameters:
contextQuery
- for targeting process.
-
setContextTags
final NativeAdRequestConfiguration.Builder setContextTags(List<String> contextTags)
Sets tags describing current user context inside the app. Used for targeting.
- Parameters:
contextTags
- for targeting process.
-
setGender
final NativeAdRequestConfiguration.Builder setGender(String gender)
Sets user gender entered inside the app. Used for targeting.
- Parameters:
gender
- for targeting process.
-
setLocation
final NativeAdRequestConfiguration.Builder setLocation(Location location)
Sets the user's mLocation for targeting process.
- Parameters:
location
- for targeting process.
-
setParameters
final NativeAdRequestConfiguration.Builder setParameters(Map<String, String> parameters)
Sets custom mParameters.
- Parameters:
parameters
- custom mParameters.
-
setBiddingData
final NativeAdRequestConfiguration.Builder setBiddingData(String biddingData)
Sets bid Id.
- Parameters:
biddingData
- bidding data for ad loading from mediation.
-
setPreferredTheme
final NativeAdRequestConfiguration.Builder setPreferredTheme(AdTheme preferredTheme)
Sets preferred theme.
- Parameters:
preferredTheme
- preferred ad theme.
-
-
-
-