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