Class Info |
|---|
public static class RequestOptions.Builder 广告请求配置的构造器。 |
Qualifier and Type | Method Name and Description |
|---|---|
build() 广告请求配置的构造器。 | |
RequestOptions.Builder | setAdContentClassification(String adContentClassification) 设置广告内容分级上限。 |
RequestOptions.Builder | setAppCountry(String appCountry) 设置媒体希望返回的广告的语言所在国家/地区码。 |
RequestOptions.Builder | setAppLang(String appLang) 设置媒体希望返回的广告的语言。 |
RequestOptions.Builder | setConsent(String consent) 设置TCF v2.0用户同意信息字符串。 |
RequestOptions.Builder | setNonPersonalizedAd(Integer nonPersonalizedAd) 设置是否请求非个性化广告的设置。 |
RequestOptions.Builder | setTagForChildProtection(Integer tagForChildProtection) 设置儿童保护标签。 |
RequestOptions.Builder | setTagForUnderAgeOfPromise(Integer tagForUnderAgeOfPromise) 设置面向未达到法定承诺年龄用户的设置。 |
RequestOptions.Builder | 设置请求时是否携带位置信息,默认携带。 |
Method |
|---|
public RequestOptions.Builder setAdContentClassification(String adContentClassification) 设置广告内容分级上限。 |
Parameters
Name | Description |
|---|---|
adContentClassification | 广告内容分级上限,有效值为: |
Returns
Type | Description |
|---|---|
广告请求配置的构造器。 |
Method |
|---|
public RequestOptions.Builder setAppCountry(String appCountry) 设置媒体希望返回的广告的语言所在国家/地区码。 |
Parameters
Name | Description |
|---|---|
appCountry | 媒体希望返回的广告的语言所在国家/地区码。 |
Returns
Type | Description |
|---|---|
广告请求配置的构造器。 |
Method |
|---|
public RequestOptions.Builder setAppLang(String appLang) 设置媒体希望返回的广告的语言。 |
Parameters
Name | Description |
|---|---|
appLang | 媒体希望返回的广告的语言。 |
Returns
Type | Description |
|---|---|
广告请求配置的构造器。 |
Method |
|---|
public RequestOptions.Builder setConsent(String consent) 设置TCF v2.0用户同意信息字符串。 |
Parameters
Name | Description |
|---|---|
consent | TCF v2.0用户同意信息字符串,遵循IAB TCF v2.0标准中的Consent String Format格式。 |
Returns
Type | Description |
|---|---|
广告请求配置的构造器。 |
Method |
|---|
public RequestOptions.Builder setNonPersonalizedAd(Integer nonPersonalizedAd) 设置是否请求非个性化广告的设置。 |
Parameters
Name | Description |
|---|---|
nonPersonalizedAd | 有效值为: |
Returns
Type | Description |
|---|---|
广告请求配置的构造器。 |
Method |
|---|
public RequestOptions.Builder setTagForChildProtection(Integer tagForChildProtection) 设置儿童保护标签。 |
Parameters
Name | Description |
|---|---|
tagForChildProtection | 儿童保护标签,有效值为: |
Returns
Type | Description |
|---|---|
广告请求配置的构造器。 |
Method |
|---|
public RequestOptions.Builder setTagForUnderAgeOfPromise(Integer tagForUnderAgeOfPromise) 设置面向未达到法定承诺年龄用户的设置。 |
Parameters
Name | Description |
|---|---|
tagForUnderAgeOfPromise | 未达到法定承诺年龄用户的设置,有效值为: |
Returns
Type | Description |
|---|---|
广告请求配置的构造器。 |