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. This configuration applies to both iOS and tvOS.
Configuration
| Attribute | Type | Required | Description |
|---|---|---|---|
| enabled | boolean | No | Enable the plugin. Defaults to false. |
| ppid | string | No | Publisher provided identifier. |
| descriptionUrl | string | No | Description URL of the content where ads will be played. |
| skippablesSupported | boolean | No | Signals skippable ad support to PAL where supported. |
| forceLimitedAds | boolean | No | Forces limited ads mode when true. Keep false unless forcing limited ads is explicitly required. |
| directedForChildOrUnknownAge | boolean | No | Marks requests as child-directed or unknown-age when set. |
| disableLimitedAdsStorage | boolean | No | Disables limited-ads storage in PAL Google Ad Manager settings when true. |
| disableFirstPartyIdentifiers | boolean | No | Disables first-party identifiers in PAL Google Ad Manager settings when true. |
info
allowStorageConsent is removed from player configuration. PAL iOS/tvOS removed allowStorage in SDK 3.0.0.
Example
let palConfig = PALPluginConfiguration(
enabled: true,
ppid: "PPID",
descriptionUrl: "DESCRIPTION_URL",
forceLimitedAds: false,
directedForChildOrUnknownAge: false,
disableLimitedAdsStorage: false,
disableFirstPartyIdentifiers: false
)
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.