Skip to main content

Programmatic Access Library (PAL)

The Programmatic Access Library (PAL) is a lightweight SDK that provide discrete access to targeting signals for Google Ad Manager programmatic ads.

Configuration

AttributeTypeRequiredDescription
enabledbooleanNoEnable the plugin. Defaults to false.
ppidstringNoPublisher provided identifier.
descriptionUrlstringNoDescription URL of the content where ads will be played.
skippablesSupportedbooleanNoSignals skippable ad support to PAL where supported.
forceLimitedAdsbooleanNoForces limited ads mode when true. Keep false unless forcing limited ads is explicitly required.
directedForChildOrUnknownAgebooleanNoMarks requests as child-directed or unknown-age when set.
disableLimitedAdsStoragebooleanNoDisables limited-ads storage in PAL Google Ad Manager settings when true.
disableFirstPartyIdentifiersbooleanNoDisables first-party identifiers in PAL Google Ad Manager settings when true.
info

allowStorageConsent is removed from player configuration.

Example
const config = {
...
plugins: {
pal: {
enabled: true,
forceLimitedAds: false,
directedForChildOrUnknownAge: false,
disableLimitedAdsStorage: false,
disableFirstPartyIdentifiers: false,
ppid: "12DJD92J02KXVLS9D817DCJ078S8F1J2",
descriptionUrl: "https://docs4.lura.app/",
},
},
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

Using the PAL Nonce

LuraPlayer automatically fills the reserved macro LURA_PAL_NONCE in URL's under the ads parameter. Check out macros for more details.