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). |
|
| @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 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_CHILD_DIRECTED_TREATMENT_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_CHILD_DIRECTED_TREATMENT_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. |
| 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).
|
| 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 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.
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 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.