MediationAdRequest

public interfaceMediationAdRequest
Known Indirect Subclasses

This interface is deprecated.
UseAdapterand MediationAdConfiguration instead.

Information about the ad to fetch for a single publisher. The information is passed through to the ad network's adapter.

Constant Summary

int TAG_FOR_CHILD_DIRECTED_TREATMENT_FALSE As returned by taggedForChildDirectedTreatment(),indicates that the app should not be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA).
int TAG_FOR_CHILD_DIRECTED_TREATMENT_TRUE As returned by taggedForChildDirectedTreatment(),indicates that the app should be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA).
int TAG_FOR_CHILD_DIRECTED_TREATMENT_UNSPECIFIED As returned by taggedForChildDirectedTreatment(),indicates that the publisher has not specified whether the app should be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA).

Public Method Summary

abstractDate
getBirthday()
This method is deprecated. No replacement.
abstract int
getGender()
This method is deprecated. No replacement.
abstractSet<String>
getKeywords()
Returns the set of keywords requested by the user, if defined by the AdRequest.
abstractLocation
getLocation()
Returns the location of the user, if defined by theAdRequest.
abstract boolean
isDesignedForFamilies()
This method is deprecated. No replacement.
abstract boolean
isTesting()
Returns true if the publisher is asking for test ads.
abstract int
taggedForChildDirectedTreatment()
Returns whether the publisher indicated that the app is to be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA) -//business.ftc.gov/privacy-and-security/childrens-privacy.

Constants

public static final int TAG_FOR_CHILD_DIRECTED_TREATMENT_FALSE

As returned by taggedForChildDirectedTreatment(),indicates that the app should not be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA).

Constant Value:0

public static final int TAG_FOR_CHILD_DIRECTED_TREATMENT_TRUE

As returned by taggedForChildDirectedTreatment(),indicates that the app should be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA).

Constant Value:1

public static final int TAG_FOR_CHILD_DIRECTED_TREATMENT_UNSPECIFIED

As returned by taggedForChildDirectedTreatment(),indicates that the publisher has not specified whether the app should be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA).

Constant Value:-1

Public Methods

public abstractDategetBirthday()

This method is deprecated.
No replacement.

Returns the birthday of the user, if defined by theAdRequest.

public abstract intgetGender()

This method is deprecated.
No replacement.

Returns the gender of the user, if defined by theAdRequest.

public abstractSet<String> getKeywords()

Returns the set of keywords requested by the user, if defined by theAdRequest.

public abstractLocation getLocation()

Returns the location of the user, if defined by theAdRequest.

public abstract boolean isDesignedForFamilies()

This method is deprecated.
No replacement.

Publishers that have opted into theDesigned for Familiesprogram may specify that an ad request should return a Designed for Families-compliant ad. Please see theGoogle AdMob help center article for more information about this setting.

Returns true if the publisher indicated that the ad request is required to return a Designed for Families-compliant ad.

Returns false if the publisher did not indicate that the ad request is required to return a Designed for Families-compliant ad.

Note: This setting is separate from theChildren's Online Privacy Protection Act (COPPA)"tag for child directed treatment" setting. For COPPA-related compliance, see taggedForChildDirectedTreatment().

public abstract boolean isTesting()

Returns true if the publisher is asking for test ads. Publishers request test ads by specifying a device ID, but this information is resolved to a boolean for convenience.

public abstract inttaggedForChildDirectedTreatment()

Returns whether the publisher indicated that the app is to be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA) - //business.ftc.gov/privacy-and-security/childrens-privacy.

If this method returns TAG_FOR_CHILD_DIRECTED_TREATMENT_TRUE,it indicates that the app should be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA).

If this method returns TAG_FOR_CHILD_DIRECTED_TREATMENT_FALSE,it indicates that the app should not be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA).

If this method returns TAG_FOR_CHILD_DIRECTED_TREATMENT_UNSPECIFIED,it indicates that the publisher has not specified whether the app should be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA).