ConsentSettings.Builder

public static abstract class ConsentSettings.Builder extends Object

A builder for generating ConsentSettings objects.

Public Constructor Summary

Public Method Summary

abstract ConsentSettings.Builder
allowStorage(Boolean toggle)
Sets whether PAL is allowed to access storage on the device to include identifiers like device id.
abstract ConsentSettings
build()
Build the ConsentSettings.
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.

Inherited Method Summary

Public Constructors

public Builder ()

Public Methods

public abstract ConsentSettings.Builder allowStorage (Boolean toggle)

Sets whether PAL is allowed to access storage on the device to include identifiers like device id. This should only be used when the publisher has verified consent to storage compliance with the relevant regulations for the given user. This is set to false by default.

public abstract ConsentSettings build ()

Build the ConsentSettings.

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.