Package com.yandex.mobile.ads.common
Class AdRequestConfiguration.Builder
-
- All Implemented Interfaces:
public final class AdRequestConfiguration.Builder
Builds an AdRequestConfiguration.
-
-
Constructor Summary
Constructors Constructor Description AdRequestConfiguration.Builder(String adUnitId)
-
Method Summary
Modifier and Type Method Description final AdRequestConfiguration
build()
Constructs an AdRequestConfiguration with the specified attributes. final AdRequestConfiguration.Builder
setAge(String age)
Sets current user age entered inside the app. final AdRequestConfiguration.Builder
setContextQuery(String contextQuery)
Sets current user query entered inside the app. final AdRequestConfiguration.Builder
setContextTags(List<String> contextTags)
Sets tags describing current user context inside the app. final AdRequestConfiguration.Builder
setGender(String gender)
Sets user gender entered inside the app. final AdRequestConfiguration.Builder
setLocation(Location location)
Sets the user's location for targeting process. final AdRequestConfiguration.Builder
setParameters(Map<String, String> parameters)
Sets custom parameters. final AdRequestConfiguration.Builder
setBiddingData(String biddingData)
Sets bid biddingData provided by mediation. final AdRequestConfiguration.Builder
setPreferredTheme(AdTheme preferredTheme)
Sets preferred theme. -
-
Constructor Detail
-
AdRequestConfiguration.Builder
AdRequestConfiguration.Builder(String adUnitId)
-
-
Method Detail
-
build
final AdRequestConfiguration build()
Constructs an AdRequestConfiguration with the specified attributes.
-
setAge
final AdRequestConfiguration.Builder setAge(String age)
Sets current user age entered inside the app. Used for targeting.
- Parameters:
age
- for targeting process.
-
setContextQuery
final AdRequestConfiguration.Builder setContextQuery(String contextQuery)
Sets current user query entered inside the app. Used for targeting.
- Parameters:
contextQuery
- for targeting process.
-
setContextTags
final AdRequestConfiguration.Builder setContextTags(List<String> contextTags)
Sets tags describing current user context inside the app. Used for targeting.
- Parameters:
contextTags
- for targeting process.
-
setGender
final AdRequestConfiguration.Builder setGender(String gender)
Sets user gender entered inside the app. Used for targeting.
- Parameters:
gender
- for targeting process.
-
setLocation
final AdRequestConfiguration.Builder setLocation(Location location)
Sets the user's location for targeting process.
- Parameters:
location
- for targeting process.
-
setParameters
final AdRequestConfiguration.Builder setParameters(Map<String, String> parameters)
Sets custom parameters.
- Parameters:
parameters
- custom parameters.
-
setBiddingData
final AdRequestConfiguration.Builder setBiddingData(String biddingData)
Sets bid biddingData provided by mediation.
- Parameters:
biddingData
- bidding data for ad loading from mediation.
-
setPreferredTheme
final AdRequestConfiguration.Builder setPreferredTheme(AdTheme preferredTheme)
Sets preferred theme.
- Parameters:
preferredTheme
- preferred ad theme.
-
-
-
-