ads-click-event.dto.ts 539 B

1234567891011121314
  1. // libs/common/src/events/ads-click-event.dto.ts
  2. export interface AdsClickEventPayload {
  3. adsId: string; // Ads ObjectId
  4. adType: string; // BANNER, STARTUP, etc.
  5. channelId: string; // Channel ObjectId
  6. adsModuleId: string; // AdsModule ObjectId
  7. uid: string; // User device ID from JWT
  8. ip: string; // Client IP
  9. appVersion?: string; // App version
  10. os?: string; // iOS / Android / Web
  11. machine?: string; // Device info: brand and system version
  12. clickAt: number | bigint; // epoch millis; will be stored as BigInt in Mongo
  13. }