AutomationMart
Home/Browse/Sync Meta Ads insights to Google Sheets with backfill and weekly ETL
n8n

Sync Meta Ads insights to Google Sheets with backfill and weekly ETL

n8nn8n21 modulesv1.0
Google SheetsFacebook

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
Sync Meta Ads insights to Google Sheets with backfill and weekly ETL workflow diagram

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.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 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 blog posts in three languages, a Facebook update, and an email campaign with Claude and WordPress. This is all done with a simple email prompt. The template is part of this webinar.

Free

Create Redtail CRM contacts from new Facebook Lead Ads leads

Make will watch for new leads in Facebook Lead Ads at regular intervals and add them to Redtail CRM as contacts.

Free

Save a new submitted forms in ConvertBox to a Google Sheets spreadsheet

Every time a new form is submitted in ConvertBox, Make will automatically add data from that form to your Google Sheets spreadsheet as a new row. The template uses this [example spreadsheet](https://docs.google.com/spreadsheets/d/147AHA6NWP3QSXkK2aTujTDsZ8kLGm8lmLlpPM8IjFIo/edit?usp=sharing).

Free

Import contacts from Google Sheet to Firetext

Add new contacts from Google Sheets to Firetext. Your sheet should have a Cell phone number in column A, First name in column B and Last name in column C.

Free

Share your Instagram photos to Facebook Groups

Every time you upload a new photo to Instagram, Make will automatically post that photo to a selected Facebook group.

Free

Add new rows to a Google Sheets spreadsheet from new opportunities in SharpSpring

This template periodically checks for new opportunities in SharpSpring and uses the retrieved information to create new rows in a Google Sheets spreadsheet. The template uses this [example spreadsheet.](https://docs.google.com/spreadsheets/d/1qz02etv5BaanoAqrPpCbE641BmB1BagYPgDLLLwzV5A/edit?usp=sharing) You should make a copy of it before configuring the template. The template is scheduled to run every 15 minutes. You can change the schedule after you set up the template.

Free

Automate weekly SEO report with GPT-4 insights and Slack delivery

What this workflow does - Runs automatically every Monday morning at 8 AM - Collects your Google Search Console from the last month and the month before that for a given url (date range is configurable) - Formats the data, aggregating it by date, query, page, device and country - Generates AI-driven analysis and insights on your results, providing actionable recommendations - Renders the report as a visually appealing PDF with charts and tables - Sends the report via Slack (you can also add emai

Free

Automate AI video ad generation with Google Veo 3, Gemini, and Airtable

This n8n template from Intuz provides a complete and automated solution for transforming a static product image and a creative idea into a dynamic, AI-generated video ad. Using Google's state-of-the-art Veo 3 model, this workflow manages the entire creative process from concept to a final, downloadable video file. Who's this workflow for? - E-commerce Brands & Marketers - Advertising Agencies - Social Media Content Creators - Product Managers How it works 1. Submit a Creative Brief: The workflo

Free

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.

Log in to review
Free
No ratings yet

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.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free