Web SDKAdvertisements
Video Ads
Video ads are high‑engagement, visually impactful ad formats. The AdStage SDK uses the HTML5 video element, supports mobile optimization, and offers rich playback options.
🎯 Basic Usage
Simple Video Ad
Handling Click Events
⚙️ Configuration Options
Core Options
| Option | Type | Default | Description |
|---|---|---|---|
width | number | 640 | Video width (px) |
height | number | 360 | Video height (px) |
autoplay | boolean | true | Autoplay enabled |
muted | boolean | true | Start muted |
controls | boolean | false | Show native controls |
onClick | function | undefined | Fired when ad is clicked |
Advanced Options
| Option | Type | Default | Description |
|---|---|---|---|
loop | boolean | true | Loop playback |
playsinline | boolean | true | Inline playback (mobile) |
customControls | object | undefined | Fine‑grained UI control |
Filtering Options
| Option | Type | Default | Description |
|---|---|---|---|
adId | string | undefined | Force a specific ad ID |
language | 'ko' | 'en' | 'ja' | 'zh' | undefined | Language filter |
deviceType | 'MOBILE' | 'DESKTOP' | undefined | Device type filter |
country | 'KR' | 'US' | 'JP' | 'CN' | 'DE' | undefined | Country filter |
Note: Video ad flow is optimized for a single creative (
maxAds: 1).
💡 Practical Examples
Use the simplest CDN approach directly in HTML.
🚀 Advanced Features
Custom Controls
Fine‑tune which controls appear in the player.
Responsive Video
Adapt video dimensions to viewport size.

