Proj. MB - Health Console
The ROAS Solution That The World Has Been Waiting For...
NOW FEATURING Auto-Generated Brand ID:
- Format: BR001, BR002, BR003... (sequential)
- Setup: Only 2 fields required (brand_name + brand_domain)
- Benefits: Zero conflicts, clean hierarchy, easy debugging
Brand Management:
- GET /api/admin/brand-health - Brand lookup system status
- POST /api/admin/sync-brands - Sync brands from BigQuery to KV cache
- POST /api/admin/invalidate-brand-cache - Clear brand cache entries
- POST /api/setup-client - Create new brand (auto-generates brand_id)
Campaign Management (Brand-Centric):
- POST /api/create-experience - Create campaign (4 fields: brand_id, experience_id, slots, test_percentage)
- GET /api/list-experiences?brand_id=BR001 - List campaigns for brand
- GET /api/get-experience?brand_id=BR001&experience_id=PDP - Get campaign config
Debug & Health:
Test URLs (Brand-Aware):
Analytics & Testing:
Manual Testing:
- POST /write - Manual BigQuery write test (auto-brand-ID aware)
🆕 Auto-Generated Brand ID Features:
• 2-field client setup (vs 3+ legacy fields)
• Sequential BR001, BR002, BR003... format
• Zero ID conflicts with BigQuery validation
• Automatic brand data population
• Sub-10ms brand lookups via KV cache
• Enterprise multi-brand client support
• Clean brand/experience storage hierarchy
🚀 Quick Start:
1. POST /api/setup-client with {"brand_name": "Nike", "brand_domain": "nike.com"}
2. Receive auto-generated brand_id: "BR001"
3. POST /api/create-experience with brand_id: "BR001"
4. Start testing immediately!
Status: Auto-generated brand ID system with enterprise-grade management
Storage: KV-first → BigQuery background sync + Auto-ID cache
Features: Auto brand ID generation, client setup, simplified campaign APIs
Architecture: v4.0-brand-centric-auto-id-complete