|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.ads.mediation.MediationAdRequest
public class MediationAdRequest
Information about the ad to fetch for a single publisher. The information is passed through to the ad network's adapter.
Constructor Summary | |
---|---|
MediationAdRequest(AdRequest request,
Context context,
boolean shareLocation)
Creates a new MediationAdRequest from an existing AdRequest |
Method Summary | |
---|---|
Integer |
getAgeInYears()
Calculates the age of the user in years, if the birthday is defined by the AdRequest. |
Date |
getBirthday()
Gets the birthday of the user, if defined by the AdRequest |
AdRequest.Gender |
getGender()
Gets the gender of the user, if defined by the AdRequest |
Set<String> |
getKeywords()
Gets a set of keywords requested by the user, if defined by the AdRequest |
Location |
getLocation()
Gets the physical location of the user, if defined by the AdRequest and allowed to be shared by the publisher. |
boolean |
isTesting()
Gets a flag determining whether the publisher is asking for test ads. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MediationAdRequest(AdRequest request, Context context, boolean shareLocation)
request
- Ad request parameters (null not allowed)context
- Android Context the ad is running under. If this is null,
then isTesting()
will always return true.shareLocation
- Whether to share location from 'request' with ad networks.
If true, getLocation()
returns the location from 'request',
if false, getLocation()
returns null.Method Detail |
---|
public AdRequest.Gender getGender()
public Date getBirthday()
public Integer getAgeInYears()
getBirthday()
.
public Set<String> getKeywords()
public Location getLocation()
public boolean isTesting()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |