目录

RequestOptions

Class Info

public class RequestOptions extends Object

面向儿童、未达到法定承诺年龄的用户的设置以及广告内容分级。

Nested Class Summary

Qualifier and Type

Class Name and Description

public static final class

RequestOptions.Builder

全局配置构造器。

Public Method Summary

Qualifier and Type

Method Name and Description

String

getAdContentClassification()

获取广告内容分级上限。

String

getAppCountry()

获取媒体希望返回的广告语言所在国家/地区码。

String

getAppLang()

获取媒体希望返回的广告语言。

String

getConsent()

获取TCF v2.0用户同意信息字符串。

Integer

getNonPersonalizedAd()

获取是否请求非个性化广告的设置。

Integer

getTagForChildProtection()

获取面向儿童的设置。

Integer

getTagForUnderAgeOfPromise()

获取面向未达到法定承诺年龄用户的设置。

RequestOptions.Builder

toBuilder()

获取全局请求配置的构造器。

Public Methods

[h2]getAdContentClassification

Method

public String getAdContentClassification()

获取广告内容分级上限。

Returns

Type

Description

String

广告内容分级上限。

[h2]getAppCountry

Method

public String getAppCountry()

获取媒体希望返回的广告的语言所在国家/地区码。

Returns

Type

Description

String

希望返回的广告语言所在国家/地区码。

[h2]getAppLang

Method

public String getAppLang()

获取媒体希望返回的广告的语言。

Returns

Type

Description

String

希望返回的广告语言。

[h2]getConsent

Method

public String getConsent()

获取TCF v2.0用户同意信息字符串。

Returns

Type

Description

String

TCF v2.0用户同意信息字符串。

[h2]getNonPersonalizedAd

Method

public Integer getNonPersonalizedAd()

获取是否请求非个性化广告的设置。

Returns

Type

Description

Integer

请求非个性化广告相关的设置。

[h2]getTagForChildProtection

Method

public Integer getTagForChildProtection()

获取面向儿童的设置。

Returns

Type

Description

Integer

面向儿童的设置。

[h2]getTagForUnderAgeOfPromise

Method

public Integer getTagForUnderAgeOfPromise()

获取面向未达到法定承诺年龄用户的设置。

Returns

Type

Description

Integer

面向未达到法定承诺年龄用户的设置。

[h2]toBuilder

Method

public RequestOptions.Builder toBuilder()

获取全局请求配置的构造器。

Returns

Type

Description

RequestOptions.Builder

返回该RequestOptions对象值的RequestOptions.Builder