Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-03-10 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-03-10 UTC."],[[["The PAL SDK allows Roku publishers to monetize apps using Direct VAST Call (DVC) by obtaining nonces from Google to sign ad requests."],["Each stream requires a new nonce, which can be reused for multiple ad requests within that stream."],["The SDK involves configuring project files, setting up a sample video player and interface for interactions, and managing communication with Google's servers."],["The PAL SDK is being replaced by a Google Ad Manager solution, but this document provides guidance on its current use for DVC ad integration."],["User consent for storage is necessary and impacts the nonce request process."]]],["The guide details integrating the Programmatic Access Library (PAL) SDK into Roku apps for direct VAST call monetization. It involves requesting encrypted strings (nonces) from the PAL SDK via the `PALInterface` component, which communicates with the `MainScene` component. Key actions include: importing the IMA SDK, requesting a nonce using `nonceLoader.loadNonceManager`, managing storage consent and listening to events like ad clicks and playback start/end. Nonces are appended to ad tag URLs for Google Ad Manager, or forwarded to third party ad servers, to help with IVT detection.\n"]]