目录

CLASS info
public class RequestOptions extends Object
Setting directed to children, setting directed to users under the age of consent, and ad content rating.

Nested Class Summary

TypeNameDesc
ClassRequestOptions.BuilderGlobal configuration builder.

Public Method Summary

Return typeMethod name
StringgetAdContentClassification()
Obtains the ad content rating.
StringgetAppLang()
Obtains the language in which an ad needs to be returned for an app.
StringgetAppCountry()
Obtains the country code corresponding to the language in which an ad needs to be returned for an app.
IntegergetTagForChildProtection()
Obtains the child-directed setting.
IntegergetTagForUnderAgeOfPromise()
Obtains the setting directed to users under the age of consent.
RequestOptions.BuildertoBuilder()
Obtains a global request configuration builder.
IntegergetNonPersonalizedAd()
Checks whether to request non-personalized ads.

Public Methods

Method
public String getAdContentClassification()
Obtains the ad content rating.


Return

typedesc
StringAd content rating.
Method
public String getAppLang()
Obtains the language in which an ad needs to be returned for an app.


Return

typedesc
StringLanguage in which an ad needs to be returned for an app.
Method
public String getAppCountry()
Obtains the country code corresponding to the language in which an ad needs to be returned for an app.


Return

typedesc
StringCountry code corresponding to the language in which an ad needs to be returned for an app.
Method
public Integer getTagForChildProtection()
Obtains the child-directed setting.


Return

typedesc
IntegerChild-directed setting.
Method
public Integer getTagForUnderAgeOfPromise()
Obtains the setting directed to users under the age of consent.


Return

typedesc
IntegerDirected to users under the age of consent setting.
Method
public RequestOptions.Builder toBuilder()
Obtains a global request configuration builder.


Return

typedesc
RequestOptions.BuilderBuilder of a RequestOptions object.
Method
public int getNonPersonalizedAd()
Checks whether to request non-personalized ads.


Return

typedesc
IntegerSetting indicating whether to request non-personalized ads.