Automation library · Data collection

Extract Meta Ads detailed targeting across all endpoints

Started by a change in a Google Sheet, and works across Google Sheets. 25 steps, 1 branch: large, and worth reading before you trust it with anything live.

Large

25 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
0Loops or waits
1Service it connects to

The flow

Starts it 2Logic 14Service 9

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

  1. 1Manual TriggerManual triggerStarts it
  2. 2Google Sheets TriggerGoogle Sheets triggerStarts it
  3. 3Read Input (Google Sheets)Google SheetsService
  4. 4Valid rows (ad_account_id + endpoint)FilterLogic
  5. 5Switch by endpointSwitchLogic
  6. 6API SearchFacebook Graph ApiService
  7. 7Merge SearchMergeLogic
  8. 8API SuggestionsFacebook Graph ApiService
  9. 9Merge SuggestionsMergeLogic
  10. 10API BrowseFacebook Graph ApiService
  11. 11Merge BrowseMergeLogic
  12. 12API ValidationFacebook Graph ApiService
  13. 13Merge ValidationMergeLogic
  14. 14Split SearchSplit OutLogic
  15. 15Split SuggestionsSplit OutLogic
  16. 16Split BrowseSplit OutLogic
  17. 17Split ValidationSplit OutLogic
  18. 18Format SearchSetLogic
  19. 19Format SuggestionsSetLogic
  20. 20Format BrowseSetLogic
  21. 21Format ValidationSetLogic
  22. 22Save search_resultsGoogle SheetsService
  23. 23Save suggestions_resultsGoogle SheetsService
  24. 24Save browse_resultsGoogle SheetsService
  25. 25Save validation_resultsGoogle SheetsService

How it's built

Starts on
A change in a Google Sheet
Steps
25, with 1 branch
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 change in a Google Sheet.

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 25 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 25 steps before you point it at anything that matters.