如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-03-10。
[null,null,["最后更新时间 (UTC):2025-03-10。"],[[["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"]]