Skip to content

Simplify TSJS core library - remove rendering/auction logic #251

Description

@aram356

Description

⚠️ BREAKING CHANGE: Remove ad rendering and auction logic from the core TSJS library, keeping only configuration and logging.

Removed APIs

  • tsjs.addAdUnits() - ad unit registration
  • tsjs.renderAdUnit() - single ad unit rendering
  • tsjs.renderAllAdUnits() - batch ad unit rendering
  • tsjs.requestAds() - auction request
  • tsjs.getHighestCpmBids() - bid retrieval
  • tsjs.que - command queue

Kept APIs

  • tsjs.version - version string
  • tsjs.setConfig() - configuration
  • tsjs.getConfig() - get current config
  • tsjs.log - logging utilities

Removed Files

  • core/queue.ts, registry.ts, render.ts, request.ts, util.ts
  • core/styles/normalize.css, core/templates/iframe.html
  • integrations/ext/ (Prebid shim - replaced by prebid integration)
  • integrations/testlight/ (obsolete test integration)

Migration

Use the GAM interceptor integration (#249) for rendering Prebid creatives, or the Prebid NPM integration (#250) for server-side bidding.

Bundle size

Reduced from ~32KB to ~23KB (gzipped: ~7.5KB)

Related

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Fields

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions