@adstage/web-sdk 2.4.8 → 2.4.10
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.cjs.js
CHANGED
|
@@ -480,15 +480,12 @@ class AdvertisementEventTracker {
|
|
|
480
480
|
// 디바이스 정보 수집
|
|
481
481
|
const deviceInfo = DeviceInfoCollector.collectDeviceInfo();
|
|
482
482
|
// 광고 이벤트 데이터 구성 (DTO 구조에 맞춤)
|
|
483
|
+
// 서버에서 자동 설정: orgId (API 키로부터), advertisementId, action (URL 파라미터로부터)
|
|
483
484
|
const eventData = {
|
|
484
|
-
//
|
|
485
|
-
// 하지만 DTO 검증을 위해 임시값 제공
|
|
486
|
-
orgId: 'temp', // 서버에서 API 키로부터 덮어씀
|
|
487
|
-
advertisementId: adId, // 서버에서 URL 파라미터로부터 덮어씀
|
|
488
|
-
action: eventType, // 서버에서 URL 파라미터로부터 덮어씀
|
|
489
|
-
// 필수 필드들
|
|
485
|
+
// 필수 필드들 (DTO 검증용)
|
|
490
486
|
adType: slot?.adType || 'BANNER',
|
|
491
487
|
platform: deviceInfo.platform,
|
|
488
|
+
deviceId: deviceInfo.deviceId, // DTO 검증을 위해 deviceId 직접 전송
|
|
492
489
|
// 디바이스 정보는 deviceInfo 객체로 래핑
|
|
493
490
|
deviceInfo: deviceInfo,
|
|
494
491
|
// 페이지 및 슬롯 정보
|
package/dist/index.esm.js
CHANGED
|
@@ -478,15 +478,12 @@ class AdvertisementEventTracker {
|
|
|
478
478
|
// 디바이스 정보 수집
|
|
479
479
|
const deviceInfo = DeviceInfoCollector.collectDeviceInfo();
|
|
480
480
|
// 광고 이벤트 데이터 구성 (DTO 구조에 맞춤)
|
|
481
|
+
// 서버에서 자동 설정: orgId (API 키로부터), advertisementId, action (URL 파라미터로부터)
|
|
481
482
|
const eventData = {
|
|
482
|
-
//
|
|
483
|
-
// 하지만 DTO 검증을 위해 임시값 제공
|
|
484
|
-
orgId: 'temp', // 서버에서 API 키로부터 덮어씀
|
|
485
|
-
advertisementId: adId, // 서버에서 URL 파라미터로부터 덮어씀
|
|
486
|
-
action: eventType, // 서버에서 URL 파라미터로부터 덮어씀
|
|
487
|
-
// 필수 필드들
|
|
483
|
+
// 필수 필드들 (DTO 검증용)
|
|
488
484
|
adType: slot?.adType || 'BANNER',
|
|
489
485
|
platform: deviceInfo.platform,
|
|
486
|
+
deviceId: deviceInfo.deviceId, // DTO 검증을 위해 deviceId 직접 전송
|
|
490
487
|
// 디바이스 정보는 deviceInfo 객체로 래핑
|
|
491
488
|
deviceInfo: deviceInfo,
|
|
492
489
|
// 페이지 및 슬롯 정보
|
package/dist/index.standalone.js
CHANGED
|
@@ -475,15 +475,12 @@ class AdvertisementEventTracker {
|
|
|
475
475
|
// 디바이스 정보 수집
|
|
476
476
|
const deviceInfo = DeviceInfoCollector.collectDeviceInfo();
|
|
477
477
|
// 광고 이벤트 데이터 구성 (DTO 구조에 맞춤)
|
|
478
|
+
// 서버에서 자동 설정: orgId (API 키로부터), advertisementId, action (URL 파라미터로부터)
|
|
478
479
|
const eventData = {
|
|
479
|
-
//
|
|
480
|
-
// 하지만 DTO 검증을 위해 임시값 제공
|
|
481
|
-
orgId: 'temp', // 서버에서 API 키로부터 덮어씀
|
|
482
|
-
advertisementId: adId, // 서버에서 URL 파라미터로부터 덮어씀
|
|
483
|
-
action: eventType, // 서버에서 URL 파라미터로부터 덮어씀
|
|
484
|
-
// 필수 필드들
|
|
480
|
+
// 필수 필드들 (DTO 검증용)
|
|
485
481
|
adType: slot?.adType || 'BANNER',
|
|
486
482
|
platform: deviceInfo.platform,
|
|
483
|
+
deviceId: deviceInfo.deviceId, // DTO 검증을 위해 deviceId 직접 전송
|
|
487
484
|
// 디바이스 정보는 deviceInfo 객체로 래핑
|
|
488
485
|
deviceInfo: deviceInfo,
|
|
489
486
|
// 페이지 및 슬롯 정보
|
package/package.json
CHANGED
|
@@ -50,20 +50,16 @@ export class AdvertisementEventTracker {
|
|
|
50
50
|
// 디바이스 정보 수집
|
|
51
51
|
const deviceInfo = DeviceInfoCollector.collectDeviceInfo();
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
platform: deviceInfo.platform,
|
|
64
|
-
|
|
65
|
-
// 디바이스 정보는 deviceInfo 객체로 래핑
|
|
66
|
-
deviceInfo: deviceInfo,
|
|
53
|
+
// 광고 이벤트 데이터 구성 (DTO 구조에 맞춤)
|
|
54
|
+
// 서버에서 자동 설정: orgId (API 키로부터), advertisementId, action (URL 파라미터로부터)
|
|
55
|
+
const eventData = {
|
|
56
|
+
// 필수 필드들 (DTO 검증용)
|
|
57
|
+
adType: slot?.adType || 'BANNER',
|
|
58
|
+
platform: deviceInfo.platform,
|
|
59
|
+
deviceId: deviceInfo.deviceId, // DTO 검증을 위해 deviceId 직접 전송
|
|
60
|
+
|
|
61
|
+
// 디바이스 정보는 deviceInfo 객체로 래핑
|
|
62
|
+
deviceInfo: deviceInfo,
|
|
67
63
|
|
|
68
64
|
// 페이지 및 슬롯 정보
|
|
69
65
|
pageUrl: DOMUtils.getPageInfo().url,
|