Package com.yandex.mobile.ads.nativeads
Class NativeAdRequestConfiguration
-
- All Implemented Interfaces:
public final class NativeAdRequestConfiguration
An AdRequest contains targeting information used to fetch an ad. Ad requests are created using Builder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
NativeAdRequestConfiguration.Builder
Builds an NativeAdRequestConfiguration.
-
Field Summary
Fields Modifier and Type Field Description private final String
adUnitId
private final String
age
private final String
gender
private final String
contextQuery
private final List<String>
contextTags
private final Location
location
private final Map<String, String>
parameters
private final String
biddingData
private final AdTheme
preferredTheme
private final Boolean
shouldLoadImagesAutomatically
-
Method Summary
Modifier and Type Method Description final String
getAdUnitId()
Unique ad placement ID created at partner interface final String
getAge()
User's age final String
getGender()
User's gender final String
getContextQuery()
User's query entered inside the app final List<String>
getContextTags()
Tags describing current user context inside the app final Location
getLocation()
User's location for targeting process final Map<String, String>
getParameters()
Custom request parameters final String
getBiddingData()
Open Bidding bid ID final AdTheme
getPreferredTheme()
User's preferred app theme final Boolean
getShouldLoadImagesAutomatically()
Determines if ad images should be loaded as a part of ad loading process. -
-
Method Detail
-
getAdUnitId
final String getAdUnitId()
Unique ad placement ID created at partner interface
-
getContextQuery
final String getContextQuery()
User's query entered inside the app
-
getContextTags
final List<String> getContextTags()
Tags describing current user context inside the app
-
getLocation
final Location getLocation()
User's location for targeting process
-
getParameters
final Map<String, String> getParameters()
Custom request parameters
-
getBiddingData
final String getBiddingData()
Open Bidding bid ID
-
getPreferredTheme
final AdTheme getPreferredTheme()
User's preferred app theme
-
getShouldLoadImagesAutomatically
final Boolean getShouldLoadImagesAutomatically()
Determines if ad images should be loaded as a part of ad loading process. All images will be loaded and ready to be used if set to
true
. Otherwise, images should be loaded manually with loadImages method NativeAd.loadImages
-
-
-
-