| 12345678910111213141516171819202122232425262728293031 |
- // libs/common/src/ads/ad-pool-config.ts
- import { AdType } from '@prisma/mongo/client';
- import type { AdPoolPlacement } from './ad-types';
- export const ADTYPE_POOLS: Record<AdType, AdPoolPlacement[]> = {
- [AdType.STARTUP]: [{ scene: 'home', slot: 'startup' }],
- [AdType.CAROUSEL]: [{ scene: 'home', slot: 'carousel' }],
- [AdType.POPUP_ICON]: [{ scene: 'home', slot: 'middle' }],
- [AdType.POPUP_IMAGE]: [{ scene: 'home', slot: 'middle' }],
- [AdType.POPUP_OFFICIAL]: [{ scene: 'home', slot: 'middle' }],
- [AdType.WATERFALL_ICON]: [{ scene: 'home', slot: 'waterfall' }],
- [AdType.WATERFALL_TEXT]: [{ scene: 'home', slot: 'waterfall' }],
- [AdType.WATERFALL_VIDEO]: [{ scene: 'home', slot: 'waterfall' }],
- [AdType.FLOATING_BOTTOM]: [{ scene: 'home', slot: 'floating' }],
- [AdType.FLOATING_EDGE]: [{ scene: 'home', slot: 'edge' }],
- [AdType.BANNER]: [{ scene: 'home', slot: 'top' }],
- [AdType.PREROLL]: [{ scene: 'video_detail', slot: 'preroll' }],
- [AdType.PAUSE]: [{ scene: 'video_detail', slot: 'pause_overlay' }],
- };
|