πŸ“Š Meta ads to Google Sheets: daily & historical campaign performance report

⚑ 705 views Β· πŸ“Š Market Research & Insights

πŸ’‘ Pro Tip β€” If you’ve run into Facebook’s Graph API permission restrictions, ScraperNode is a community node that scrapes pages, groups, posts, and comments directly β€” no app review needed.

View All Scrapers

Description

Overview

This template automatically exports Meta (Facebook) Ads campaign performance into Google Sheets β€” both daily and for historical backfills. It’s ideal for performance marketers, agencies, and analytics teams who want a reliable data pipeline from Meta Ads into their reporting stack.

What this workflow does

Use cases

How it works

  1. Daily Incremental Flow

    • A Schedule Trigger runs every day at 05:00.
    • The Set config node defines ad account, date preset (yesterday), and Google Sheet details.
    • The Meta Insights node calls the Facebook Graph insights edge at level=campaign.
    • The Code node flattens the data and derives CPL, CPA, ROAS, and other KPIs.
    • The Google Sheets node appends the rows to your Meta_Daily_Data sheet.
  2. Manual Backfill Flow

    • A Manual Trigger lets you run the flow on demand.
    • The Set backfill config node defines backfillSince and backfillUntil.
    • The Meta Insights (time_range) node fetches performance for that historical range.
    • The same transform logic is applied, and rows are appended to the same sheet.

Prerequisites

Setup steps

  1. Import this template into your n8n instance.
  2. Open the Set config and Set backfill config nodes:
    • Set your adAccountId (e.g. act_123456789012345).
    • Set your sheetId (Google Sheet ID) and sheet name (e.g. Meta_Daily_Data).
  3. Configure your Facebook Graph API and Google Sheets credentials in n8n.
  4. (Optional) Run the Manual Backfill section for your desired historical ranges (e.g. per quarter).
  5. Enable the workflow so the Daily Incremental section runs automatically.

Customization

Consulting & support

If you need help with:

please reach out to Serendipity Technologies:

πŸ‘‰ https://www.serendipity.at

We can help you turn this workflow into a full analytics stack and reporting system tailored to your business.

πŸ”— Nodes Used

Google Sheets, Facebook Graph API, Schedule Trigger

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup