
Upload Video & Image Ads to Meta Ads Manager from Google Sheets using Google Drive & Meta Graph API
Description
Categories
⚙️ Automation
Nodes Used
n8n-nodes-base.ifn8n-nodes-base.ifn8n-nodes-base.setn8n-nodes-base.setn8n-nodes-base.setn8n-nodes-base.coden8n-nodes-base.waitn8n-nodes-base.waitn8n-nodes-base.switchn8n-nodes-base.switch
PriceGratuit
Views0
Last Updated11/28/2025
workflow.json
{
"id": "v8cndATocxXEg3OZ",
"meta": {
"instanceId": "1746813392f03a836ae1b60ce6fb98a512b5d5498aca4a9d4df49ccc7e65726f",
"templateCredsSetupCompleted": true
},
"name": "Upload Video & Image Ads to Meta Ads Manager from Google Sheets using Google Drive & Meta Graph API",
"tags": [],
"nodes": [
{
"id": "a2202ebd-0373-4e73-b30b-8949dfedfbe0",
"name": "Get Video Preview Image",
"type": "n8n-nodes-base.facebookGraphApi",
"position": [
2700,
720
],
"parameters": {},
"typeVersion": 1
},
{
"id": "e24c76a8-e231-4465-b797-fcbed77c7847",
"name": "Create Asset",
"type": "n8n-nodes-base.googleSheets",
"position": [
1040,
260
],
"parameters": {},
"typeVersion": 4.5
},
{
"id": "05d086b0-7979-4646-b4ca-b9f74bfa0e45",
"name": "Get Ads to Process",
"type": "n8n-nodes-base.googleSheets",
"position": [
540,
880
],
"parameters": {},
"typeVersion": 4.5
},
{
"id": "097bf067-4ae1-48a8-a82e-a97ead807b82",
"name": "When clicking ‘Test workflow’",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-180,
940
],
"parameters": {},
"typeVersion": 1
},
{
"id": "8f1beb92-26f1-4fa6-8812-cb13174faff0",
"name": "Wait",
"type": "n8n-nodes-base.wait",
"position": [
1900,
720
],
"webhookId": "79108ea9-8def-46c4-9eae-084348dbd30e",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "08b00090-f19c-4ee7-a783-76edac77c6b7",
"name": "Video or Image Asset",
"type": "n8n-nodes-base.switch",
"position": [
1240,
900
],
"parameters": {},
"typeVersion": 3.2
},
{
"id": "1e3b6cb3-e18e-49db-964e-d3c55010b1ab",
"name": "Get image 1",
"type": "n8n-nodes-base.httpRequest",
"position": [
1500,
1020
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "de3ebe68-2989-41f4-8172-1c2e732e134c",
"name": "Get image ",
"type": "n8n-nodes-base.httpRequest",
"position": [
2140,
1020
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "346c3523-aa74-478f-b6da-b597843c7dea",
"name": "Google Drive Folder Updated",
"type": "n8n-nodes-base.googleDriveTrigger",
"position": [
-220,
260
],
"parameters": {},
"typeVersion": 1
},
{
"id": "29493346-314e-4c25-9c3c-2d639d92a1ab",
"name": "Fetch All Files",
"type": "n8n-nodes-base.googleDrive",
"position": [
300,
260
],
"parameters": {},
"typeVersion": 3
},
{
"id": "187ddf83-75b7-446a-84b3-38fc2a45f839",
"name": "Get Files Metadata",
"type": "n8n-nodes-base.httpRequest",
"position": [
560,
260
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "260ccf59-f790-4959-81c4-550061415f5e",
"name": "Extract File Specs",
"type": "n8n-nodes-base.set",
"position": [
800,
260
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "55d04cfc-d13f-4389-979c-9502ec2d0373",
"name": "Create Video Ad Creative",
"type": "n8n-nodes-base.facebookGraphApi",
"position": [
2940,
720
],
"parameters": {},
"typeVersion": 1
},
{
"id": "de0c62a9-9ce5-48ee-950f-aa874808d3c9",
"name": "Create Video Ad",
"type": "n8n-nodes-base.facebookGraphApi",
"position": [
3180,
720
],
"parameters": {},
"typeVersion": 1
},
{
"id": "4a84b968-af41-450f-82de-06ddad4c3c69",
"name": "Save Video Ad Details",
"type": "n8n-nodes-base.googleSheets",
"position": [
3460,
720
],
"parameters": {},
"typeVersion": 4.5
},
{
"id": "79ab59d8-0542-4cf3-b9e6-c72706ee1234",
"name": "Check if two or one image",
"type": "n8n-nodes-base.if",
"position": [
1900,
1020
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "e298f0d5-0c36-4839-8f70-e3033d9529ce",
"name": "Upload Ad Image",
"type": "n8n-nodes-base.facebookGraphApi",
"position": [
1680,
1020
],
"parameters": {},
"typeVersion": 1
},
{
"id": "aafe76d1-180b-4798-85cd-2730970755bb",
"name": "Create Multiple Image Creative",
"type": "n8n-nodes-base.facebookGraphApi",
"position": [
2580,
1020
],
"parameters": {},
"typeVersion": 1
},
{
"id": "e943a530-7055-4165-91f1-13042c4bc4f1",
"name": "Create Image Creative",
"type": "n8n-nodes-base.facebookGraphApi",
"position": [
2360,
1260
],
"parameters": {},
"typeVersion": 1
},
{
"id": "5c324d32-511e-4be8-846b-54d09788e400",
"name": "Upload Second Ad Image",
"type": "n8n-nodes-base.facebookGraphApi",
"position": [
2360,
1020
],
"parameters": {},
"typeVersion": 1
},
{
"id": "7a307213-2235-4560-8244-632555f326a5",
"name": "Create Image Ad",
"type": "n8n-nodes-base.facebookGraphApi",
"position": [
3180,
1020
],
"parameters": {},
"typeVersion": 1
},
{
"id": "b6824639-94d2-45c5-aeb3-6d40eddf7fca",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
-220,
120
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "7a10361d-449d-45db-8ed6-39e4d9370684",
"name": "Save Image Ad Details",
"type": "n8n-nodes-base.googleSheets",
"position": [
3460,
1020
],
"parameters": {},
"typeVersion": 4.5
},
{
"id": "491c242e-2d35-41e9-87a2-1d8ed4125c69",
"name": "Sticky Note7",
"type": "n8n-nodes-base.stickyNote",
"position": [
120,
700
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "fbe0cfee-f042-45be-8570-5e5a5acf372b",
"name": "Sticky Note8",
"type": "n8n-nodes-base.stickyNote",
"position": [
-800,
-80
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "62d72497-f67c-4dce-81be-e4639c805e9a",
"name": "Sticky Note11",
"type": "n8n-nodes-base.stickyNote",
"position": [
-280,
680
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "f162300e-7ebc-47cc-be7c-50b7fa930672",
"name": "settings",
"type": "n8n-nodes-base.set",
"position": [
40,
260
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "197ee18f-6ff3-4de5-bfff-92fae133980e",
"name": "Sticky Note12",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
60
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "a18f9ee0-fbce-4294-b5f5-1b55dae835e4",
"name": "settings_1",
"type": "n8n-nodes-base.set",
"position": [
180,
880
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "d9be4468-d279-46ad-80d4-37cd967f9da2",
"name": "Upload Ad Video",
"type": "n8n-nodes-base.facebookGraphApi",
"onError": "continueRegularOutput",
"position": [
1460,
720
],
"parameters": {},
"typeVersion": 1,
"alwaysOutputData": false
},
{
"id": "87beffa2-756b-4bcb-9034-5af946ffa93e",
"name": "Get Video",
"type": "n8n-nodes-base.httpRequest",
"position": [
1340,
460
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "28ab3596-9519-4edf-83da-a2da38933657",
"name": "Switch",
"type": "n8n-nodes-base.switch",
"position": [
1660,
720
],
"parameters": {},
"typeVersion": 3.2
},
{
"id": "dd3bba66-e874-48da-b504-ace6c8f3b718",
"name": "Code",
"type": "n8n-nodes-base.code",
"position": [
1500,
460
],
"parameters": {},
"typeVersion": 2
},
{
"id": "1797bc46-693e-4ac9-9e21-f325ea56dcc9",
"name": "Upload Ad Video1",
"type": "n8n-nodes-base.facebookGraphApi",
"onError": "continueRegularOutput",
"position": [
1660,
460
],
"parameters": {},
"typeVersion": 1,
"alwaysOutputData": false
},
{
"id": "555c9b83-68f0-4664-8401-cde5238d67b5",
"name": "Check if finished processing",
"type": "n8n-nodes-base.facebookGraphApi",
"position": [
2140,
700
],
"parameters": {},
"typeVersion": 1
},
{
"id": "baa319b2-83ee-4050-825b-368838622b03",
"name": "If1",
"type": "n8n-nodes-base.if",
"position": [
2320,
700
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "43cca0bb-ba0d-49fb-83f4-c702d0bcfc5f",
"name": "Wait1",
"type": "n8n-nodes-base.wait",
"position": [
2500,
780
],
"webhookId": "8311990f-a70c-41f8-93e3-c623687400fe",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "8ec25c38-dcf5-4213-a9b6-9bbf34b634ed",
"name": "Loop Over Items",
"type": "n8n-nodes-base.splitInBatches",
"position": [
920,
900
],
"parameters": {},
"typeVersion": 3
},
{
"id": "1b6da683-0ca9-4f4a-a204-02e638212d81",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"position": [
-180,
1120
],
"webhookId": "4cb1a9ff-2beb-480e-9fee-238d1240a70a",
"parameters": {},
"typeVersion": 2
},
{
"id": "28d94341-3be3-434e-a2f3-b2bee2e5efce",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-300,
-80
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "71fd4459-e05b-4581-af94-2f070e120e59",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
1280,
300
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "958a13a7-7a0b-415f-877b-96b84f299850",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-300,
560
],
"parameters": {
"content": ""
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "f41843fd-e61c-4084-b2a1-29f62a4db7a8",
"connections": {
"If1": {
"main": [
[
{
"node": "Get Video Preview Image",
"type": "main",
"index": 0
}
],
[
{
"node": "Wait1",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "Upload Ad Video1",
"type": "main",
"index": 0
}
]
]
},
"Wait": {
"main": [
[
{
"node": "Check if finished processing",
"type": "main",
"index": 0
}
]
]
},
"Wait1": {
"main": [
[
{
"node": "Check if finished processing",
"type": "main",
"index": 0
}
]
]
},
"Switch": {
"main": [
[
{
"node": "Wait",
"type": "main",
"index": 0
}
],
[
{
"node": "Get Video",
"type": "main",
"index": 0
}
]
]
},
"Webhook": {
"main": [
[
{
"node": "settings_1",
"type": "main",
"index": 0
}
]
]
},
"settings": {
"main": [
[
{
"node": "Fetch All Files",
"type": "main",
"index": 0
}
]
]
},
"Get Video": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Get image ": {
"main": [
[
{
"node": "Upload Second Ad Image",
"type": "main",
"index": 0
}
]
]
},
"settings_1": {
"main": [
[
{
"node": "Get Ads to Process",
"type": "main",
"index": 0
}
]
]
},
"Get image 1": {
"main": [
[
{
"node": "Upload Ad Image",
"type": "main",
"index": 0
}
]
]
},
"Create Asset": {
"main": [
[]
]
},
"Create Image Ad": {
"main": [
[
{
"node": "Save Image Ad Details",
"type": "main",
"index": 0
}
]
]
},
"Create Video Ad": {
"main": [
[
{
"node": "Save Video Ad Details",
"type": "main",
"index": 0
}
]
]
},
"Fetch All Files": {
"main": [
[
{
"node": "Get Files Metadata",
"type": "main",
"index": 0
}
]
]
},
"Loop Over Items": {
"main": [
[],
[
{
"node": "Video or Image Asset",
"type": "main",
"index": 0
}
]
]
},
"Upload Ad Image": {
"main": [
[
{
"node": "Check if two or one image",
"type": "main",
"index": 0
}
]
]
},
"Upload Ad Video": {
"main": [
[
{
"node": "Switch",
"type": "main",
"index": 0
}
]
]
},
"Upload Ad Video1": {
"main": [
[
{
"node": "Wait",
"type": "main",
"index": 0
}
]
]
},
"Extract File Specs": {
"main": [
[
{
"node": "Create Asset",
"type": "main",
"index": 0
}
]
]
},
"Get Ads to Process": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Get Files Metadata": {
"main": [
[
{
"node": "Extract File Specs",
"type": "main",
"index": 0
}
]
]
},
"Video or Image Asset": {
"main": [
[
{
"node": "Upload Ad Video",
"type": "main",
"index": 0
}
],
[
{
"node": "Get image 1",
"type": "main",
"index": 0
}
]
]
},
"Create Image Creative": {
"main": [
[
{
"node": "Create Image Ad",
"type": "main",
"index": 0
}
]
]
},
"Save Image Ad Details": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Save Video Ad Details": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Upload Second Ad Image": {
"main": [
[
{
"node": "Create Multiple Image Creative",
"type": "main",
"index": 0
}
]
]
},
"Get Video Preview Image": {
"main": [
[
{
"node": "Create Video Ad Creative",
"type": "main",
"index": 0
}
]
]
},
"Create Video Ad Creative": {
"main": [
[
{
"node": "Create Video Ad",
"type": "main",
"index": 0
}
]
]
},
"Check if two or one image": {
"main": [
[
{
"node": "Get image ",
"type": "main",
"index": 0
}
],
[
{
"node": "Create Image Creative",
"type": "main",
"index": 0
}
]
]
},
"Google Drive Folder Updated": {
"main": [
[
{
"node": "settings",
"type": "main",
"index": 0
}
]
]
},
"Check if finished processing": {
"main": [
[
{
"node": "If1",
"type": "main",
"index": 0
}
]
]
},
"Create Multiple Image Creative": {
"main": [
[
{
"node": "Create Image Ad",
"type": "main",
"index": 0
}
]
]
},
"When clicking ‘Test workflow’": {
"main": [
[
{
"node": "settings_1",
"type": "main",
"index": 0
}
]
]
}
}
}