{
  "name": "Weekly Competitor Google Ads Creative Spy to Slack",
  "nodes": [
    {
      "parameters": {
        "content": "## Weekly Competitor Google Ads Creative Spy to Slack\n\n### How it works\n\nThis workflow runs every Monday morning to monitor competitors’ Google Ads creatives. It builds the target domain configuration, calls an Apify actor to fetch ad creative data, filters for evergreen creatives that have been active for at least 14 days, and posts a digest to Slack.\n\n### Setup steps\n\n- Configure the schedule trigger timezone and confirm Monday 09:00 is the desired run time.\n- Update the target domains, competitor labels, Apify actor input, and Slack webhook URL in the configuration/code nodes.\n- Add the required Apify API token or HTTP credentials for the Google Ads creative fetch request.\n- Create and configure the Slack incoming webhook used by the final HTTP request.\n\n### Customization\n\nAdjust the target competitor domains, evergreen threshold, digest formatting, Slack channel, or run cadence to fit your monitoring needs.\n\nThe free MCP endpoint `https://datatoll.app/mcp` needs no API key. All five sources share 100 calls per IP per 24 hours. Each call returns up to 50 records, or 5 videos for YouTube. For bulk or scheduled exports use the Apify Actor `tokenkite~google-ads-intel` ($0 start fee).",
        "width": 480,
        "height": 752
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -384,
        96
      ],
      "id": "59bfd09e-9a94-4558-a6fd-e5b1da984695",
      "name": "Sticky Note"
    },
    {
      "parameters": {
        "content": "## Schedule and configure\n\nStarts the weekly run and prepares the target domains and workflow settings used by the downstream ad fetch request.",
        "width": 416,
        "height": 320,
        "color": 7
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        176,
        144
      ],
      "id": "a58837d7-c200-432b-92d8-2e952a8c75e6",
      "name": "Sticky Note1"
    },
    {
      "parameters": {
        "content": "## Fetch ad creatives\n\nCalls the external Apify-based Google Ads creative scraping endpoint using the prepared competitor configuration.",
        "width": 240,
        "height": 368,
        "color": 7
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        640,
        96
      ],
      "id": "bbd4ee0a-f9e3-4f00-9a5f-b7c4444085e3",
      "name": "Sticky Note2"
    },
    {
      "parameters": {
        "content": "## Filter and notify\n\nFilters the returned ads to identify evergreen creatives active for at least 14 days, then sends the resulting digest to Slack via webhook.",
        "width": 448,
        "height": 320,
        "color": 7
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        928,
        144
      ],
      "id": "02eb2016-0dcc-4a0b-a397-8b1088de86ed",
      "name": "Sticky Note3"
    },
    {
      "id": "e1b0a101-0001-4000-8000-000000000001",
      "name": "When Every Monday at 9am",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        220,
        300
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "weeks",
              "triggerAtDay": [
                1
              ],
              "triggerAtHour": 9,
              "weeksInterval": 1
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "e1b0a101-0001-4000-8000-000000000002",
      "name": "Configure Target Domains",
      "type": "n8n-nodes-base.code",
      "position": [
        440,
        300
      ],
      "parameters": {
        "jsCode": "const slackWebhookUrl = 'https://hooks.slack.com/services/REPLACE/WITH/WEBHOOK';\nconst competitors = [\n  { domain: 'shopify.com', regionCode: 2840, maxResults: 40 },\n  { domain: 'klaviyo.com', regionCode: 2840, maxResults: 40 }\n];\n\nreturn competitors.map(item => ({ json: { ...item, slackWebhookUrl } }));"
      },
      "typeVersion": 2
    },
    {
      "id": "e1b0a101-0001-4000-8000-000000000003",
      "name": "Post Ads Creatives API",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        680,
        300
      ],
      "parameters": {
        "url": "https://api.apify.com/v2/acts/tokenkite~google-ads-intel/run-sync-get-dataset-items",
        "method": "POST",
        "options": {
          "timeout": 60000
        },
        "jsonBody": "={{ JSON.stringify({ domain: $json.domain, regionCode: $json.regionCode, maxResults: $json.maxResults }) }}",
        "sendBody": true,
        "specifyBody": "json",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth"
      },
      "typeVersion": 4.2
    },
    {
      "id": "e1b0a101-0001-4000-8000-000000000004",
      "name": "Filter Ads Over 14 Days",
      "type": "n8n-nodes-base.code",
      "position": [
        976,
        304
      ],
      "parameters": {
        "jsCode": "const slackWebhookUrl = $('Configure Target Domains').first().json.slackWebhookUrl;\nconst winners = $input.all()\n  .map(item => item.json)\n  .filter(ad => ad.creative_id && (ad.days_active === null || ad.days_active >= 14));\n\nconst lines = winners.slice(0, 15).map(ad =>\n  `\u2022 *[${ad.ad_format}]* ${ad.advertiser_name} (${ad.domain || 'n/a'}) \u2014 active ${ad.days_active ?? '?'}d | <${ad.transparency_url}|View Creative>`\n);\n\nreturn [{\n  json: {\n    slackWebhookUrl,\n    total_winners: winners.length,\n    slack_text: lines.length\n      ? `*Weekly Competitor Google Ads Report* (${winners.length} evergreen creatives >=14d):\\n` + lines.join('\\n')\n      : 'No active creatives >=14 days found this week.'\n  }\n}];"
      },
      "typeVersion": 2
    },
    {
      "id": "e1b0a101-0001-4000-8000-000000000005",
      "name": "Send Digest to Slack Webhook",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1232,
        304
      ],
      "parameters": {
        "url": "={{ $json.slackWebhookUrl }}",
        "method": "POST",
        "jsonBody": "={{ JSON.stringify({ text: $json.slack_text }) }}",
        "sendBody": true,
        "specifyBody": "json"
      },
      "typeVersion": 4.2
    }
  ],
  "settings": {
    "executionOrder": "v1"
  },
  "connections": {
    "When Every Monday at 9am": {
      "main": [
        [
          {
            "node": "Configure Target Domains",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Configure Target Domains": {
      "main": [
        [
          {
            "node": "Post Ads Creatives API",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post Ads Creatives API": {
      "main": [
        [
          {
            "node": "Filter Ads Over 14 Days",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Ads Over 14 Days": {
      "main": [
        [
          {
            "node": "Send Digest to Slack Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
