ad-pool-config.ts 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. // libs/common/src/ads/ad-pool-config.ts
  2. import { AdType } from '@prisma/mongo/client';
  3. import type { AdPoolPlacement } from './ad-types';
  4. export const ADTYPE_POOLS: Record<AdType, AdPoolPlacement[]> = {
  5. [AdType.STARTUP]: [{ scene: 'home', slot: 'startup' }],
  6. [AdType.CAROUSEL]: [{ scene: 'home', slot: 'carousel' }],
  7. [AdType.POPUP_ICON]: [{ scene: 'home', slot: 'middle' }],
  8. [AdType.POPUP_IMAGE]: [{ scene: 'home', slot: 'middle' }],
  9. [AdType.POPUP_OFFICIAL]: [{ scene: 'home', slot: 'middle' }],
  10. [AdType.WATERFALL_ICON]: [{ scene: 'home', slot: 'waterfall' }],
  11. [AdType.WATERFALL_TEXT]: [{ scene: 'home', slot: 'waterfall' }],
  12. [AdType.WATERFALL_VIDEO]: [{ scene: 'home', slot: 'waterfall' }],
  13. [AdType.FLOATING_BOTTOM]: [{ scene: 'home', slot: 'floating' }],
  14. [AdType.FLOATING_EDGE]: [{ scene: 'home', slot: 'edge' }],
  15. [AdType.BANNER]: [{ scene: 'home', slot: 'top' }],
  16. [AdType.PREROLL]: [{ scene: 'video_detail', slot: 'preroll' }],
  17. [AdType.PAUSE]: [{ scene: 'video_detail', slot: 'pause_overlay' }],
  18. };