| public static final class AdParam.Builder extends ObjectCLASS info |
| public static final class AdParam.Builder extends Object |
| Ad request builder. |
| Constructor name |
| Builder() Ad request builder constructor. |
| Return type | Method name |
| AdParam | build() Builds an ad param object. |
| AdParam.Builder | setGender(int gender) Sets the gender. |
| AdParam.Builder | setAdContentClassification(String adContentClassification) Sets the ad content rating. |
| AdParam.Builder | setTagForUnderAgeOfPromise(Integer tagForUnderAgeOfPromise) Specifies whether to process ad requests as directed to users under the age of consent. |
| AdParam.Builder | setTagForChildProtection(Integer tagForChildProtection) Specifies whether to process ad requests according to the COPPA. |
| AdParam.Builder | setNonPersonalizedAd(Integer nonPersonalizedAd) Specifies whether to request personalized ads. |
| AdParam.Builder | setAppCountry(String appCountry) Sets the country code corresponding to the language in which an ad needs to be returned for an app. |
| AdParam.Builder | setAppLang(String appLang) Sets the language in which an ad needs to be returned for an app. |
| AdParam.Builder | setBelongCountryCode(String countryCode) Sets the home country code. |
| Constructor |
| public Builder() |
| Ad request builder constructor. |
| Method |
| public final AdParam build() |
| Builds an ad request. If an error occurs, null is returned. |
Return
| type | desc |
| AdParam | Ad param. |
| Method |
| public final AdParam.Builder setGender(int gender) |
| Sets the gender. |
Parameters
| Parameter name | Parameter desc |
| gender | Gender. |
Return
| type | desc |
| AdParam.Builder | Ad param builder. |
| Method |
| public final AdParam.Builder setAdContentClassification(String adContentClassification) |
| Sets the ad content rating. |
Parameters
| Parameter name | Parameter desc |
| adContentClassification | Ad content rating. The options are as follows: ContentClassification.AD_CONTENT_CLASSIFICATION_W ContentClassification.AD_CONTENT_CLASSIFICATION_PIContentClassification.AD_CONTENT_CLASSIFICATION_J ContentClassification.AD_CONTENT_CLASSIFICATION_A |
Return
| type | desc |
| AdParam.Builder | Ad param builder. |
| Method |
| public final AdParam.Builder setTagForUnderAgeOfPromise(Integer tagForUnderAgeOfPromise) |
| Specifies whether to process ad requests as directed to users under the age of consent. |
Parameters
| Parameter name | Parameter desc |
| tagForUnderAgeOfPromise | Indicates whether to process ad requests as underage user–directed. The options are as follows: |
Return
| type | desc |
| AdParam.Builder | Ad param builder. |
| Method |
| public final AdParam.Builder setTagForChildProtection(Integer tagForChildProtection) |
| Specifies whether to process ad requests according to the COPPA. |
Parameters
| Parameter name | Parameter desc |
| tagForChildProtection | Indicates whether to process ad requests according to the COPPA. The options are as follows: TagForChild.TAG_FOR_CHILD_PROTECTION_UNSPECIFIED TagForChild.TAG_FOR_CHILD_PROTECTION_FALSETagForChild.TAG_FOR_CHILD_PROTECTION_TRUE |
Return
| type | desc |
| AdParam.Builder | Ad param builder. |
| Method |
| public final AdParam.Builder setNonPersonalizedAd(Integer nonPersonalizedAd) |
| Specifies whether to request personalized ads. |
Parameters
| Parameter name | Parameter desc |
| nonPersonalizedAd | The options are as follows: |
Return
| type | desc |
| AdParam.Builder | Ad param builder. |
| Method |
| public final AdParam.Builder setAppCountry(String appCountry) |
| Sets the country code corresponding to the language in which an ad needs to be returned for an app. |
Parameters
| Parameter name | Parameter desc |
| appCountry | Country code corresponding to the language in which an ad needs to be returned for an app. |
Return
| type | desc |
| AdParam.Builder | Ad param builder. |
| Method |
| public final AdParam.Builder setAppLang(String appLang) |
| Sets the language in which an ad needs to be returned for an app. |
Parameters
| Parameter name | Parameter desc |
| appLang | Language in which an ad needs to be returned for an app. |
Return
| type | desc |
| AdParam.Builder | Ad param builder. |
| Method |
| public final AdParam.Builder setBelongCountryCode(String countryCode) |
| Sets the home country code. |
Parameters
| Parameter name | Parameter desc |
| countryCode | Code of the country to which multimedia belongs. |
Return
| type | desc |
| AdParam.Builder | Ad param builder. |