ConsentSettings.Builder

@AutoValue.Builder
abstract class ConsentSettings.Builder


A builder for generating ConsentSettings objects.

Summary

Public constructors

Public functions

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!

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

Public constructors

Builder

Builder()

Public functions

build

abstract fun build(): ConsentSettings!

Build the ConsentSettings.

directedForChildOrUnknownAge

abstract fun directedForChildOrUnknownAge(toggle: Boolean!): 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.

forceLimitedAds

abstract fun forceLimitedAds(toggle: Boolean): ConsentSettings.Builder!

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.