ProgrammaticAccessLibrary Framework Reference

PALSettings


@interface PALSettings : NSObject

The PALSettings class stores SDK wide settings.

  • Specify if the ad request is directed to a child or user of an unknown age (for example, TFCD or TFUA). Default value is false.

    Declaration

    Swift

    var directedForChildOrUnknownAge: Bool { get set }

    Objective-C

    @property (nonatomic) BOOL directedForChildOrUnknownAge;
  • 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 will not 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 {@link PALGoogleAdManagerSettings}. For more information about limited ads, see this general article and this PAL-specific article.

    Declaration

    Swift

    var forceLimitedAds: Bool { get set }

    Objective-C

    @property (nonatomic) BOOL forceLimitedAds;