# Extract Meta Ads detailed targeting across all endpoints: n8n workflow

> 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.

Source: https://millionrounds.com/workflow/extract-meta-ads-detailed-targeting-across-all-endpoints (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Data collection](https://millionrounds.com/workflows?category=Data+collection#library)

# 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

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fextract-meta-ads-detailed-targeting-across-all-endpoints)

**25 steps** Large: read it before trusting it with anything live

**1** Branch: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 2 Logic 14 Service 9

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

- 1 **Manual Trigger** Manual trigger *Starts it*
- 2 **Google Sheets Trigger** Google Sheets trigger *Starts it*
- 3 **Read Input (Google Sheets)** Google Sheets *Service*
- 4 **Valid rows (ad_account_id + endpoint)** Filter *Logic*
- 5 **Switch by endpoint** Switch *Logic*
- 6 **API Search** Facebook Graph Api *Service*
- 7 **Merge Search** Merge *Logic*
- 8 **API Suggestions** Facebook Graph Api *Service*
- 9 **Merge Suggestions** Merge *Logic*
- 10 **API Browse** Facebook Graph Api *Service*
- 11 **Merge Browse** Merge *Logic*
- 12 **API Validation** Facebook Graph Api *Service*
- 13 **Merge Validation** Merge *Logic*
- 14 **Split Search** Split Out *Logic*
- 15 **Split Suggestions** Split Out *Logic*
- 16 **Split Browse** Split Out *Logic*
- 17 **Split Validation** Split Out *Logic*
- 18 **Format Search** Set *Logic*
- 19 **Format Suggestions** Set *Logic*
- 20 **Format Browse** Set *Logic*
- 21 **Format Validation** Set *Logic*
- 22 **Save search_results** Google Sheets *Service*
- 23 **Save suggestions_results** Google Sheets *Service*
- 24 **Save browse_results** Google Sheets *Service*
- 25 **Save validation_results** Google Sheets *Service*

## 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.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fextract-meta-ads-detailed-targeting-across-all-endpoints)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)

## Workflows like it

Also data collection, with the same services where possible, closest in size first.

- [**AI PPT Optimizer with Google Drive and Google Sheets** 25 steps · Google Drive, Google Sheets](https://millionrounds.com/workflow/ai-ppt-optimizer-with-google-drive-and-google-sheets)
- [**Audit forgotten online accounts from Gmail with OpenAI** 25 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/audit-forgotten-online-accounts-from-gmail-with-openai)
- [**AI multi-stop planner for circular logistics with OpenAI** 25 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/ai-multi-stop-planner-for-circular-logistics-with-openai)
- [**Automate Calendly user onboarding & offboarding** 25 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/automate-calendly-user-onboarding-and-offboarding)
- [**Build Gmail contact database with Brave Search** 25 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/build-gmail-contact-database-with-brave-search)
- [**Check Etsy listing gaps with Bright Data and OpenAI** 25 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/check-etsy-listing-gaps-with-bright-data-and-openai)
