---
name: pltv-meta-capi
description: Implement, audit, and debug Meta pLTV Value Optimization, Conversions API (CAPI) AppendValue, Non-Purchase Value Optimization (NPVO), Event Match Quality (EMQ), and eligibility gates.
version: 1.0.0
license: MIT
homepage: https://pltv.io/skills
maintainer: Churney (https://churney.io)
---

# Meta pLTV Value Optimization & CAPI Debugger

Use this skill when setting up or troubleshooting user-level Predicted Lifetime Value (pLTV) signals for Meta Ads (Web, Web2App, or Mobile App).

## Documented Meta Eligibility Gates
- **Route:** Server-side Conversions API (CAPI) or MMP S2S postback.
- **Volume:** At least 100 Meta-attributed conversions per week for 4 consecutive weeks.
- **Value spread:** At least 5 distinct strictly positive values (`> 0`) where `max_value >= 3.0 * min_value`.
- **Freshness:** Send scores within 1 to 24 hours (always inside Meta's 7-day click optimization window).
- **Match quality:** Target EMQ >= 7.0/10 using verbatim `fbp`/`fbc` + SHA-256 normalized `em`, `ph`, `external_id`.

## Workflow
1. Choose the event pattern:
   - **AppendValue (matched by `order_id`):** Best for Shopify/DTC ecommerce already optimizing on `Purchase`.
   - **Dedicated custom event / NPVO:** Best for subscription trials, SaaS signups, or fintech accounts where Day-0 revenue is $0.
2. Check account eligibility using `check_meta_pltv_eligibility` via `https://pltv.io/mcp` (or `GET https://pltv.io/api/check-meta`).
3. Validate a real sample payload using `validate_pltv_payload` via `https://pltv.io/mcp` (or `POST https://pltv.io/api/validate-payload`).
4. Confirm `event_id` deduplication between browser Pixel and CAPI, and apply p99 Winsorization so rare outlier whales do not destabilize Meta's value bidder.
