Automation library · Research and reporting

Sync Meta Ads insights to Google Sheets

Started by a clock, and works across Google Sheets. 21 steps, 4 branches, 2 loops or waits: large, and worth reading before you trust it with anything live.

Large

21 stepsLarge: read it before trusting it with anything live
4Branches: places the flow splits
2Loops or waits
1Service it connects to

The flow

Starts it 2Logic 13Service 6

The steps in the order they run, from what starts it.

  1. 1Manual Trigger (Historical Backfill)Manual triggerStarts it
  2. 2Schedule Trigger (Incremental)Schedule triggerStarts it
  3. 3Set Date Range (Historical Backfill)SetLogic
  4. 4Set Incremental Range (Last 7 Days)SetLogic
  5. 5Generate Weekly PeriodsCodeLogic
  6. 6Loop Over Periods (Account A)Split In BatchesLogic
  7. 7Loop Over Periods (Account B)Split In BatchesLogic
  8. 8Fetch Meta Insights (Account A)Http RequestService
  9. 9Fetch Meta Insights (Account B)Http RequestService
  10. 10Valid Response? (Account A)IfLogic
  11. 11Valid Response? (Account B)IfLogic
  12. 12Split API Response (Account A)CodeLogic
  13. 13Log Skipped Period (Account A)SetLogic
  14. 14Split API Response (Account B)CodeLogic
  15. 15Log Skipped Period (Account B)SetLogic
  16. 16If Spend not 0 (Account A)IfLogic
  17. 17Append to Log Sheet (Account A)Google SheetsService
  18. 18If Spend not 0 (Account B)IfLogic
  19. 19Append to Log Sheet (Account B)Google SheetsService
  20. 20Append to Sheet (Account A)Google SheetsService
  21. 21Append to Sheet (Account B)Google SheetsService

How it's built

Starts on
A clock
Steps
21, with 4 branches, 2 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Sheets
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Google Sheets account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 21 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 21 steps before you point it at anything that matters.