Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 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"]]