Sync Meta Ads insights to Google Sheets with backfill and weekly ETL
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, reliable ETL pipeline focused on stability, clarity, and ease of use, rather than building a full data warehouse solution. What This Workflow Does At a high level, the system: - Pulls Meta Ads Insights data via API - Supports both historical back
At a glance
Sync Meta Ads insights to Google Sheets with backfill and weekly ETL is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Google Sheets, Facebook. It's free to download. Follow the 5-step import below to go live in minutes.
- Platform
- n8n
- Connects
- Google Sheets, Facebook
- Modules
- 21
- Price
- Free
- Version
- v1.0

About this workflow
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, reliable ETL pipeline focused on stability, clarity, and ease of use, rather than building a full data warehouse solution. What This Workflow Does At a high level, the system: - Pulls Meta Ads Insights data via API - Supports both historical backfill and automated incremental sync - Splits large date ranges into manageable weekly chunks - Handles pagination and retries automatically - Filters out zero-spend records before storage - Stores clean, structured data in Google Sheets - Logs skipped or empty responses for traceability Architecture Overview Core Components - n8n - Meta Ads API - Google Sheets Primary Data Outputs - AccountA → Campaign-level data (weekly) - AccountB → Ad-level data (daily breakdown) - AccountALog / AccountBLog → Logging for skipped or empty responses End-to-End Flow A) Dual Entry Points The workflow supports two execution modes: 1. Historical Backfill (Manual Trigger) Used to populate past data. - Define startdate and enddate - Workflow generates 7-day chunks - Each chunk is processed sequentially 2. Incremental Sync (Scheduled Trigger) Runs automatically every 7 days. - Dynamically pulls last 7 days - No manual input required B) Period Chunking Large date ranges are split into weekly intervals. - Prevents API overload - Reduces risk of timeouts - Ensures consistent data retrieval C) Data Extraction (Per Account) Each period is processed for two separate data streams: Account A - Level: campaign - Granularity: weekly Account B - Level: ad - Granularity: daily (timeincrement=1) Both using pagination handling & fail-safe response handling D) Response Validation Each API response is validated: - Must contain a non-empty data array - Invalid or empty responses are redirected to logging This prevents corrupted or empty data from entering the dataset. E) Data Transformation API responses are: - Split into individual rows - Normalized (numeric fields converted properly) - Preserved in full structure (no schema trimming) F) Filtering Logic Only meaningful data is stored: - Records where spend != 0 are allowed - Zero-spend rows are discarded This keeps the dataset lean and relevant for reporting. G) Data Loading Valid records are appended into Google Sheets: - Account A → campaign-level table - Account B → ad-level table Each run adds new rows without overwriting previous data. H) Logging & Traceability If a period returns: - empty data - or API anomaly The workflow logs: - status - reason - account - date range - execution ID - timestamp This creates a lightweight audit trail for debugging and monitoring. Safeguards Built In - Pagination handling (auto-follow next page) - Fail-safe handling for unstable API responses - Execution-level traceability via logs - Separation between transformation and filtering logic Google Sheets Schema AccountA / AccountB Includes: - date range (start & stop) - account, campaign, adset, and ad identifiers - performance metrics (spend, impressions, clicks, etc.) - action arrays and ranking fields Log Sheets Columns: - status - reason - account - since - until - executionid - timestamp Limitations (By Design) - Append-only system (no deduplication) - Re-running the same period will create duplicate rows - No transactional guarantees (Google Sheets limitation) - No concurrency control for parallel executions - Not designed for real-time reporting These constraints are intentional to keep the workflow simple and portable. When This Design Works Well - Marketing reporting pipelines - Looker Studio / dashboard data sources - Small to medium datasets - Teams without a data warehouse - Lightweight ETL needs Setup Requirements - Meta Ads API access (adsread permission) - Google Sheets (with required tabs) - n8n instance (cloud or self-hosted) Summary This workflow focuses on: - clarity over complexity - reliability over completeness - practical ETL over perfect data modeling It is a solid foundation for building marketing data pipelines without heavy infrastructure.
How to import this n8n workflow
- 1
Download the workflow JSON file after purchase.
- 2
Open n8n → click the menu → Import from File.
- 3
Select the downloaded JSON and import.
- 4
Set up credentials for each node that requires them.
- 5
Click Execute Workflow to test, then activate.
Setup guide
Setup guide included
Purchase to unlock the full step-by-step guide
Related N8n workflows
Draft multilingual blog posts, a Facebook post and an email with Claude and Wordpress
Create Redtail CRM contacts from new Facebook Lead Ads leads
Save a new submitted forms in ConvertBox to a Google Sheets spreadsheet
Import contacts from Google Sheet to Firetext
Share your Instagram photos to Facebook Groups
Add new rows to a Google Sheets spreadsheet from new opportunities in SharpSpring
Automate weekly SEO report with GPT-4 insights and Slack delivery
Automate AI video ad generation with Google Veo 3, Gemini, and Airtable
Reviews
No reviews yet
Be the first to buy and share your experience.
Leave a review
Sign in to share your experience with this workflow.
Create a free account to purchase workflows.
- JSON blueprint — instant download
- Setup guide PDF included
- 5 downloads · valid 30 days
- Works with n8n
Need help setting this up?
Book a 3-hour live setup session with an Agility consultant.
- Configure live on Google Meet / Zoom
- Free follow-up if workflow has defects
- Platform expert assigned to you