How cuongcds/advero-sdk works
Advero SDK is a browser-side library publishers initialize and call to request and display ads in page slots. Its main flow optionally waits for a slot to approach the viewport, fetches a placement’s ad from a configured Ad Serving Engine, and renders an advertiser creative or placeholder. Advertiser creatives also get a disclosure badge and viewability measurement. The runtime is implemented in one source file; the README documents some behavior whose implementation lines were not included in the excerpt.
Main entry points: index.js SDK API
Components 11
Publisher integration
- SDK API
src/index.js - Slot resolution
src/index.js - Lazy gate
src/index.js
Ad delivery
- Ad Serving Engine
- Ad response
- View beacon endpoint
Rendering and measurement
- Creative rendering
src/index.js - Disclosure badge
src/index.js - Badge icon asset
- Viewability tracking
src/index.js
Other components
- Publisher site
Connections 10
- Publisher site → SDK API: configures and calls
README.md - SDK API → Slot resolution: resolves slot
src/index.js - SDK API → Lazy gate: optionally awaits
src/index.js - SDK API → Ad Serving Engine: fetches ad
README.md - Ad Serving Engine → Ad response: returns creative data
README.md - Ad response → Creative rendering: supplies render data
README.md - Creative rendering → Disclosure badge: adds for advertisers
src/index.js - Disclosure badge → Badge icon asset: loads icon
src/index.js - Creative rendering → Viewability tracking: starts measurement
src/index.js - Viewability tracking → View beacon endpoint: sends view beacon
README.md