feat(release): prepare 1.1.0 candidate

This commit is contained in:
Yun Chan 2026-08-29 18:33:45 +09:00
parent 5a34f66981
commit 5205dcdfa9
736 changed files with 115667 additions and 12203 deletions

View file

@ -1,52 +1,7 @@
// apps/desktop/src/main/services/ads/PubMaticAdapter.ts
// PubMatic OpenWrap Header Bidding SSP Adapter
import { UnavailableAdAdapter } from './UnavailableAdAdapter'
import type {
AdNetworkId,
AdFormat,
AdMediationAuctionRequest,
AdCreativePayload,
} from '@d3ro/core/types'
import type { IAdNetworkAdapter, AdBidResponse } from './BaseAdAdapter'
export class PubMaticAdapter implements IAdNetworkAdapter {
readonly networkId: AdNetworkId = 'pubmatic'
readonly networkName = 'PubMatic OpenWrap (Enterprise SSP)'
readonly supportedFormats: AdFormat[] = ['banner_dock', 'export_sponsor']
readonly defaultFloorEcpm = 3.0
async init(): Promise<void> {}
async requestBid(request: AdMediationAuctionRequest): Promise<AdBidResponse> {
const startTime = Date.now()
if (!this.supportedFormats.includes(request.format)) {
return { hasBid: false, bidEcpm: 0, latencyMs: 5 }
}
const ecpm = 3.6 + Math.random() * 2.5
const creative: AdCreativePayload = {
id: `pubmatic_${Date.now()}_${Math.random().toString(36).slice(2, 7)}`,
networkId: this.networkId,
networkName: this.networkName,
title: 'Datadog — Cloud Monitoring, APM & Security in One Platform',
description: 'See metrics, traces, and logs from your entire technology stack.',
ctaText: 'Start Monitoring',
clickUrl: 'https://datadoghq.com?utm_source=pubmatic',
sponsorTag: 'PubMatic OpenWrap',
advertiserName: 'Datadog',
bidEcpm: parseFloat(ecpm.toFixed(2)),
format: request.format,
}
return {
hasBid: true,
bidEcpm: creative.bidEcpm,
creative,
latencyMs: Date.now() - startTime + 58,
}
export class PubMaticAdapter extends UnavailableAdAdapter {
constructor() {
super('pubmatic', 'PubMatic OpenWrap', ['banner_dock', 'export_sponsor'], 3)
}
async reportImpression(adId: string): Promise<void> {}
async reportClick(adId: string): Promise<void> {}
}