每日資料分類帳與帳戶健康
為所有進行中的廣告擷取完整的每日成效分類帳,並對 Meta 廣告帳戶執行基本健康檢查,包括帳戶狀態與登陸頁的可達性。
為什麼使用此範本
為您的帳戶資料提供完整的每日對帳 — 交叉比對支出、轉換與事件,在它們成為最佳化問題前即浮現差異。
適用對象
資料導向的行銷人員與代理商營運團隊,在做出最佳化決策前,需要對 Meta 報表的準確性與可靠性有信心。
使用方法
每天在做出最佳化決策前執行。若有差異被標記,在對帳完成前請暫緩重大預算變更。使用資料溯源報告追蹤任何不一致的來源。
CONTEXT
Extract a full performance report for all active ads from the previous period, and run a basic health check on the ad account.
PROCESS
Performance Data
Pull performance metrics for every active ad. Include: campaign name, campaign ID, adset name, adset ID, ad name, ad ID, objective, currency, impressions, reach, frequency, clicks, spend, inline link CTR, CPM, CPC, results, and cost per result.
Format numbers consistently: currency to 2 decimal places, percentages to 2 decimal places, everything else as plain integers.
Account Health Check
Run the following checks and flag any issues:
- Account status: check the account's status field — FAIL if value is 3 (UNSETTLED), 8 (PENDING_SETTLEMENT), or 9 (IN_GRACE_PERIOD); otherwise PASS. Also FAIL if the disable reason field is non-empty.
- Landing page: verify the landing page is accessible via HTTP request → PASS if reachable, FAIL if not. (Skip this check if HTTP request capability is unavailable — mark as SKIPPED.)
Output
Render all data as markdown tables inline in the message. Do not write to external files or sheets.
OUTPUT
If no active campaigns: ✅ No active campaigns yesterday. Data ledger empty.
Otherwise output:
📋 DATA LEDGER (yesterday)
| Campaign | Campaign ID | Adset | Adset ID | Ad | Ad ID | Objective | Currency | Impressions | Reach | Frequency | Clicks | Spend | Inline Link CTR | CPM | CPC | Results | Cost/Result |
|---|
📎 Showing first 50 rows — full data available on request.
🏥 ACCOUNT HEALTH CHECK
| Check Item | Status | Details |
|---|---|---|
| Account status | FAIL / PASS | N ads affected: [ad names + status] |
| Landing page | FAIL / PASS / SKIPPED | ... |
NOTES
- If the landing page check fails, mark it as FAIL with reason "unreachable" — do not error out
- If results data is unavailable for a campaign, show
N/A - "Yesterday" applies to daily triggers; for weekly or monthly, substitute the corresponding period (e.g., "last 7 days" or "last month")