Skip to content

Add GAM interceptor integration - frontend #249

@aram356

Description

@aram356

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions