Learn

← Track B: Client-Side Prebid.js
L3

B8

Modules, analytics adapters, and config (setConfig)

In this lesson you will
  • Navigate the module system: User ID, floors, consent, currency, and analytics.
  • Use setConfig() and bidderSettings (CPM adjustments, custom targeting).
  • Wire one analytics adapter.

Core Prebid runs the auction. Everything else, identity, floors, consent, currency, analytics, is a module you opt into. setConfig() is the one control panel that wires them all together.

Module familyWhat it adds
User IDIdentity modules (UID2, ID5, and more) that improve match rate as cookies decline.
Price FloorsA floor module that sets the minimum acceptable bid, statically or dynamically.
Consent ManagementGDPR / TCF and US-privacy signals, so bidders get the consent string.
CurrencyConverts bids into one currency for a fair auction.
AnalyticsAdapters that report auction outcomes to your analytics endpoint.

setConfig() sets global config (timeout, priceGranularity, userSync, schain, floors). bidderSettings tunes per-bidder behavior, including `bidCpmAdjustment`, a multiplier on a bidder’s reported CPM.

Key idea

A bidCpmAdjustment of 0.9 scales a bidder’s bids down 10%, perhaps because it reports gross while others report net. It makes that bidder win less often, so it directly changes auction outcomes. Use it to compare bidders fairly, not to handicap one by accident.

Quick check

You set `bidCpmAdjustment` to 0.9 for bidder X. Does X win more or less often?

Note

Paste a setConfig block into the Prebid analyzer to see which modules (consent, schain, floors, identity) are wired, the same picture Inspect reads from a live page.

Key concepts
The module systemsetConfig()bidderSettings and bidCpmAdjustmentAnalytics adapters
Going deeper

To really lock this in: configure a 10% bidCpmAdjustment and explain its competitive effect, then list the modules for a GDPR-compliant, floored, UID2-enabled build.

Where this leads
PRACTICE

Proposed config composer.

ANALYZE

Paste a setConfig block into the Prebid analyzer to see which modules (consent, schain, floors, identity) are present.

Open →
Bidcliq Academy · B8: Modules, analytics adapters, and config (setConfig)