Skip to main content
Community templateCRM

Log multi-platform ad spend from Meta, Google, TikTok, and Taboola to Airtable - n8n workflow template

This workflow runs hourly to collect campaign spend, clicks, and impressions from Meta (Facebook), Google Ads, TikTok Ads, and Taboola, then upserts the metrics into Airtable and creates a time-stamped snapshot record for Meta campaigns. Get Implementation help via…

Template by Nocode Expert · Original listing (opens in a new tab)

Starts on
On a schedule
Nodes
23 nodes
Level
Advanced
Setup
About 19 min

Workflow preview

How this workflow runs

  1. 1

    Every Hour Schedule Trigger

    Starts the workflow automatically on a schedule (cron / fixed interval).

  2. 2

    Format Date for Campaigns

    Runs custom JavaScript to transform or manipulate the data flowing through the workflow.

  3. 3

    Fetch FB Campaigns Account 1

    Makes an external API call (HTTP request) to send or retrieve data from a third-party service.

  4. 4

    Fetch FB Campaigns Account 2

    Makes an external API call (HTTP request) to send or retrieve data from a third-party service.

  5. 5

    Fetch FB Campaigns Account 3

    Makes an external API call (HTTP request) to send or retrieve data from a third-party service.

  6. 6

    Fetch FB Campaigns Account 4

    Makes an external API call (HTTP request) to send or retrieve data from a third-party service.

  7. 7

    Fetch Airtable Campaign Records

    Reads or writes records in an Airtable base.

  8. 8

    Extract FB Campaign Information

    Runs custom JavaScript to transform or manipulate the data flowing through the workflow.

  9. 9

    Loop Over FB Campaigns Data

    Loops over items in batches, processing each one in turn (used for iteration).

  10. 10

    Retrieve Taboola Access Token

    Makes an external API call (HTTP request) to send or retrieve data from a third-party service.

Creator's notes and setup

Written by Nocode Expert for the original listing.

Quick overview

This workflow runs hourly to collect campaign spend, clicks, and impressions from Meta (Facebook), Google Ads, TikTok Ads, and Taboola, then upserts the metrics into Airtable and creates a time-stamped snapshot record for Meta campaigns. Get Implementation help via https://nocode.expert

How it works

  1. Runs every 60 minutes on a schedule.
  2. Builds today’s date values (including a sheet-friendly format and PST-adjusted dates) for use in API queries and Airtable filters.
  3. Pulls ACTIVE and PAUSED campaign lists from up to four Meta ad accounts and searches Airtable for existing rows matching today’s date.
  4. Matches Meta campaigns to Airtable records by Campaign ID, fetches Meta Insights for each campaign for today, and keeps only campaigns with non-zero spend.
  5. Upserts the Meta campaign metrics into the Airtable “Daily Ad Spend” table and creates a separate time-slot snapshot row in a second Airtable table.
  6. Retrieves today’s performance data from Taboola (via OAuth token), Google Ads (GAQL query), and TikTok Ads (integrated report), then normalizes the results into a single campaign list.
  7. Filters out non-spending campaigns and upserts the remaining Google, Taboola, and TikTok campaign metrics into the same Airtable “Daily Ad Spend” table.

Setup

  1. Create an Airtable personal access token connection and set your Airtable Base ID and both Table IDs for the “Daily Ad Spend” and “Daily Snapshot” tables.
  2. Replace the placeholder Meta ad account IDs and add a valid Meta Graph API access token in the Meta campaign and insights request URLs.
  3. Add Google Ads OAuth2 credentials in n8n and set your Google customer ID, login-customer-id, and developer token headers for the Google Ads API request.
  4. Add your TikTok access token and advertiser ID, and add your Taboola client ID/secret and account name in the Taboola token and report requests.
  5. Ensure your Airtable “Daily Ad Spend” table includes fields matching the mapped columns (for example Date, Spend, Clicks, Impressions, Campaign ID, Campaign Name, Source, and Ad Account) so the upserts succeed.

Requirements

  • Accounts and API access for Meta Graph API, Google Ads API, TikTok Business API, Taboola Backstage API, and an Airtable base

Customization

  • change the schedule from hourly to daily, or narrow the campaign-name keyword filter to only the campaigns you want tracked

n8n nodes used (7 types)

What every node does (23)
  • Format Date for Campaigns (Code)Runs custom JavaScript to transform or manipulate the data flowing through the workflow.
  • Fetch FB Spend Data (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • Compile Ad Spend Data (Code)Runs custom JavaScript to transform or manipulate the data flowing through the workflow.
  • Fetch Airtable Campaign Records (Airtable)Reads or writes records in an Airtable base.
  • Prepare Airtable Data (Airtable)Reads or writes records in an Airtable base.
  • Fetch FB Campaigns Account 2 (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • Fetch FB Campaigns Account 1 (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • Fetch FB Campaigns Account 3 (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • Store to Airtable (Airtable)Reads or writes records in an Airtable base.
  • Fetch Taboola Ads Data (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • Fetch Google Ads Data (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • Extract FB Campaign Information (Code)Runs custom JavaScript to transform or manipulate the data flowing through the workflow.
  • Process Airtable Records (Airtable)Reads or writes records in an Airtable base.
  • Extract Google & Taboola Data (Code)Runs custom JavaScript to transform or manipulate the data flowing through the workflow.
  • Loop Over Google & Taboola Data (Split In Batches)Loops over items in batches, processing each one in turn (used for iteration).
  • Loop Over FB Campaigns Data (Split In Batches)Loops over items in batches, processing each one in turn (used for iteration).
  • Check Campaign ID Exists (If)Branches the workflow based on a true/false condition.
  • Filter Campaign Data (Filter)Keeps only the items that match a condition and discards the rest.
  • Retrieve Taboola Access Token (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • Fetch FB Campaigns Account 4 (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • Verify FB Campaign Batch (If)Branches the workflow based on a true/false condition.
  • Fetch Tiktok Ads Data (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • Every Hour Schedule Trigger (Schedule Trigger)Starts the workflow automatically on a schedule (cron / fixed interval).

FAQ

Log multi-platform ad spend from Meta, Google, TikTok, and Taboola to Airtable: questions

How do I import the "Log multi-platform ad spend from Meta, Google, TikTok, and Taboola to Airtable" workflow into n8n?

Copy the workflow JSON from this page, open the n8n editor, click on an empty canvas and paste with Ctrl+V (Cmd+V on macOS). You can also download the .json file and choose Import from File in the workflow menu. Save the workflow, then attach credentials before activating it.

Which nodes and credentials does "Log multi-platform ad spend from Meta, Google, TikTok, and Taboola to Airtable" use?

It uses Airtable, HTTP Request, If, Split In Batches, Code and Schedule Trigger, plus 1 more. Any node that connects to an external service needs your own credential — open each node after import and select or create one. Trigger, logic and transformation nodes usually need no credentials.

Can it run on n8n Cloud and on self-hosted n8n?

The workflow format is the same on both. If a node appears as unknown or outdated after import, update n8n to a recent version or, on self-hosted instances, install the required community node package. Features such as $env access are available on self-hosted instances only.

How can I customise "Log multi-platform ad spend from Meta, Google, TikTok, and Taboola to Airtable"?

Start by changing the trigger (schedule, webhook or app event) and the destination nodes to match your stack — it is listed under CRM. Edit prompts, field mappings and filters in the relevant nodes, use expressions like {{ $json.field }} to map data, and test with a manual execution before activating.

n8n is a trademark of n8n GmbH. AltFTool is not affiliated with, endorsed by or sponsored by n8n. Community templates are credited to their creators and link to the original listing; AltFTool originals are written and tested by the AltFTool team.

About this page

Free n8n workflow templates to copy and import

The AltFTool n8n library collects free n8n workflow templates for AI agents, Gmail, Google Sheets, Telegram and other apps. Each workflow page shows a preview, the list of nodes and the credentials it needs, and lets you copy or download the JSON to import into your own n8n.

Search the templates by app or task, or browse them by category and by node. The Workflow Inspector checks any workflow JSON for triggers, credentials and hardcoded keys before you share it, and the expressions cheat sheet gives copy-paste n8n expression examples. AltFTool is not affiliated with n8n.

People also search for

  • n8n workflow templates
  • n8n templates
  • n8n automation examples
  • n8n json workflows
  • n8n nodes
  • free n8n workflow templates
  • n8n ai agent template
  • n8n expressions cheat sheet