RequestConfiguration

public final class RequestConfiguration


Global configuration that will be used for every ad request.

Summary

Nested types

public final class RequestConfiguration.Builder

Builder for RequestConfiguration.

Allowed constants for Builder.setMaxAdContentRating.

Publisher privacy treatment personalization states.

Allowed constants for Builder.setTagForChildDirectedTreatment.

Allowed constants for Builder.setTagForUnderAgeOfConsent.

Constants

static final @NonNull String

The server key for MaxAdContentRating value.

Constants

MAX_AD_CONTENT_RATING_KEY

public static final @NonNull String MAX_AD_CONTENT_RATING_KEY

The server key for MaxAdContentRating value.

Public methods

getMaxAdContentRating

public final @NonNull RequestConfiguration.MaxAdContentRating getMaxAdContentRating()

getTestDeviceIds

public final @NonNull List<@NonNull StringgetTestDeviceIds()

isTestDevice

public final boolean isTestDevice(@NonNull Context context)

Returns true if this device will receive test ads.