目录

RequestOptions

Class Info

public class RequestOptions extends Object

Child-directed setting, setting directed to users under the age of consent, and ad content ratings.

Nested Class Summary

Qualifier and Type

Class Name and Description

public static final class

RequestOptions.Builder

Builder for global request configuration.

Public Method Summary

Qualifier and Type

Method Name and Description

String

getAdContentClassification()

Obtains the maximum ad content rating.

String

getAppCountry()

Obtains the country/region code corresponding to the language in which an ad needs to be returned for an app.

String

getAppLang()

Obtains the language in which an ad needs to be returned for an app.

String

getConsent()

Obtains the user consent string that complies with TCF v2.0.

Integer

getNonPersonalizedAd()

Obtains the setting indicating whether to request non-personalized ads.

Integer

getTagForChildProtection()

Obtains the child-directed setting.

Integer

getTagForUnderAgeOfPromise()

Obtains the setting directed to users under the age of consent.

RequestOptions.Builder

toBuilder()

Obtains a builder for global request configuration.

Public Methods

[h2]getAdContentClassification

Method

public String getAdContentClassification()

Obtains the maximum ad content rating.

Returns

Type

Description

String

Maximum ad content rating.

[h2]getAppCountry

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.

[h2]getAppLang

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.

[h2]getConsent

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.

[h2]getNonPersonalizedAd

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.

[h2]getTagForChildProtection

Method

public Integer getTagForChildProtection()

Obtains the child-directed setting.

Returns

Type

Description

Integer

Child-directed setting.

[h2]getTagForUnderAgeOfPromise

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.

[h2]toBuilder

Method

public RequestOptions.Builder toBuilder()

Obtains a builder for global request configuration.

Returns

Type

Description

RequestOptions.Builder

RequestOptions.Builder of the RequestOptions object.