Vexel Connect
Monetize any screen in 3 lines of code.
Drop the SDK into any web page, kiosk, or signage app. Vexel handles ad rotation, impression tracking, offline caching, and payouts.
quickstart.html
<div id="vexel-ad" style="width:100%;height:100vh"></div>
<script src="https://vexel.app/connect.js"></script>
<script>VexelConnect({ apiKey: "YOUR_SCREEN_API_KEY", container: "#vexel-ad" })</script>Get your API key
Register a screen under
Dashboard → Screens. Each screen gets a unique key starting with trb_dev_.Works offline
The SDK caches the active creative set in IndexedDB and buffers impressions until the network returns.
Lightweight
~4 KB minified, zero dependencies, no build step. Drop the
<script> tag and you're live.Events
Listen for ad changes and impressions:
const c = VexelConnect({ apiKey, container: "#vexel-ad" });
c.on("impression", e => console.log(e));
c.on("ads", list => console.log(list));API reference
POST/api/public/ads/serve
{ "api_key": "..." }Returns active approved creatives for the screen.
POST/api/public/ads/impression
{ "api_key": "...", "events": [...] }Batch-record impressions.
GET/connect.js
The SDK bundle. Cached 5 min.