Class Info |
|---|
public class RequestOptions extends Object Child-directed setting, setting directed to users under the age of consent, and ad content ratings. |
Qualifier and Type | Class Name and Description |
|---|---|
public static final class | Builder for global request configuration. |
Qualifier and Type | Method Name and Description |
|---|---|
String | Obtains the maximum ad content rating. |
String | Obtains the country/region code corresponding to the language in which an ad needs to be returned for an app. |
String | Obtains the language in which an ad needs to be returned for an app. |
String | Obtains the user consent string that complies with TCF v2.0. |
Integer | Obtains the setting indicating whether to request non-personalized ads. |
Integer | Obtains the child-directed setting. |
Integer | Obtains the setting directed to users under the age of consent. |
| Obtains a builder for global request configuration. |
Method |
|---|
public String getAdContentClassification() Obtains the maximum ad content rating. |
Returns
Type | Description |
|---|---|
String | Maximum ad content rating. |
Method |
|---|
public String getAppCountry() Obtains the country/region code corresponding to the language in which an ad needs to be returned for an app. |
Returns
Type | Description |
|---|---|
String | Country/Region code corresponding to the language in which an ad needs to be returned for an app. |
Method |
|---|
public String getAppLang() Obtains the language in which an ad needs to be returned for an app. |
Returns
Type | Description |
|---|---|
String | Language in which an ad needs to be returned for an app. |
Method |
|---|
public String getConsent() Obtains the user consent string that complies with TCF v2.0. |
Returns
Type | Description |
|---|---|
String | User consent string that complies with TCF v2.0. |
Method |
|---|
public Integer getNonPersonalizedAd() Obtains the setting indicating whether to request non-personalized ads. |
Returns
Type | Description |
|---|---|
Integer | Setting indicating whether non-personalized ads are requested. |
Method |
|---|
public Integer getTagForChildProtection() Obtains the child-directed setting. |
Returns
Type | Description |
|---|---|
Integer | Child-directed setting. |
Method |
|---|
public Integer getTagForUnderAgeOfPromise() Obtains the setting directed to users under the age of consent. |
Returns
Type | Description |
|---|---|
Integer | Setting directed to users under the age of consent. |
Method |
|---|
public RequestOptions.Builder toBuilder() Obtains a builder for global request configuration. |
Returns
Type | Description |
|---|---|
RequestOptions.Builder of the RequestOptions object. |