@adstage/web-sdk 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -68,15 +68,8 @@ declare enum Platform {
68
68
  MOBILE = "MOBILE"
69
69
  }
70
70
  declare enum AdEventType {
71
- IMPRESSION = "IMPRESSION",
72
- CLICK = "CLICK",
73
- HOVER = "HOVER",
74
71
  VIEWABLE = "VIEWABLE",
75
- VIEWABLE_IMPRESSION = "VIEWABLE_IMPRESSION",
76
- COMPLETED = "COMPLETED",
77
- VIDEO_START = "VIDEO_START",
78
- VIDEO_COMPLETE = "VIDEO_COMPLETE",
79
- ERROR = "ERROR"
72
+ CLICK = "CLICK"
80
73
  }
81
74
  declare enum DeviceType {
82
75
  DESKTOP = "DESKTOP",
@@ -123,7 +116,7 @@ interface ViewabilityMetrics {
123
116
  isViewable: boolean;
124
117
  visibilityRatio: number;
125
118
  duration: number;
126
- impressions: number;
119
+ viewables: number;
127
120
  attentionTime: number;
128
121
  scrollDepth: number;
129
122
  completionRate: number;
@@ -199,7 +192,7 @@ interface AdSlot {
199
192
  config?: AdSlotConfig;
200
193
  advertisement?: Advertisement;
201
194
  isViewable?: boolean;
202
- impressionSent?: boolean;
195
+ viewableSent?: boolean;
203
196
  loadTime?: number;
204
197
  renderTime?: number;
205
198
  events?: AdEvent[];
@@ -224,12 +217,15 @@ interface AdOptions {
224
217
  autoplay?: boolean;
225
218
  muted?: boolean;
226
219
  onClick?: (adData: any) => void;
220
+ language?: 'ko' | 'en' | 'ja' | 'zh';
221
+ deviceType?: 'MOBILE' | 'DESKTOP';
222
+ country?: 'KR' | 'US' | 'JP' | 'CN' | 'DE';
227
223
  }
228
224
  declare class AdsModule implements BaseModule {
229
225
  private _isReady;
230
226
  private _config;
231
227
  private slots;
232
- private eventTracker;
228
+ private advertisementEventTracker;
233
229
  /**
234
230
  * Ads 모듈 초기화 (동기)
235
231
  */
@@ -291,7 +287,15 @@ declare class AdsModule implements BaseModule {
291
287
  */
292
288
  private loadAdContentInBackground;
293
289
  /**
294
- * Fallback 광고 렌더링
290
+ * 기본 viewability 추적 시작
291
+ */
292
+ private startBasicViewabilityTracking;
293
+ /**
294
+ * Viewable 이벤트 처리
295
+ */
296
+ private handleViewableEvent;
297
+ /**
298
+ * Fallback 광고 렌더링 - DOM에서 완전 제거
295
299
  */
296
300
  private renderFallback;
297
301
  /**