クラウドストレージからFacebook広告への自動化

中級

これはMarketing分野の自動化ワークフローで、13個のノードを含みます。主にFunction, GoogleDrive, HttpRequest, ManualTriggerなどのノードを使用。 GoogleドライブからFacebook広告への自動化:ワンクリック動画マーケティングワーキフロー

前提条件
  • Google Drive API認証情報
  • ターゲットAPIの認証情報が必要な場合あり

カテゴリー

ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "id": "nkYXWToCsTu0oQCu",
  "meta": {
    "instanceId": "57c71fe69aec521b7d0bd3751d2e0aaa08f8884418e122571610a23c9eb8a65c",
    "templateCredsSetupCompleted": true
  },
  "name": "drive_fb_ads",
  "tags": [],
  "nodes": [
    {
      "id": "39f9d135-0594-483d-bb62-c3e7bd355ba6",
      "name": "手動トリガー",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        0,
        0
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "4439237c-49fb-4864-ba9e-09341136f326",
      "name": "ドライブ動画一覧",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        200,
        0
      ],
      "parameters": {
        "name": "video1.pdf",
        "options": {}
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "pIW55BNPyp4T9msu",
          "name": "Google Drive account 2"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "1214fa7b-8768-46c8-bd44-e35e58ae7bc4",
      "name": "動画ダウンロード",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        400,
        0
      ],
      "parameters": {
        "fileId": {
          "__rl": true,
          "mode": "list",
          "value": ""
        },
        "options": {},
        "operation": "download"
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "pIW55BNPyp4T9msu",
          "name": "Google Drive account 2"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "5a08b369-b001-4c7d-a839-1f035c04fed2",
      "name": "FBへの動画アップロード",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        600,
        0
      ],
      "parameters": {
        "url": "https://graph-video.facebook.com/v19.0/{{ $json.ad_account_id }}/advideos",
        "options": {},
        "authentication": "headerAuth"
      },
      "typeVersion": 3
    },
    {
      "id": "b00251d7-db53-44d0-8c9b-6c461208e51a",
      "name": "広告クリエイティブ作成",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        800,
        0
      ],
      "parameters": {
        "url": "https://graph.facebook.com/v19.0/{{ $json.ad_account_id }}/adcreatives",
        "options": {},
        "authentication": "headerAuth"
      },
      "typeVersion": 3
    },
    {
      "id": "5fbd0846-cda3-49fa-8b0b-f5fda2198ce2",
      "name": "動画ID抽出",
      "type": "n8n-nodes-base.function",
      "position": [
        720,
        180
      ],
      "parameters": {
        "functionCode": "return items.map(item => ({ json: {\n  video_id: item.json.id,\n  ad_account_id: 'act_YOUR_AD_ACCOUNT_ID',\n  page_id: 'YOUR_PAGE_ID'\n} }));"
      },
      "typeVersion": 1
    },
    {
      "id": "376af680-b958-4f28-bb46-e278974badad",
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        -200
      ],
      "parameters": {
        "width": 460,
        "height": 120,
        "content": "Automatically fetches all MP4 videos from a Google Drive folder, downloads each video, uploads it to Facebook as an ad video, and creates an ad creative using the uploaded video."
      },
      "typeVersion": 1
    },
    {
      "id": "939f6448-9c5a-4be6-9138-eacd7588668b",
      "name": "付箋1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -40,
        160
      ],
      "parameters": {
        "width": 150,
        "height": 80,
        "content": "Starts the workflow manually"
      },
      "typeVersion": 1
    },
    {
      "id": "d272eedd-0871-43a7-baa6-c5f3249d0f8b",
      "name": "付箋2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        180,
        160
      ],
      "parameters": {
        "width": 150,
        "height": 80,
        "content": "Fetches video files (MP4) from Google Drive"
      },
      "typeVersion": 1
    },
    {
      "id": "f89e6cf7-f352-4463-a59f-cb690e571ee4",
      "name": "付箋3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        380,
        160
      ],
      "parameters": {
        "width": 150,
        "height": 80,
        "content": "Downloads the selected video"
      },
      "typeVersion": 1
    },
    {
      "id": "e71a87a8-816f-4ec3-95f1-84dc7e53a1c2",
      "name": "付箋4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        560,
        160
      ],
      "parameters": {
        "width": 150,
        "height": 80,
        "content": "Uploads video to Facebook Ad Account"
      },
      "typeVersion": 1
    },
    {
      "id": "b5c42829-5e8c-4693-aa4d-005eac224ca0",
      "name": "付箋5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        740,
        380
      ],
      "parameters": {
        "width": 210,
        "height": 80,
        "content": "Prepares ID and Ad Account/Page info"
      },
      "typeVersion": 1
    },
    {
      "id": "3125893f-bf28-4472-96ce-dcab1726a0b2",
      "name": "付箋6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        840,
        160
      ],
      "parameters": {
        "width": 170,
        "height": 80,
        "content": "Creates the ad creative using uploaded video"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "c70b52c1-6804-4fbc-b924-7ed1c2a4126d",
  "connections": {
    "1214fa7b-8768-46c8-bd44-e35e58ae7bc4": {
      "main": [
        [
          {
            "node": "5a08b369-b001-4c7d-a839-1f035c04fed2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "39f9d135-0594-483d-bb62-c3e7bd355ba6": {
      "main": [
        [
          {
            "node": "4439237c-49fb-4864-ba9e-09341136f326",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "5fbd0846-cda3-49fa-8b0b-f5fda2198ce2": {
      "main": [
        [
          {
            "node": "b00251d7-db53-44d0-8c9b-6c461208e51a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "4439237c-49fb-4864-ba9e-09341136f326": {
      "main": [
        [
          {
            "node": "1214fa7b-8768-46c8-bd44-e35e58ae7bc4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "5a08b369-b001-4c7d-a839-1f035c04fed2": {
      "main": [
        [
          {
            "node": "5fbd0846-cda3-49fa-8b0b-f5fda2198ce2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

このワークフローの使い方は?

上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。

このワークフローはどんな場面に適していますか?

中級 - マーケティング

有料ですか?

このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。

ワークフロー情報
難易度
中級
ノード数13
カテゴリー1
ノードタイプ5
難易度説明

経験者向け、6-15ノードの中程度の複雑さのワークフロー

作成者
Yaron Been

Yaron Been

@yaron-nofluff

Building AI Agents and Automations | Growth Marketer | Entrepreneur | Book Author & Podcast Host If you need any help with Automations, feel free to reach out via linkedin: https://www.linkedin.com/in/yaronbeen/ And check out my Youtube channel: https://www.youtube.com/@YaronBeen/videos

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34