Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
ConsentSettings
lớpcông khai
Nhiều chế độ cài đặt đối với SDK PAL có liên quan đến quyền riêng tư và quy định. Các chế độ cài đặt có thể giúp đưa ra quyết định về lựa chọn liên quan đến giá trị nhận dạng được dùng khi tạo tín hiệu số chỉ dùng một lần.
Hàm dựng
ConsentSettings
mới
ConsentSettings()
Tài sản
allowStorage
boolean
Liệu PAL có sự đồng ý mục đích 1 về việc sử dụng giá trị nhận dạng và dung lượng lưu trữ hay không. Bạn cần xác định
giá trị bằng cách tích hợp với CMP (Nhà cung cấp
dịch vụ quản lý sự đồng ý). Giá trị này được đặt thành false theo mặc định. Nếu được chỉ định là true (đúng), thì PAL được người dùng đồng ý sử dụng các thông tin như cookie, mã thiết bị và mã nhận dạng cho quảng cáo. Giá trị này cần được đặt sao cho tuân thủ TCF phiên bản 2 của IAB (Khuôn khổ về tính minh bạch và sự đồng ý) của IAB.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-21 UTC."],[[["\u003cp\u003e\u003ccode\u003eConsentSettings\u003c/code\u003e manages privacy and regulation options within the PAL SDK, influencing identifier choices for nonce signals.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eallowStorage\u003c/code\u003e property, defaulting to false, dictates whether PAL has user consent (requiring CMP integration and IAB TCFv2 compliance) to utilize identifiers like cookies and device/advertising IDs for data storage.\u003c/p\u003e\n"]]],[],null,["# Class: ConsentSettings\n\nConsentSettings\n===============\n\nclass public\n\nVarious settings to the PAL SDK related to privacy and regulations. The\nsettings can help make decisions about the choice regarding the identifiers\nused while generating nonce signals.\n\nConstructor\n-----------\n\n### ConsentSettings\n\nnew\nConsentSettings()\n\nProperty\n--------\n\n### allowStorage\n\nboolean\n\nWhether PAL has purpose 1 consent to use identifiers and storage. The\nvalue needs to be determined by integrating with CMP (Consent Management\nProvider). This is set to false by default. If specified as true, PAL has\nconsent from the user to use information like cookies, device IDs\nand advertising IDs. This value needs to be set to be IAB TCFv2\n(Transparency and Consent Framework) compliant."]]