Go to console

RequestConfiguration

public class RequestConfiguration extends Object

Global configuration that will be used for every AdRequest.

Nested Class Summary

class RequestConfiguration.Builder Builder for RequestConfiguration
@interface RequestConfiguration.MaxAdContentRating Allowed constants for setMaxAdContentRating(String)
@interface RequestConfiguration.TagForChildDirectedTreatment Allowed constants for setTagForChildDirectedTreatment(int)
@interface RequestConfiguration.TagForUnderAgeOfConsent Allowed constants for setTagForUnderAgeOfConsent(int)

Constant Summary

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.

Public Method Summary

String
getMaxAdContentRating()
Returns the value set by the corresponding setMaxAdContentRating(String).
int
getTagForChildDirectedTreatment()
Returns the value set by the corresponding setTagForChildDirectedTreatment(int).
int
getTagForUnderAgeOfConsent()
Returns the value set by the corresponding setTagForUnderAgeOfConsent(int).
RequestConfiguration.Builder

Inherited Method Summary

Constants

public static final String MAX_AD_CONTENT_RATING_G

Content suitable for general audiences, including families.

Constant Value: "G"

public static final String MAX_AD_CONTENT_RATING_MA

Content suitable only for mature audiences.

Constant Value: "MA"

public static final String MAX_AD_CONTENT_RATING_PG

Content suitable for most audiences with parental guidance.

Constant Value: "PG"

public static final String MAX_AD_CONTENT_RATING_T

Content suitable for teen and older audiences.

Constant Value: "T"

public static final String MAX_AD_CONTENT_RATING_UNSPECIFIED

No specified content rating.

Constant Value: ""

public static final 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.

Constant Value: 0

public static final 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.

Constant Value: 1

public static final 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.

Constant Value: -1

public static final 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.

Constant Value: 0

public static final 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.

Constant Value: 1

public static final 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.

Constant Value: -1

Public Methods

public String getMaxAdContentRating ()

Returns the value set by the corresponding setMaxAdContentRating(String).

public int getTagForChildDirectedTreatment ()

Returns the value set by the corresponding setTagForChildDirectedTreatment(int).

public int getTagForUnderAgeOfConsent ()

Returns the value set by the corresponding setTagForUnderAgeOfConsent(int).

public RequestConfiguration.Builder toBuilder ()

Returns a RequestConfiguration.Builder with values from this RequestConfiguration.