@adstage/web-sdk 1.4.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/README.md +460 -98
- package/dist/index.cjs.js +468 -92
- package/dist/index.d.ts +16 -12
- package/dist/index.esm.js +468 -92
- package/dist/index.standalone.js +468 -92
- package/package.json +12 -13
- package/src/managers/ads/advertisement-event-tracker.ts +142 -0
- package/src/managers/ads/basic-fraud-detector.ts +191 -0
- package/src/managers/{carousel-slider-manager.ts → ads/carousel-slider-manager.ts} +4 -4
- package/src/managers/{text-transition-manager.ts → ads/text-transition-manager.ts} +4 -4
- package/src/managers/ads/viewability-tracker.ts +189 -0
- package/src/managers/ads/viewable-event-tracker.ts +89 -0
- package/src/modules/ads/AdsModule.ts +151 -28
- package/src/types/advertisement.ts +4 -17
- package/src/types/api.ts +1 -5
- package/src/managers/event-tracker.ts +0 -129
- package/src/managers/impression-tracker.ts +0 -88
- package/src/modules/deeplinks/DeeplinksModule.ts +0 -0
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
*
|
|
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
|
/**
|