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
| 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. |
Gradle dependencies
dependencies {
implementation 'com.google.android.gms:play-services-pal:23.0.0'
}
info
allowStorageConsent is removed from player configuration. PAL Android removed allowStorage in SDK 23.0.0.
Example
val luraConfiguration = LuraConfiguration(
plugins = LuraPluginsConfigurations(
pal = PalConfiguration(
enabled = true,
forceLimitedAds = false,
directedForChildOrUnknownAge = false,
disableLimitedAdsStorage = false,
disableFirstPartyIdentifiers = false,
ppid = "12DJD92J02KXVLS9D817DCJ078S8F1J2",
descriptionUrl = "https://docs4.lura.app/",
)
)
)
playerView = findViewById(R.id.lura_player_view)
player = LuraPlayer(context = this, playerView = playerView)
player.setConfig(luraConfiguration)
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.