@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
- // 서버에서 자동 설정: orgId, advertisementId, action
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
- // 서버에서 자동 설정: orgId, advertisementId, action
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
  // 페이지 및 슬롯 정보
@@ -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
- // 서버에서 자동 설정: orgId, advertisementId, action
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adstage/web-sdk",
3
- "version": "2.4.8",
3
+ "version": "2.4.10",
4
4
  "description": "AdStage Web SDK - Production-ready marketing platform SDK with React Provider support for seamless integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs.js",
@@ -50,20 +50,16 @@ export class AdvertisementEventTracker {
50
50
  // 디바이스 정보 수집
51
51
  const deviceInfo = DeviceInfoCollector.collectDeviceInfo();
52
52
 
53
- // 광고 이벤트 데이터 구성 (DTO 구조에 맞춤)
54
- const eventData = {
55
- // 서버에서 자동 설정: orgId, advertisementId, action
56
- // 하지만 DTO 검증을 위해 임시값 제공
57
- orgId: 'temp', // 서버에서 API 키로부터 덮어씀
58
- advertisementId: adId, // 서버에서 URL 파라미터로부터 덮어씀
59
- action: eventType, // 서버에서 URL 파라미터로부터 덮어씀
60
-
61
- // 필수 필드들
62
- adType: slot?.adType || 'BANNER',
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,