Ad Delivery Analysis
Language Policy
CRITICAL: Always respond in the user's language.
- If user writes in English → Respond in English
- If user writes in Chinese → Respond in Chinese
- Never translate the user's language; match their input language exactly
Core Scenarios
1. Channel Performance Overview
Analyze core ad metrics by channel, OS, and region dimensions.
Common metrics:
- Impressions:
ad_impression+total_count - Clicks:
ad_click+total_count - Installs:
app_install+user_count - Registrations:
register+user_count - Revenue:
payment+sum+amount
Common grouping dimensions:
- Channel:
channel,utm_source,media_source - Campaign:
campaign_id,campaign_name - Creative:
creative_id - OS:
#os - Region:
#city,#province,#country
Workflow:
- Compose the semantic
eventAI-facing definition analysis adhoc run --model-type event --definition '<json>'— compile and query metrics withgroups- Use
analysis-meta event/property listonly after structured clarification - For comparisons, run explicitly aligned periods and verify timezone/scope
2. Ad Conversion Funnel
Analyze the full conversion path from impression → click → install → register → payment to identify drop-off points.
Workflow:
- Confirm event names for each funnel step
- Use
--model-type funnel - Set
funnel.window- Click to install: 1-7 days recommended
- Install to register: 1 day recommended
- Register to first payment: 7-30 days recommended
- Add channel to
funnel.groupswhen segmentation is required - After a successful query, use only the advertised query-context drilldown actions
3. Ad Attribution Analysis
Determine which ad touchpoint contributes most to conversions.
Three attribution models:
| Model | Description | Best For |
|---|---|---|
first |
First touch — 100% credit to first ad touchpoint | Brand awareness campaigns |
last |
Last touch — 100% credit to last ad touchpoint | Performance-driven campaigns |
linear |
Equal credit to all touchpoints | Fair multi-channel evaluation |
Workflow:
- Select
attribution.target_event, e.g.paymentorregister - Select
attribution.attribution_events, e.g.ad_impression,ad_click - Set
attribution.window(typically 7-30 days for mobile) - Set
direct_conversion=trueto include conversions without touchpoints - Run
analysis adhoc run --model-type attribution - Drill down to view specific user touchpoint sequences
4. Channel Retention Analysis
Measure long-term user quality by acquisition channel.
Workflow:
- Use
--model-type retention - Set
retention.initial_eventandretention.return_event - Set
retention.unit_num, e.g. 7 for day-7 retention - Set
rtn_rate_or_numtorateorcount - Set
stat_typetoretentionorlost - Add the channel property to
retention.groups
Use a top-level AI-facing filter only when its field type and exact value have been verified. Do not copy raw-QP event type codes.
5. ROI & LTV Analysis
Calculate user lifetime value and campaign ROI by channel.
LTV Analysis:
- Use tags/clusters to mark users' first channel
- Persist a tag or cluster only after user confirmation
- Query cumulative payments within N days per cluster
ROI formulas:
- CPA = Ad Spend / Acquired Users
- ARPU = Total Revenue / Users
- ROAS = Revenue / Ad Spend
6. Creating Monitoring Reports & Dashboards
Workflow:
- Run and verify the AI-facing definition first
- Ask for confirmation before creating or updating assets
analysis report create— create a standalone report with--model-typeand--definitionanalysis dashboard create --initial-report-id <report_id>— create a dashboard
Query Template Reference
See references/query-templates.md for AI-facing JSON templates.
Notes
- Event and property names must resolve exactly: inspect compiler resolution; use
analysis-metaonly after clarification - Time calculation rules:
past N days=[today-N-1, today-1](excludes today)recent N days=[today-N+1, today](includes today)
- Attribution window depends on business conversion cycle: typically 7 days for gaming, 30 days for e-commerce
- Do not pass raw QP:
--definitionaccepts only the documented AI-facing structure - Drilldown: use only coordinates and actions advertised by the returned query context
- Results can be written to Feishu docs using the
lark-docskill - Multi-model combined analysis: Channel overview → Funnel diagnosis → Attribution confirmation → Retention validation forms a complete analysis loop