Package com.yandex.mobile.ads.common
Class AdRequest
- java.lang.Object
-
- com.yandex.mobile.ads.common.AdRequest
-
public final class AdRequest extends java.lang.Object
An AdRequest contains targeting information used to fetch an ad. Ad requests are created usingAdRequest.Builder
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AdRequest.Builder
Builds anAdRequest
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getAge()
Returns current user age entered inside the app that was set intoAdRequest.Builder
.java.lang.String
getBiddingData()
Returns bid id that were set intoAdRequest.Builder
.java.lang.String
getContextQuery()
Returns current user query entered inside the app that was set intoAdRequest.Builder
.java.util.List<java.lang.String>
getContextTags()
Returns tags describing current user context inside the app that were set intoAdRequest.Builder
.java.lang.String
getGender()
Returns user gender entered inside the app that was set intoAdRequest.Builder
.android.location.Location
getLocation()
Returns the user's mLocation for targeting process that was set intoAdRequest.Builder
.java.util.Map<java.lang.String,java.lang.String>
getParameters()
Returns custom mParameters that were set intoAdRequest.Builder
.com.yandex.mobile.ads.common.AdTheme
getPreferredTheme()
int
hashCode()
-
-
-
Method Detail
-
getAge
@Nullable public java.lang.String getAge()
Returns current user age entered inside the app that was set intoAdRequest.Builder
.- Returns:
- User's age
-
getGender
@Nullable public java.lang.String getGender()
Returns user gender entered inside the app that was set intoAdRequest.Builder
.- Returns:
- User's gender
-
getContextQuery
@Nullable public java.lang.String getContextQuery()
Returns current user query entered inside the app that was set intoAdRequest.Builder
.- Returns:
- Context query
-
getContextTags
@Nullable public java.util.List<java.lang.String> getContextTags()
Returns tags describing current user context inside the app that were set intoAdRequest.Builder
.- Returns:
- Context tags
-
getLocation
@Nullable public android.location.Location getLocation()
Returns the user's mLocation for targeting process that was set intoAdRequest.Builder
.- Returns:
- User's mLocation
-
getParameters
@Nullable public java.util.Map<java.lang.String,java.lang.String> getParameters()
Returns custom mParameters that were set intoAdRequest.Builder
.- Returns:
- Custom mParameters
-
getBiddingData
@Nullable public java.lang.String getBiddingData()
Returns bid id that were set intoAdRequest.Builder
.- Returns:
- Bid id
-
getPreferredTheme
@Nullable public com.yandex.mobile.ads.common.AdTheme getPreferredTheme()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-