@adstage/web-sdk 2.4.8 → 2.4.9

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,16 +480,11 @@ 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
  // 필수 필드들
490
486
  adType: slot?.adType || 'BANNER',
491
- platform: deviceInfo.platform,
492
- // 디바이스 정보는 deviceInfo 객체로 래핑
487
+ platform: deviceInfo.platform, // 디바이스 정보는 deviceInfo 객체로 래핑
493
488
  deviceInfo: deviceInfo,
494
489
  // 페이지 및 슬롯 정보
495
490
  pageUrl: DOMUtils.getPageInfo().url,
package/dist/index.esm.js CHANGED
@@ -478,16 +478,11 @@ 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
  // 필수 필드들
488
484
  adType: slot?.adType || 'BANNER',
489
- platform: deviceInfo.platform,
490
- // 디바이스 정보는 deviceInfo 객체로 래핑
485
+ platform: deviceInfo.platform, // 디바이스 정보는 deviceInfo 객체로 래핑
491
486
  deviceInfo: deviceInfo,
492
487
  // 페이지 및 슬롯 정보
493
488
  pageUrl: DOMUtils.getPageInfo().url,
@@ -475,16 +475,11 @@ 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
  // 필수 필드들
485
481
  adType: slot?.adType || 'BANNER',
486
- platform: deviceInfo.platform,
487
- // 디바이스 정보는 deviceInfo 객체로 래핑
482
+ platform: deviceInfo.platform, // 디바이스 정보는 deviceInfo 객체로 래핑
488
483
  deviceInfo: deviceInfo,
489
484
  // 페이지 및 슬롯 정보
490
485
  pageUrl: DOMUtils.getPageInfo().url,
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.9",
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,19 +50,12 @@ 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 객체로 래핑
53
+ // 광고 이벤트 데이터 구성 (DTO 구조에 맞춤)
54
+ // 서버에서 자동 설정: orgId (API 키로부터), advertisementId, action (URL 파라미터로부터)
55
+ const eventData = {
56
+ // 필수 필드들
57
+ adType: slot?.adType || 'BANNER',
58
+ platform: deviceInfo.platform, // 디바이스 정보는 deviceInfo 객체로 래핑
66
59
  deviceInfo: deviceInfo,
67
60
 
68
61
  // 페이지 및 슬롯 정보