Description
Add client-side GAM interceptor that intercepts GPT slotRenderEnded events to render Prebid creatives.
Changes
- Add GAM interceptor module (
integrations/gam/index.ts)
- Support multiple rendering methods: iframe src replacement, doc.write, pbjs.renderAd
- Add
GamConfig interface for configuration via tsjs.setConfig({ gam: {...} })
- Forward GAM config from core config to GAM integration via lazy loader
- Add comprehensive tests
Features
- Filter by specific bidders
- Force render even when GAM has a line item
- Auto-initialization on module load
- Stats tracking for debugging (
tsGam.getStats())
Why
Enables rendering Prebid creatives when GAM doesn't have matching line items, without requiring GAM trafficking.
Related
Description
Add client-side GAM interceptor that intercepts GPT
slotRenderEndedevents to render Prebid creatives.Changes
integrations/gam/index.ts)GamConfiginterface for configuration viatsjs.setConfig({ gam: {...} })Features
tsGam.getStats())Why
Enables rendering Prebid creatives when GAM doesn't have matching line items, without requiring GAM trafficking.
Related