✅ Now Live on Google Workspace Marketplace! Install Free in 1 Click ➔ • Early-Bird Lifetime Pro just $19 (use code EARLYBIRD).
PayloadFlatten
Install on Google Sheets
Meta Ads • Facebook & Instagram Leads

Flatten Meta Lead Ads JSON into Google Sheets

Meta Lead Ads webhooks return form answers inside a nested field_data[] array alongside ad_id and campaign_id. Flatten every lead into 1 clean row.

Install Free on Google Marketplace ➔ Test Interactive Demo Below View Early-Bird ($19)
Runs on Google Apps Script Native =FLATTEN_JSON() formula Zero server maintenance

Live Interactive Simulator

Pre-loaded with sample payload: Meta Graph API Leadgen Payload

Load sample:
Edit or paste your own
✅ Extracted 12 columns in 4ms
B1: =FLATTEN_JSON(A2:A)
idcreated_timead_idcampaign_namefield_data.0.namefield_data.0.valuesfield_data.1.namefield_data.1.valuesfield_data.2.namefield_data.2.valuesfield_data.3.namefield_data.3.values
lead_fb_99281022026-11-01T10:05:12+000023851920192Q4_B2B_SaaS_Retargetingfull_nameMichael Vancework_emailmvance@logisticspro.comphone_number+13125550192fleet_size50-200 vehicles

Why Operators Choose PayloadFlatten

Stop burning manual engineering hours or expensive SaaS subscriptions on simple webhook parsing.

Meta's Nested field_data[] Array

  • ✕ Meta Lead Ads wraps every question and answer inside field_data: [{name, values: [...]}].
  • ✕ Paying $29-$79/mo for Zapier Premium or LeadsBridge just to pipe Facebook leads to Sheets.
  • ✕ Ad attribution fields (ad_id, form_id, adgroup_id) are separated from lead contact info.
  • ✕ Manual CSV downloads from Meta Ads Manager expire after 90 days.
Modern Client-Side

The PayloadFlatten Advantage

  • ✓ Flattens lead ID, campaign metadata, and all field_data answers into 1 row.
  • ✓ Automatically joins single-element value arrays (["john@doe.com"] ➔ john@doe.com).
  • ✓ Keep 100% of your lead history permanently in Google Sheets with zero monthly fee.
  • ✓ Agency-friendly: Works across unlimited client lead sheets.

Simple, Transparent Pricing

No monthly retainers. No cloud relays. Own it for life.

Free Forever

For solo operators testing the formula.

$0 / lifetime
  • Native =FLATTEN_JSON() formula
  • Instant 30-second Apps Script setup
  • Up to 50 rows per batch run
  • 100% Google Apps Script privacy
Install Free from Marketplace ➔
Early-Bird Deal • 60% Off

Early-Bird Solo

Complete freedom for individual operators.

$19 $49 One-time payment

Use code EARLYBIRD at checkout

  • 1 Google Account license
  • Unlimited rows & runs (no cap)
  • Full recursive object & array un-nesting
  • Dot notation customization
  • Lifetime license key & updates
Claim $19 Solo License ➔

Team & Agency

For agencies managing client automations.

$49 $149 One-time payment

Multi-account agency license

  • Up to 5 Google Accounts
  • Unlimited rows, runs & sheets
  • Automated spreadsheet installable triggers
  • Commercial & client delivery allowed
  • Priority 1-on-1 email support
Get Team License ($49) ➔

Frequently Asked Questions

Common questions about Facebook Lead Ads JSON to Google Sheets and spreadsheet un-nesting.

How does PayloadFlatten handle Meta's values: ['...'] array inside field_data?

Because PayloadFlatten automatically converts primitive arrays into clean strings, single-value arrays like ["mvance@logisticspro.com"] appear as clean text without brackets or quotes.

Google Workspace Marketplace Approved

Ready to un-nest JSON inside Google Sheets™?

Install PayloadFlatten directly from the official Google Workspace Marketplace in one click—free up to 50 rows per run, zero external servers.

Popular Integrations & Use Cases

Explore native un-nesting solutions for popular webhook payloads and data pipelines.

50 Pre-Configured Simulator Engines

Formula & Script Alternatives

Native formula replacements for fragile legacy scripts.

E-Commerce & Payment Webhooks

Un-nest order, customer, and transaction payloads.

Automation & Webhook Connectors

Stop burning operations in Make, n8n, and Zapier.

CRM, Forms & Developer Webhooks

Parse polymorphic form answers, lead updates, and git events.