Spaces:
Runtime error
Runtime error
Claude Sonnet 4.6
Rebrand: Marketing Mix Intelligence → PRISM Marketing Intelligence; AIRA → NOVA
47b08cd Download templates/ads.html from StrategyForge/PRISM-Marketing-Mix-Intelligence: direct link, hf CLI and curl.
- Browser
- Download file 8.57 kB
-
https://huggingface.co/spaces/StrategyForge/PRISM-Marketing-Mix-Intelligence/resolve/main/templates/ads.html
- Command line
-
hf download hf://spaces/StrategyForge/PRISM-Marketing-Mix-Intelligence/templates/ads.html
-
curl -L -o ads.html https://huggingface.co/spaces/StrategyForge/PRISM-Marketing-Mix-Intelligence/resolve/main/templates/ads.html
8.57 kB
| {% extends "base.html" %} | |
| {% block page_title %}Ad-Level Analysis{% endblock %} | |
| {% block content %} | |
| <div class="page-header"> | |
| <h2>Ad-Level Analysis</h2> | |
| <p>Individual ad creative performance and fatigue analysis</p> | |
| </div> | |
| <!-- Screen-Specific Filters --> | |
| <div class="screen-filters"> | |
| <div class="filter-group"> | |
| <label>Campaign</label> | |
| <select id="adCampaign"> | |
| <option value="">All Campaigns</option> | |
| {% for c in media_options.campaigns %} | |
| <option value="{{ c }}">{{ c }}</option> | |
| {% endfor %} | |
| </select> | |
| </div> | |
| <div class="filter-group"> | |
| <label>Channel</label> | |
| <select id="adChannel"> | |
| <option value="">All Channels</option> | |
| {% for ch in media_options.channels %} | |
| <option value="{{ ch }}">{{ ch }}</option> | |
| {% endfor %} | |
| </select> | |
| </div> | |
| <div class="filter-group"> | |
| <label>Ad Format</label> | |
| <select id="adFormatFilter"> | |
| <option value="">All Formats</option> | |
| {% for fmt in media_options.ad_formats %} | |
| <option value="{{ fmt }}">{{ fmt }}</option> | |
| {% endfor %} | |
| </select> | |
| </div> | |
| <div class="filter-group"> | |
| <label>Objective</label> | |
| <select id="adObjective"> | |
| <option value="">All</option> | |
| {% for obj in media_options.objectives %} | |
| <option value="{{ obj }}">{{ obj }}</option> | |
| {% endfor %} | |
| </select> | |
| </div> | |
| <div class="filter-actions"> | |
| <button class="btn-apply" onclick="applyAdFilters()">Apply</button> | |
| <button class="btn-reset" onclick="resetAdFilters()">Reset</button> | |
| </div> | |
| </div> | |
| <!-- KPI Cards --> | |
| <div class="kpi-grid" id="adKpiGrid"></div> | |
| <!-- NOVA Insights --> | |
| <div class="nova-insights"> | |
| <div class="nova-insight-card" onclick="sendNOVA('Which ad creatives are showing signs of fatigue?')"> | |
| <div class="nova-insight-header"> | |
| <div class="nova-insight-icon insight">📊</div> | |
| <span class="nova-insight-label">NOVA Insight</span> | |
| </div> | |
| <div class="nova-insight-text"><strong>Video ads outperform</strong> - Video format shows 2.3x higher engagement rate vs static images. Consider shifting budget allocation.</div> | |
| </div> | |
| <div class="nova-insight-card" onclick="sendNOVA('Which ads should be refreshed or paused?')"> | |
| <div class="nova-insight-header"> | |
| <div class="nova-insight-icon warning">⚠</div> | |
| <span class="nova-insight-label">Fatigue Alert</span> | |
| </div> | |
| <div class="nova-insight-text"><strong>CTR drop detected</strong> - 5 ads showing CTR decline >30% after 30+ days active. Consider creative refresh.</div> | |
| </div> | |
| </div> | |
| <!-- Chart: Top Ads (Full Width) --> | |
| <div class="charts-grid"> | |
| <div class="chart-container full-width"> | |
| <div class="chart-header"> | |
| <span class="chart-title">Top Ads by Performance</span> | |
| <div class="chart-actions"> | |
| <select id="topAdsMetric" class="chart-metric-select" onchange="fetchAdData()"> | |
| <option value="spend">Spend</option> | |
| <option value="roas">ROAS</option> | |
| <option value="ctr">CTR</option> | |
| <option value="conversions">Conversions</option> | |
| <option value="clicks">Clicks</option> | |
| </select> | |
| <button class="chart-action-btn" onclick="expandChart('chart_top_ads')" title="Fullscreen"> | |
| <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" y1="3" x2="14" y2="10"/><line x1="3" y1="21" x2="10" y2="14"/></svg> | |
| </button> | |
| <button class="chart-action-btn" onclick="downloadChart('chart_top_ads')" title="Download"> | |
| <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="chart-area" id="chart_top_ads"><div class="loading-overlay"><div class="spinner"></div></div></div> | |
| </div> | |
| </div> | |
| <!-- Charts Row: Format Performance & A/B Test --> | |
| <div class="charts-grid"> | |
| <div class="chart-container"> | |
| <div class="chart-header"> | |
| <span class="chart-title">Ad Format Performance Comparison</span> | |
| <div class="chart-actions"> | |
| <button class="chart-action-btn" onclick="expandChart('chart_format_perf')" title="Fullscreen"> | |
| <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" y1="3" x2="14" y2="10"/><line x1="3" y1="21" x2="10" y2="14"/></svg> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="chart-area" id="chart_format_perf"><div class="loading-overlay"><div class="spinner"></div></div></div> | |
| </div> | |
| <div class="chart-container"> | |
| <div class="chart-header"> | |
| <span class="chart-title">A/B Test Comparison</span> | |
| <div class="chart-actions"> | |
| <button class="chart-action-btn" onclick="expandChart('chart_ab_test')" title="Fullscreen"> | |
| <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" y1="3" x2="14" y2="10"/><line x1="3" y1="21" x2="10" y2="14"/></svg> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="chart-area" id="chart_ab_test"><div class="loading-overlay"><div class="spinner"></div></div></div> | |
| </div> | |
| </div> | |
| <!-- Chart: Creative Fatigue (Full Width) --> | |
| <div class="charts-grid"> | |
| <div class="chart-container full-width"> | |
| <div class="chart-header"> | |
| <span class="chart-title">Creative Fatigue Analysis</span> | |
| <div class="chart-actions"> | |
| <button class="chart-action-btn" onclick="expandChart('chart_fatigue')" title="Fullscreen"> | |
| <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" y1="3" x2="14" y2="10"/><line x1="3" y1="21" x2="10" y2="14"/></svg> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="chart-area" id="chart_fatigue"><div class="loading-overlay"><div class="spinner"></div></div></div> | |
| </div> | |
| </div> | |
| <!-- Ad Performance Detail Table --> | |
| <div class="table-container"> | |
| <div class="table-header"> | |
| <h3>Ad Performance Detail</h3> | |
| <input type="text" class="table-search" placeholder="Search ads..." oninput="filterTable(this, 'adTable')"> | |
| </div> | |
| <div class="table-wrapper"> | |
| <table class="data-table" id="adTable"> | |
| <thead> | |
| <tr> | |
| <th onclick="sortTable('adTable', 0)">Ad ID</th> | |
| <th onclick="sortTable('adTable', 1)">Format</th> | |
| <th onclick="sortTable('adTable', 2)">Campaign</th> | |
| <th onclick="sortTable('adTable', 3)">Channel</th> | |
| <th onclick="sortTable('adTable', 4)" class="num">Spend</th> | |
| <th onclick="sortTable('adTable', 5)" class="num">Impressions</th> | |
| <th onclick="sortTable('adTable', 6)" class="num">Clicks</th> | |
| <th onclick="sortTable('adTable', 7)" class="num">CTR%</th> | |
| <th onclick="sortTable('adTable', 8)" class="num">Eng.Rate</th> | |
| <th onclick="sortTable('adTable', 9)" class="num">Conv.</th> | |
| <th onclick="sortTable('adTable', 10)" class="num">ROAS</th> | |
| <th onclick="sortTable('adTable', 11)" class="num">Days</th> | |
| <th onclick="sortTable('adTable', 12)">Status</th> | |
| </tr> | |
| </thead> | |
| <tbody id="adTableBody"></tbody> | |
| </table> | |
| </div> | |
| <div class="table-footer"> | |
| <span id="adTableInfo">Showing 0 ads</span> | |
| <div class="table-pagination" id="adTablePagination"></div> | |
| </div> | |
| </div> | |
| {% endblock %} | |
| {% block scripts %} | |
| <script src="{{ url_for('static', filename='js/ads.js') }}"></script> | |
| {% endblock %} | |