Technical Spec · v1.0 · JSON at /api/spec.json

Ad-Platform pLTV Signal Specification

Exact API routes, eligibility thresholds, JSON payload shapes, SKAdNetwork mapping, match-key normalization rules, and production failure modes for Meta, Google Ads, and TikTok.

Updated Maintained by Churney Markdown: /spec.md MCP: /mcp
Ad Platform Learning Window vs Customer Value Realization Meta and Google optimize on events within Day 0 to Day 7, while real customer value from renewals, repeat orders, and refunds matures across Day 14 to Day 90+. Sending user-level pLTV within hours bridges the gap. AD PLATFORM LEARNING WINDOW Day 0 to Day 7 (1-day / 7-day click) TRUE CUSTOMER VALUE REALIZATION Day 14 to Day 90+: trial-to-paid, renewals, repeat orders, returns Day 0 Click Hour 1-24: pLTV Signal Sent AppendValue / CAPI / Google Ads API Day 7 Cutoff Day 30 Renewals / Refunds Day 90+ Mature LTV

Figure 2: Ad algorithms learn inside Day 0-7. User-level pLTV projects Day 30-90+ economic value back into the first 24 hours.

1. Platform Ingestion Matrix

Machine-readable version available at /api/spec.json.

Platform Campaign Type Server-Side Route Primary Match Keys Documented Thresholds & Notes
Meta Web & Web2App Conversions API (CAPI) + AppendValue or custom event (NPVO) fbp, fbc, event_id / order_id, SHA-256 em, ph, external_id 100+ Meta-attributed conversions/week for 4 consecutive weeks; ≥5 distinct positive values; max ≥ 3x min; deduplicate with event_id
Meta Mobile App MMP S2S postback (AppsFlyer, Adjust, Singular) or App Events API IDFA / GAID, app_user_id, anon_id, SKAN conversion value Use fb_mobile_purchase or custom value event for Value Optimization / App Event Optimization
Google Ads Search, Shopping, PMax, Demand Gen Google Ads API (UploadClickConversions / UploadConversionAdjustments) gclid, gbraid, wbraid, SHA-256 email/phone (Enhanced Conversions) 30+ conversions in 30 days recommended for tROAS; upload within 24h for optimal Smart Bidding learning
Google Ads App Campaigns (UAC) GA4 Measurement Protocol (Firebase-linked) or MMP S2S app_instance_id, Firebase App ID, API Secret Import custom value event from Firebase into Google Ads as primary tROAS conversion
TikTok Web & App TikTok Events API (Web) or MMP S2S (App) ttclid, ttp, SHA-256 email/phone, external_id Value-Based Optimization (VBO) requires sufficient value-bearing events in a 7-day rolling window

2. Reference Payloads (Meta, Google Ads & TikTok)

Meta Conversions API (CAPI): User-Level pLTV Event
{
  "data": [
    {
      "event_name": "PredictedLTV",
      "event_time": 1764936000,
      "event_id": "ord_9f82c1e04b_pltv",
      "action_source": "website",
      "user_data": {
        "em": ["7b9f8c...sha256_lowercase_trimmed_email"],
        "ph": ["9a12d4...sha256_e164_digits_only_phone"],
        "external_id": ["4c88e1...sha256_user_id"],
        "fbp": "fb.1.1764935900.1234567890",
        "fbc": "fb.1.1764935900.IwAR0example"
      },
      "custom_data": {
        "currency": "USD",
        "value": 148.50,
        "predicted_ltv": 148.50,
        "order_id": "ord_9f82c1e04b"
      }
    }
  ]
}
Google Ads API: UploadConversionAdjustments (Restate First Order with pLTV)
{
  "conversionAdjustments": [
    {
      "conversionAction": "customers/1234567890/conversionActions/987654321",
      "adjustmentType": "RESTATEMENT",
      "orderId": "ord_9f82c1e04b",
      "adjustmentDateTime": "2026-12-05 14:30:00+00:00",
      "restatementValue": {
        "adjustedValue": 148.50,
        "currencyCode": "USD"
      }
    }
  ],
  "partialFailure": true
}
TikTok Events API: Server-Side pLTV Value Event
{
  "event_source": "web",
  "event_source_id": "CXXXXXXXXXXXXXXX",
  "data": [
    {
      "event": "CompletePayment",
      "event_id": "ord_9f82c1e04b_pltv",
      "event_time": 1764936000,
      "user": {
        "ttclid": "E.C.P.example_click_id",
        "email": "7b9f8c...sha256_lowercase_trimmed_email",
        "phone": "9a12d4...sha256_e164_digits_only_phone",
        "external_id": "4c88e1...sha256_user_id"
      },
      "properties": {
        "currency": "USD",
        "value": 148.50
      }
    }
  ]
}

3. iOS SKAdNetwork (SKAN 4.0) Conversion Value Mapping

SKAN 4.0 Field Window Recommended pLTV Mapping Strategy
Fine Value (0-63) Postback 1 (0-48h) Map user-level pLTV deciles or log-spaced value buckets across values 1-63 (reserve 0 for non-converting / low-value installs). Maximize information gain in the upper tail.
Coarse Value (low / med / high) Postback 1, 2, 3 Set thresholds so ~50% of scored users fall in low, ~35% in medium, and top ~15% predicted LTV users in high.
Lock Window Postback 1 Lock Postback 1 once the user finishes onboarding / trial start and receives a stable pLTV score to speed up bidding feedback.

4. Match-Key Normalization Rules

Identifier Normalization Before SHA-256 Example Raw → Normalized Hash?
Email (em) Trim leading/trailing whitespace, convert to lowercase " Jane.Doe@Example.com " → "jane.doe@example.com" Yes (SHA-256 hex)
Phone (ph) Strip all non-digits (+, spaces, hyphens, parentheses); keep country code "+1 (415) 555-0199" → "14155550199" Yes (SHA-256 hex)
External ID Trim whitespace, consistent string casting across web and warehouse " usr_10492 " → "usr_10492" Yes (SHA-256 hex)
Click / Browser IDs Pass verbatim (fbp, fbc, gclid, gbraid, wbraid, ttclid) Unmodified string No (plaintext)

5. Production Failure Modes to Audit Before Launch

Failure Mode Symptom Prevention
Backfilling leakage High offline AUC/R², flat or negative live split-test ROAS Train strictly on append-only event snapshots available at score timestamp t (see Leakage Audit SQL)
Feedback loop drift Model calibration degrades 4 to 8 weeks after launch as ad platform shifts traffic mix Monitor realized vs predicted calibration weekly; use causal/counterfactual reweighting
Low Event Match Quality Server events fail to attribute back to clicks; ad set stays in Learning Limited Pass fbp/fbc/gclid plus normalized SHA-256 email & phone; verify EMQ ≥ 7/10
Extreme value outliers One huge predicted whale hijacks Meta/Google bidding variance Winsorize/cap predicted values (e.g. p99) while preserving rank order and ≥3x spread
Refund & bracketing blindness Ecommerce bidder chases high-AOV multi-size buyers who return 80% of the basket Predict net contribution value after expected returns and cancellations, not gross checkout revenue

Frequently Asked Questions

What are Meta's documented requirements for pLTV Value Optimization?

Meta requires a Conversions API (CAPI) integration, at least 100 Meta-attributed conversions per week for 4 consecutive weeks, and at least 5 distinct positive values where the highest value is at least 3x the lowest value. Values can be attached to an existing conversion via AppendValue (matching by event_id or order_id) or sent on a dedicated custom/non-purchase event (NPVO).

How does Google Ads ingest user-level pLTV signals?

For web campaigns (Search, Shopping, Performance Max, Demand Gen), predicted values are uploaded server-side via the Google Ads API (UploadClickConversions or UploadConversionAdjustments) matched on gclid, gbraid, wbraid, or SHA-256 hashed Enhanced Conversions identifiers. For app campaigns, predicted values are sent as Firebase events via the GA4 Measurement Protocol or forwarded through an MMP (AppsFlyer, Adjust, Singular).

How does pLTV work with iOS SKAdNetwork (SKAN 4.0)?

For iOS app campaigns under ATT, pLTV scores computed in the first 24 to 48 hours map directly into SKAN 4.0 Postback 1 fine-grained conversion values (0 to 63) using log-spaced or decile revenue buckets, and coarse values (low, medium, high) when crowd anonymity thresholds are not met.

What is backfilling data leakage in pLTV modeling?

Backfilling leakage happens when historical warehouse tables are overwritten in place (for example, updating a user's subscription_tier or total_orders column retroactively). A model trained on overwritten rows accidentally sees future outcomes at score time, looks accurate offline, and degrades live bidding.