Global configuration that will be used for every AdRequest.
| class | RequestConfiguration.Builder | Builder for RequestConfiguration. |
|
| @interface | RequestConfiguration.MaxAdContentRating | Allowed constants for
RequestConfiguration.Builder.setMaxAdContentRating(String). |
|
| enum | RequestConfiguration.PublisherPrivacyPersonalizationState | Publisher privacy treatment personalization states. | |
| @interface | RequestConfiguration.TagForChildDirectedTreatment | Allowed constants for
RequestConfiguration.Builder.setTagForChildDirectedTreatment(int). |
|
| @interface | RequestConfiguration.TagForUnderAgeOfConsent | Allowed constants for
RequestConfiguration.Builder.setTagForUnderAgeOfConsent(int). |
|
| String | MAX_AD_CONTENT_RATING_G | Content suitable for general audiences, including families. |
| String | MAX_AD_CONTENT_RATING_MA | Content suitable only for mature audiences. |
| String | MAX_AD_CONTENT_RATING_PG | Content suitable for most audiences with parental guidance. |
| String | MAX_AD_CONTENT_RATING_T | Content suitable for teen and older audiences. |
| String | MAX_AD_CONTENT_RATING_UNSPECIFIED | No specified content rating. |
| int | TAG_FOR_CHILD_DIRECTED_TREATMENT_FALSE | Indicates that ad requests should not be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA). |
| int | TAG_FOR_CHILD_DIRECTED_TREATMENT_TRUE | Indicates that ad requests should be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA). |
| int | TAG_FOR_CHILD_DIRECTED_TREATMENT_UNSPECIFIED | Provides no indication whether ad requests should be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA). |
| int | TAG_FOR_UNDER_AGE_OF_CONSENT_FALSE | Indicates the publisher specified that the ad request should not receive treatment for users in the European Economic Area (EEA) under the age of consent. |
| int | TAG_FOR_UNDER_AGE_OF_CONSENT_TRUE | Indicates the publisher specified that the ad request should receive treatment for users in the European Economic Area (EEA) under the age of consent. |
| int | TAG_FOR_UNDER_AGE_OF_CONSENT_UNSPECIFIED | Indicates that the publisher has not specified whether the ad request should receive treatment for users in the European Economic Area (EEA) under the age of consent. |
| String |
getMaxAdContentRating()
Returns the value set by the corresponding
RequestConfiguration.Builder.setMaxAdContentRating(String).
|
| RequestConfiguration.PublisherPrivacyPersonalizationState |
getPublisherPrivacyPersonalizationState()
Returns the publisher privacy treatment personalization state.
|
| int |
getTagForChildDirectedTreatment()
Returns the value set by the corresponding
RequestConfiguration.Builder.setTagForChildDirectedTreatment(int).
|
| int |
getTagForUnderAgeOfConsent()
Returns the value set by the corresponding
RequestConfiguration.Builder.setTagForUnderAgeOfConsent(int).
|
| List<String> |
getTestDeviceIds()
Returns the test device IDs corresponding to test device which will always
request test ads.
|
| RequestConfiguration.Builder |
toBuilder()
Returns a
RequestConfiguration.Builder with values from this RequestConfiguration.
|
Content suitable for general audiences, including families.
Content suitable only for mature audiences.
Content suitable for most audiences with parental guidance.
Content suitable for teen and older audiences.
No specified content rating.
Indicates that ad requests should not be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA).
Indicates that ad requests should be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA).
Provides no indication whether ad requests should be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA).
Indicates the publisher specified that the ad request should not receive treatment for users in the European Economic Area (EEA) under the age of consent.
Indicates the publisher specified that the ad request should receive treatment for users in the European Economic Area (EEA) under the age of consent.
Indicates that the publisher has not specified whether the ad request should receive treatment for users in the European Economic Area (EEA) under the age of consent.
Returns the value set by the corresponding
RequestConfiguration.Builder.setMaxAdContentRating(String).
Returns the publisher privacy treatment personalization state.
Returns the value set by the corresponding
RequestConfiguration.Builder.setTagForChildDirectedTreatment(int).
Returns the value set by the corresponding
RequestConfiguration.Builder.setTagForUnderAgeOfConsent(int).
Returns the test device IDs corresponding to test device which will always request test ads. Returns an empty list if test device IDs were not previously set.
Returns a RequestConfiguration.Builder
with values from this RequestConfiguration.