ConsentSettings.Builder

@AutoValue.Builder
public abstract class ConsentSettings.Builder


A builder for generating ConsentSettings objects.

Summary

Public constructors

Public methods

abstract ConsentSettings

Build the ConsentSettings.

abstract ConsentSettings.Builder

Sets whether PAL is used for an ad request directed to a child or user of unknown age, according to Google Play policy.

abstract ConsentSettings.Builder
forceLimitedAds(boolean toggle)

Sets whether to force Limited Ads mode for the ad request.

Public constructors

Builder

public Builder()

Public methods

build

public abstract ConsentSettings build()

Build the ConsentSettings.

directedForChildOrUnknownAge

public abstract ConsentSettings.Builder directedForChildOrUnknownAge(Boolean toggle)

Sets whether PAL is used for an ad request directed to a child or user of unknown age, according to Google Play policy.

forceLimitedAds

public abstract ConsentSettings.Builder forceLimitedAds(boolean toggle)

Sets whether to force Limited Ads mode for the ad request. When unset or set to false, PAL will automatically determine the Limited Ads status from TCF data, set by a CMP. When set to true, Limited Ads mode will be used regardless of TCF signals. In Limited Ads mode, PAL won't store, access, or send user identifiers for ad serving purposes. When programmatic limited ads are enabled, invalid traffic detection-only storage may still be used; see disableLimitedAdsStorage. For more information about limited ads, see this general article and this PAL-specific article.