Skip to main content

prebid-first-party-data

Prebid First Party Data Module

The main purpose of this module is to provide a consistent API for publishers that don't want to interact with pbjs directly. This module

  • supports a static configuration that is built into the ad tag. Useful for static properties like site.cat, site.mobile or site.privacypolicy
  • supports a limited mapping definition from key-values available via moli.setTargeting. This allows to reuse the IAB categories

Integration

In your index.ts import the prebid-fpd-module module and register it.

import { createPrebidFirstPartyDataModule } from '@highfivve/module-prebid-first-party-data'

moli.registerModule(createPrebidFirstPartyDataModule());

The gptTargetingMappings property is optional. For static IAB categories you can also use the staticPrebidFirstPartyData object.

Prebid.js First Party Data Enrichment Module

[The First Party Data Enrichment Module](https://docs.prebid.org/dev-docs/modules/enrichmentFpdModule.html] already extracts some generic values directly from the side and should always be included alongside this module.

See

Functions

createPrebidFirstPartyDataModule()

createPrebidFirstPartyDataModule(): IModule

Returns

IModule