PAL SDK 与隐私权和法规相关的各种设置。这些设置有助于在生成 Nonce 信号时做出关于所用标识符的选择。
构造函数
ConsentSettings
新的 ConsentSettings()
媒体资源
allowStorage
boolean
PAL 是否就用途 1 征得用户同意使用标识符和存储。该值需要通过与 CMP(意见征求管理提供商)集成来确定。默认情况下,此属性设置为 false。如果指定为 true,则表示 PAL 已征得用户同意,可以使用 Cookie、设备 ID 和广告 ID 等信息。此值需要设置为符合 IAB TCFv2(透明度和用户意见征求框架)的要求。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-21。"],[],["The `ConsentSettings` class in the PAL SDK manages privacy and regulation settings, particularly regarding identifier usage for nonce signal generation. It includes a `allowStorage` property, a boolean that defaults to `false`. Setting `allowStorage` to `true` indicates user consent for PAL to utilize identifiers like cookies, device IDs, and advertising IDs, and is required for IAB TCFv2 compliance. This consent should be determined via integration with a Consent Management Provider (CMP).\n"]]