Sync Meta Ads insights to Google Sheets with backfill and weekly ETL
Ready for 3.0What this workflow does
This workflow has 21 nodes and runs on a schedule (every 7 days) (plus 1 other trigger). Along the way it connects Google Sheets. It also calls graph.facebook.com over HTTP.
How it runs
Trigger: On a schedule (every 7 days) (plus 1 other trigger).
- Set Incremental Range (Last 7 Days) (Edit Fields (Set)): sets or maps fields
- Set Date Range (Historical Backfill) (Edit Fields (Set)): sets or maps fields
- Loop Over Periods (Account A) (Loop Over Items (Split in Batches)): loops over the items in batches
- Loop Over Periods (Account B) (Loop Over Items (Split in Batches)): loops over the items in batches
- Generate Weekly Periods (Code): runs custom JavaScript code
- Fetch Meta Insights (Account A) (HTTP Request): calls graph.facebook.com
- Fetch Meta Insights (Account B) (HTTP Request): calls graph.facebook.com
- Valid Response? (Account A) (If): checks a condition and branches into true / false
- Valid Response? (Account B) (If): checks a condition and branches into true / false
- Split API Response (Account A) (Code): runs custom JavaScript code
…plus 9 more steps. See the full node list below.
Services it uses
Other Facebook + Google Sheets templates (127)
HTTP calls to: graph.facebook.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (8)
- Manual Trigger
n8n-nodes-base.manualTrigger - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
Meta Ads Insights to Google Sheets (Backfill & Weekly Sync ETL) This workflow provides a structured way to extract Meta Ads performance data and store it in Google Sheets for reporting, dashboarding, or further analysis. It is designed as a lightweight,…