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.

Initialize the PAL Plugin

To initialize the PAL Plugin, add pal attribute to the plugins object in your config. To see more details about configuration, please check out PAL Plugin

m.player.callFunc("setConfig", {
...
plugins: {
pal: {
"enabled": true,
"forceLimitedAds": false,
"directedForChildOrUnknownAge": false,
"disableLimitedAdsStorage": false,
"disableFirstPartyIdentifiers": false,
"ppid": "12DJD92J02KXVLS9D817DCJ078S8F1J2",
"descriptionUrl": "https://docs4.lura.app/",
},
},
...
})

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.