62cc5e2778
- 실적 틱톡 탭·tiktok_ads 광고 API·테스트 삭제, 틱톡 데이터 삭제 SQL(performance_db 012) - 말레이시아 실적: 실적 라우터·화면을 /malaysia/performance 에 한 번 더 마운트, 차이는 performance/variant.py(KR·MY) 한 곳 — 저장소·권한키·주소·광고 채널·통화 - 틱톡·쇼피·라자다 그룹(쇼핑몰 + 라이브커머스 하위, 그룹 열 = 합계), 광고비 채널 3개 - 금액 RM 소수 2자리 = 센 정수 저장(입력·엑셀 scale, 화면 num/money, JS money) - malaysia_performance_db = performance_db 구조 복사 + seed Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
19 lines
540 B
Python
19 lines
540 B
Python
"""광고 API 연동 목록 — 새 광고 채널은 파일 하나 + 여기 한 줄(채널 코드는 ad_spend.CHANNELS 와 같아야 한다)."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from .base import AdSource
|
|
from .google_ads import GoogleAdsSource
|
|
from .meta_ads import MetaAdsSource
|
|
|
|
_SOURCES: tuple[AdSource, ...] = (GoogleAdsSource(), MetaAdsSource())
|
|
_BY_CODE = {s.code: s for s in _SOURCES}
|
|
|
|
|
|
def all_sources() -> tuple[AdSource, ...]:
|
|
return _SOURCES
|
|
|
|
|
|
def get_source(code: str) -> AdSource | None:
|
|
return _BY_CODE.get(code)
|