AutomationFlowsMarketing & Ads › App: Google Ads Sync (custom Ids)

App: Google Ads Sync (custom Ids)

App: Google Ads Sync (Custom IDs). Uses googleFirebaseFirestore, googleAds. Webhook trigger; 5 nodes.

Webhook trigger★★★★☆ complexity5 nodesGoogle Firebase FirestoreGoogle Ads
Marketing & Ads Trigger: Webhook Nodes: 5 Complexity: ★★★★☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "App: Google Ads Sync (Custom IDs)",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "google-ads-sync",
        "responseMode": "responseNode",
        "options": {}
      },
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "authentication": "firebase",
        "firestoreCollection": "apps/2h_web_solutions_google_ads_asssitant_v1/clients",
        "documentId": "={{ $json.body.clientId }}",
        "options": {}
      },
      "name": "Get Client ID",
      "type": "n8n-nodes-base.googleFirebaseFirestore",
      "typeVersion": 1,
      "position": [
        450,
        300
      ],
      "notes": "Holt die Google Ads Customer ID aus Firestore"
    },
    {
      "parameters": {
        "operation": "get",
        "resource": "campaign",
        "limit": 100,
        "returnAll": true,
        "filters": {
          "status": [
            "ENABLED",
            "PAUSED"
          ]
        },
        "options": {
          "fields": [
            "id",
            "name",
            "status",
            "metrics.clicks",
            "metrics.impressions",
            "metrics.cost_micros",
            "metrics.conversions",
            "metrics.ctr"
          ]
        }
      },
      "name": "Fetch Campaigns",
      "type": "n8n-nodes-base.googleAds",
      "typeVersion": 1,
      "position": [
        650,
        300
      ],
      "credentials": {
        "googleAdsOAuth2Api": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "authentication": "firebase",
        "operation": "set",
        "firestoreCollection": "apps/2h_web_solutions_google_ads_asssitant_v1/clients/{{ $('Webhook').item.json.body.clientId }}/campaigns",
        "documentId": "={{ $json.name.toString().toLowerCase().replace(/\u00e4/g, 'ae').replace(/\u00f6/g, 'oe').replace(/\u00fc/g, 'ue').replace(/\u00df/g, 'ss').replace(/ /g, '-').replace(/[^a-z0-9-]/g, '') }}",
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "stats": {
              "clicks": "={{ $json.metrics.clicks }}",
              "impressions": "={{ $json.metrics.impressions }}",
              "cost": "={{ $json.metrics.cost_micros / 1000000 }}",
              "conversions": "={{ $json.metrics.conversions }}",
              "lastUpdated": "={{ new Date().toISOString() }}"
            },
            "status": "={{ $json.status }}",
            "name": "={{ $json.name }}",
            "googleAdsId": "={{ $json.id }}",
            "type": "Google Ads (Synced)"
          }
        },
        "options": {
          "merge": true
        }
      },
      "name": "Save to Firestore",
      "type": "n8n-nodes-base.googleFirebaseFirestore",
      "typeVersion": 1,
      "position": [
        850,
        300
      ]
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "{\n \"status\": \"success\",\n \"count\": {{ $items.length }}\n}",
        "options": {}
      },
      "name": "Done",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1,
      "position": [
        1050,
        300
      ]
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Get Client ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Client ID": {
      "main": [
        [
          {
            "node": "Fetch Campaigns",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Campaigns": {
      "main": [
        [
          {
            "node": "Save to Firestore",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save to Firestore": {
      "main": [
        [
          {
            "node": "Done",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

App: Google Ads Sync (Custom IDs). Uses googleFirebaseFirestore, googleAds. Webhook trigger; 5 nodes.

Source: https://github.com/2H-Web-Solutions/google_ads_assistant/blob/main/n8n/google_ads_sync_custom_ids.json — original creator credit. Request a take-down →

More Marketing & Ads workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Marketing & Ads

App: Google Ads Sync. Uses googleFirebaseFirestore, googleAds. Webhook trigger; 6 nodes.

Google Firebase Firestore, Google Ads
Marketing & Ads

This workflow automates bulk email campaigns with built-in validation, deliverability protection, and smart send-time optimization.

HTTP Request, Postgres, Gmail
Marketing & Ads

Who is this for? Solo founders, sales teams, and event organizers who need email outreach without expensive tools but want full control from Telegram.

Telegram, Google Sheets, Google Sheets Trigger +2
Marketing & Ads

This workflow runs on scheduled weekly and monthly triggers to generate unified marketing performance reports. It processes multiple websites by collecting analytics data, paid ads performance, and CR

Gmail, Google Sheets, Google Analytics +3
Marketing & Ads

This workflow is designed to manage the assignment and validation of unique QR code coupons within a lead generation system with SuiteCRM.

HTTP Request, Form Trigger, Google Sheets +1