{
  "name": "Multiple 1 x 1 Placement Tracking Campaign - n8n Workflow",
  "nodes": [
    {
      "parameters": {
        "method": "POST",
        "url": "=https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/{{ $json.profile_id }}/advertiserLandingPages",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "googleOAuth2Api",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"name\": \"{{ $('CM360 YouTube Campaign Database').item.json.landing_page_name }}\",\n  \"url\": \"{{ $('CM360 YouTube Campaign Database').item.json.landing_page_url }}\",\n  \"advertiserId\": \"{{ $('CM360 YouTube Campaign Database').item.json.advertiser_id }}\"\n}\n",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        1152,
        -816
      ],
      "id": "dc1e2ae1-9b29-4ba7-84ac-811ae16e3143",
      "name": "Landing Page Creation"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "=https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/{{ $('CM360 YouTube Campaign Database').item.json.profile_id }}/campaigns",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "googleOAuth2Api",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"name\": \"{{ $('CM360 YouTube Campaign Database').item.json.campaign_name }}\",\n  \"advertiserId\": \"{{ $('CM360 YouTube Campaign Database').item.json.advertiser_id }}\",\n  \"status\": \"ACTIVE\",\n  \"startDate\": \"{{ $('CM360 YouTube Campaign Database').item.json['Start Date'] }}\",\n  \"endDate\": \"{{ $('CM360 YouTube Campaign Database').item.json['End Date'] }}\",\n  \"defaultLandingPageId\": \"{{ $('Update Sheet - Landing Page ID').item.json.landing_page_id }}\"\n}\n",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        1984,
        -640
      ],
      "id": "46b4b806-b987-4d8a-927a-92166715e685",
      "name": "Campaign Creation"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "=https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/{{ $('CM360 YouTube Campaign Database').item.json.profile_id }}/placements",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "googleOAuth2Api",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"name\": \"{{ $('CM360 YouTube Campaign Database').item.json.campaign_name }}\",\n  \"campaignId\": \"{{ $json.campaign_id }}\",\n  \"siteId\": \"{{ $('CM360 YouTube Campaign Database').item.json.site_id }}\",\n  \"size\": { \"width\": 1, \"height\": 1 },\n  \"paymentSource\": \"PLACEMENT_AGENCY_PAID\",\n  \"compatibility\": \"DISPLAY\",\n  \"status\": \"PAYMENT_ACCEPTED\",\n  \"tagFormats\": [\"PLACEMENT_TAG_STANDARD\"],\n  \"pricingSchedule\": {\n    \"startDate\": \"{{ $('CM360 YouTube Campaign Database').item.json[\"Start Date\"] }}\",\n    \"endDate\": \"{{ $('CM360 YouTube Campaign Database').item.json[\"End Date\"] }}\",\n    \"pricingType\": \"PRICING_TYPE_CPM\"\n  }\n}\n",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        2464,
        -864
      ],
      "id": "d1de7509-c051-4880-8c1a-e8befa808677",
      "name": "Placement Creation"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "=https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/{{ $('CM360 YouTube Campaign Database').item.json.profile_id }}/creatives",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "googleOAuth2Api",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"name\": \"{{ $('CM360 YouTube Campaign Database').item.json.creative_name }}\",\n  \"advertiserId\": \"{{ $('CM360 YouTube Campaign Database').item.json.advertiser_id }}\",\n  \"type\": \"TRACKING_TEXT\",\n  \"active\": true,\n  \"size\": {\n    \"width\": 1,\n    \"height\": 1\n  }\n}\n",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        2896,
        -528
      ],
      "id": "abc7fa19-c556-49f1-9b8c-33042eb75ac8",
      "name": "1 x 1 Tracking Creative Creation"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "=https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/{{ $('CM360 YouTube Campaign Database').item.json.profile_id }}/campaigns/{{ $('Placement Creation').item.json.campaignId }}/campaignCreativeAssociations",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "googleOAuth2Api",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"creativeId\": \"{{ $('1 x 1 Tracking Creative Creation').item.json.id }}\"\n}\n",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        2640,
        -304
      ],
      "id": "506a00af-d473-4e75-a3aa-ea2abe72667b",
      "name": "Associate Creative with Campaign"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "=https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/{{ $('CM360 YouTube Campaign Database').item.json.profile_id }}/ads",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "googleOAuth2Api",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"name\": \"{{ $('CM360 YouTube Campaign Database').item.json.ad_name }}\",\n  \"campaignId\": \"{{ $('Placement Creation').item.json.campaignId }}\",\n  \"type\": \"AD_SERVING_TRACKING\",\n  \"active\": true,\n  \"startTime\": \"{{ $('Placement Creation').item.json.pricingSchedule.startDate }}T21:00:00Z\",\n  \"endTime\": \"{{ $('Placement Creation').item.json.pricingSchedule.pricingPeriods[0].endDate }}T23:59:59Z\",\n  \"placementAssignments\": [\n    {\n      \"placementId\": \"{{ $('Placement Creation').item.json.id }}\",\n      \"active\": true\n    }\n  ],\n  \"creativeRotation\": {\n    \"type\": \"CREATIVE_ROTATION_TYPE_RANDOM\",\n    \"creativeAssignments\": [\n      {\n        \"creativeId\": \"{{ $json.creativeId }}\",\n        \"active\": true,\n        \"sequence\": 1,\n        \"clickThroughUrl\": {\n          \"defaultLandingPage\": true\n        }\n      }\n    ]\n  }\n}\n",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        2896,
        -304
      ],
      "id": "e73a4ba4-afb1-4566-b59f-7a57a5a53571",
      "name": "Create the Tracking Ad (link Campaign + Placement + Creative)"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 3
          },
          "conditions": [
            {
              "id": "c5bebfa1-33be-46dc-9e4b-55905c6a45e3",
              "leftValue": "={{ $json.status }}",
              "rightValue": "",
              "operator": {
                "type": "string",
                "operation": "empty",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        720,
        -864
      ],
      "id": "309643d4-12dd-4aaf-884e-d5955232ac75",
      "name": "If"
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "value": "REPLACE_WITH_YOUR_GOOGLE_SHEET_ID"
        },
        "sheetName": {
          "value": "REPLACE_WITH_YOUR_SHEET_GID (e.g., gid=0)"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "landing_page_id": "={{ $json.id }}",
            "row_number": "={{ $('CM360 YouTube Campaign Database').item.json.row_number }}"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "profile_id",
              "displayName": "profile_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "advertiser_id",
              "displayName": "advertiser_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "landing_page_name",
              "displayName": "landing_page_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "landing_page_url",
              "displayName": "landing_page_url",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "landing_page_id",
              "displayName": "landing_page_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "campaign_name",
              "displayName": "campaign_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "campaign_id",
              "displayName": "campaign_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "placement_name",
              "displayName": "placement_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "placement_id",
              "displayName": "placement_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "creative_name",
              "displayName": "creative_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "creative_id",
              "displayName": "creative_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "ad_name",
              "displayName": "ad_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "ad_id",
              "displayName": "ad_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Start Date",
              "displayName": "Start Date",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "End Date",
              "displayName": "End Date",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "site_id",
              "displayName": "site_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "status",
              "displayName": "status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        1328,
        -848
      ],
      "id": "455a0d9c-c79a-499c-945a-bdef4c052d28",
      "name": "Update Sheet - Landing Page ID"
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "value": "REPLACE_WITH_YOUR_GOOGLE_SHEET_ID"
        },
        "sheetName": {
          "value": "REPLACE_WITH_YOUR_SHEET_GID (e.g., gid=0)"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $('CM360 YouTube Campaign Database').item.json.row_number }}",
            "campaign_id": "={{ $json.idDimensionValue.value }}"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "profile_id",
              "displayName": "profile_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "advertiser_id",
              "displayName": "advertiser_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "landing_page_name",
              "displayName": "landing_page_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "landing_page_url",
              "displayName": "landing_page_url",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "landing_page_id",
              "displayName": "landing_page_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "campaign_name",
              "displayName": "campaign_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "campaign_id",
              "displayName": "campaign_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "placement_name",
              "displayName": "placement_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "placement_id",
              "displayName": "placement_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "creative_name",
              "displayName": "creative_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "creative_id",
              "displayName": "creative_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "ad_name",
              "displayName": "ad_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "ad_id",
              "displayName": "ad_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Start Date",
              "displayName": "Start Date",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "End Date",
              "displayName": "End Date",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "status",
              "displayName": "status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "error",
              "displayName": "error",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        2176,
        -624
      ],
      "id": "d4f0b874-af7a-4bdf-bf6d-bd5ffa264a3a",
      "name": "Update Sheet - Campaign ID",
      "alwaysOutputData": true
    },
    {
      "parameters": {
        "url": "=https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/{{ $('CM360 YouTube Campaign Database').item.json.profile_id }}/campaigns?advertiserId={{ $('CM360 YouTube Campaign Database').item.json.advertiser_id }}&searchString={{ $('CM360 YouTube Campaign Database').item.json.campaign_name }}",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "googleOAuth2Api",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        1552,
        -848
      ],
      "id": "3a458ded-89a6-49d2-80bc-1558e1987696",
      "name": "Find Campaign by Name"
    },
    {
      "parameters": {
        "mode": "raw",
        "jsonOutput": "={\n  \" {{ $json.campaigns[0].id }}\": \"{{ $json.campaigns[0].id }}\"\n}\n",
        "includeOtherFields": true,
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        1984,
        -864
      ],
      "id": "ca185366-f01d-43d9-a717-74784f5bc8c3",
      "name": "Set Campaign ID (Existing)"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 3
          },
          "conditions": [
            {
              "id": "cf118d6e-0e9a-4093-9783-a1207ad40389",
              "leftValue": "={{ $json.campaigns[0].id }}",
              "rightValue": "",
              "operator": {
                "type": "string",
                "operation": "notEmpty",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        1776,
        -848
      ],
      "id": "b4786ebd-c1f0-4eb4-89cc-0808f69d8a6d",
      "name": "If Campaign Exists or Not",
      "alwaysOutputData": false
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "value": "REPLACE_WITH_YOUR_GOOGLE_SHEET_ID"
        },
        "sheetName": {
          "value": "REPLACE_WITH_YOUR_SHEET_GID (e.g., gid=0)"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $('CM360 YouTube Campaign Database').item.json.row_number }}",
            "campaign_id": "={{ $json.campaigns[0].id }}"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "profile_id",
              "displayName": "profile_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "advertiser_id",
              "displayName": "advertiser_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "landing_page_name",
              "displayName": "landing_page_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "landing_page_url",
              "displayName": "landing_page_url",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "landing_page_id",
              "displayName": "landing_page_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "campaign_name",
              "displayName": "campaign_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "campaign_id",
              "displayName": "campaign_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "placement_name",
              "displayName": "placement_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "placement_id",
              "displayName": "placement_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "creative_name",
              "displayName": "creative_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "creative_id",
              "displayName": "creative_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "ad_name",
              "displayName": "ad_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "ad_id",
              "displayName": "ad_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Start Date",
              "displayName": "Start Date",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "End Date",
              "displayName": "End Date",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "site_id",
              "displayName": "site_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "status",
              "displayName": "status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "error",
              "displayName": "error",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        2176,
        -864
      ],
      "id": "1e606357-1a6f-4a9c-a1f4-9987bd348fff",
      "name": "Update Sheet - Campaign ID (Existing)",
      "alwaysOutputData": true
    },
    {
      "parameters": {
        "documentId": {
          "value": "REPLACE_WITH_YOUR_GOOGLE_SHEET_ID"
        },
        "sheetName": {
          "value": "REPLACE_WITH_YOUR_SHEET_GID (e.g., gid=0)"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        496,
        -832
      ],
      "id": "cfbe36ef-5a4a-45ef-a431-d2a03b2219c7",
      "name": "CM360 YouTube Campaign Database"
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "value": "REPLACE_WITH_YOUR_GOOGLE_SHEET_ID"
        },
        "sheetName": {
          "value": "REPLACE_WITH_YOUR_SHEET_GID (e.g., gid=0)"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $('CM360 YouTube Campaign Database').item.json.row_number }}",
            "placement_id": "={{ $json.id }}"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "profile_id",
              "displayName": "profile_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "advertiser_id",
              "displayName": "advertiser_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "landing_page_name",
              "displayName": "landing_page_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "landing_page_url",
              "displayName": "landing_page_url",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "landing_page_id",
              "displayName": "landing_page_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "campaign_name",
              "displayName": "campaign_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "campaign_id",
              "displayName": "campaign_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "placement_name",
              "displayName": "placement_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "placement_id",
              "displayName": "placement_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "creative_name",
              "displayName": "creative_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "creative_id",
              "displayName": "creative_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "ad_name",
              "displayName": "ad_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "ad_id",
              "displayName": "ad_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Start Date",
              "displayName": "Start Date",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "End Date",
              "displayName": "End Date",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "site_id",
              "displayName": "site_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "status",
              "displayName": "status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "error",
              "displayName": "error",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        2640,
        -528
      ],
      "id": "90ad215b-c775-4dbd-ae54-316c944998a3",
      "name": "Update Sheet - Placement ID"
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "value": "REPLACE_WITH_YOUR_GOOGLE_SHEET_ID"
        },
        "sheetName": {
          "value": "REPLACE_WITH_YOUR_SHEET_GID (e.g., gid=0)"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $('CM360 YouTube Campaign Database').item.json.row_number }}",
            "creative_id": "={{ $json.id }}"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "profile_id",
              "displayName": "profile_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "advertiser_id",
              "displayName": "advertiser_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "landing_page_name",
              "displayName": "landing_page_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "landing_page_url",
              "displayName": "landing_page_url",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "landing_page_id",
              "displayName": "landing_page_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "campaign_name",
              "displayName": "campaign_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "campaign_id",
              "displayName": "campaign_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "placement_name",
              "displayName": "placement_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "placement_id",
              "displayName": "placement_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "creative_name",
              "displayName": "creative_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "creative_id",
              "displayName": "creative_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "ad_name",
              "displayName": "ad_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "ad_id",
              "displayName": "ad_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Start Date",
              "displayName": "Start Date",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "End Date",
              "displayName": "End Date",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "site_id",
              "displayName": "site_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "status",
              "displayName": "status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "error",
              "displayName": "error",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        3136,
        -528
      ],
      "id": "d7eb2f8c-33d2-498b-8374-caad6ec97493",
      "name": "Update Sheet - Creative ID"
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "value": "REPLACE_WITH_YOUR_GOOGLE_SHEET_ID"
        },
        "sheetName": {
          "value": "REPLACE_WITH_YOUR_SHEET_GID (e.g., gid=0)"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $('CM360 YouTube Campaign Database').item.json.row_number }}",
            "ad_id": "={{ $json.id }}"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "profile_id",
              "displayName": "profile_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "advertiser_id",
              "displayName": "advertiser_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "landing_page_name",
              "displayName": "landing_page_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "landing_page_url",
              "displayName": "landing_page_url",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "landing_page_id",
              "displayName": "landing_page_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "campaign_name",
              "displayName": "campaign_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "campaign_id",
              "displayName": "campaign_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "placement_name",
              "displayName": "placement_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "placement_id",
              "displayName": "placement_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "creative_name",
              "displayName": "creative_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "creative_id",
              "displayName": "creative_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "ad_name",
              "displayName": "ad_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "ad_id",
              "displayName": "ad_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Start Date",
              "displayName": "Start Date",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "End Date",
              "displayName": "End Date",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "site_id",
              "displayName": "site_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "status",
              "displayName": "status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "error",
              "displayName": "error",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        3120,
        -304
      ],
      "id": "134c0a6a-a024-430b-9c2c-cd75819b022c",
      "name": "Update Sheet - Ad ID"
    },
    {
      "parameters": {
        "documentId": {
          "value": "REPLACE_WITH_YOUR_GOOGLE_SHEET_ID"
        },
        "sheetName": {
          "value": "REPLACE_WITH_YOUR_SHEET_GID (e.g., gid=0)"
        },
        "combineFilters": "OR",
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        2640,
        -80
      ],
      "id": "f9a26b68-1b50-4b3f-ab05-b0c8d3938e33",
      "name": "Get Updated Row (for status check)",
      "alwaysOutputData": true
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "value": "REPLACE_WITH_YOUR_GOOGLE_SHEET_ID"
        },
        "sheetName": {
          "value": "REPLACE_WITH_YOUR_SHEET_GID (e.g., gid=0)"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $json.row_number }}",
            "status": "Success"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "profile_id",
              "displayName": "profile_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "advertiser_id",
              "displayName": "advertiser_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "landing_page_name",
              "displayName": "landing_page_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "landing_page_url",
              "displayName": "landing_page_url",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "landing_page_id",
              "displayName": "landing_page_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "campaign_name",
              "displayName": "campaign_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "campaign_id",
              "displayName": "campaign_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "placement_name",
              "displayName": "placement_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "placement_id",
              "displayName": "placement_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "creative_name",
              "displayName": "creative_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "creative_id",
              "displayName": "creative_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "ad_name",
              "displayName": "ad_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "ad_id",
              "displayName": "ad_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Start Date",
              "displayName": "Start Date",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "End Date",
              "displayName": "End Date",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "site_id",
              "displayName": "site_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "status",
              "displayName": "status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "error",
              "displayName": "error",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        3152,
        -80
      ],
      "id": "19e05e1b-a4c7-4f82-94c3-5d2975fdc3d6",
      "name": "Success Branch"
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "seconds",
              "secondsInterval": 1
            }
          ]
        }
      },
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.3,
      "position": [
        288,
        -816
      ],
      "id": "b8b1e2fe-5004-4c2b-a06d-240138a4f33f",
      "name": "Schedule Trigger"
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "n8n-nodes-base.splitInBatches",
      "typeVersion": 3,
      "position": [
        944,
        -912
      ],
      "id": "058e52e6-0f22-40f7-baf1-801c52de8a36",
      "name": "Loop Over Items",
      "alwaysOutputData": true
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "loose",
            "version": 3
          },
          "conditions": [
            {
              "id": "1179cae6-e478-4808-950e-7f560737ec7a",
              "leftValue": "={{ $json.landing_page_id }}",
              "rightValue": 0,
              "operator": {
                "type": "string",
                "operation": "notEmpty",
                "singleValue": true
              }
            },
            {
              "id": "cd2eab37-0c32-447d-9d3b-8968e4afd96b",
              "leftValue": "={{ $json.campaign_id }}",
              "rightValue": 0,
              "operator": {
                "type": "string",
                "operation": "notEmpty",
                "singleValue": true
              }
            },
            {
              "id": "07b764a5-70bb-49e9-aa20-d48c3bf3e1d9",
              "leftValue": "={{ $json.placement_id }}",
              "rightValue": 0,
              "operator": {
                "type": "string",
                "operation": "notEmpty",
                "singleValue": true
              }
            },
            {
              "id": "a6a823cb-961a-4b5a-94f0-bfce5b074ab8",
              "leftValue": "={{ $json.creative_id }}",
              "rightValue": 0,
              "operator": {
                "type": "string",
                "operation": "notEmpty",
                "singleValue": true
              }
            },
            {
              "id": "13911aa7-9da9-4387-8d15-509087a1c853",
              "leftValue": "={{ $json.ad_id }}",
              "rightValue": 0,
              "operator": {
                "type": "string",
                "operation": "notEmpty",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "looseTypeValidation": true,
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        2912,
        -64
      ],
      "id": "6806b227-919e-44bb-acb8-2f458d1c4fc4",
      "name": "Checks for Empty ID's"
    }
  ],
  "pinData": {},
  "connections": {
    "Landing Page Creation": {
      "main": [
        [
          {
            "node": "Update Sheet - Landing Page ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Campaign Creation": {
      "main": [
        [
          {
            "node": "Update Sheet - Campaign ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Placement Creation": {
      "main": [
        [
          {
            "node": "Update Sheet - Placement ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1 x 1 Tracking Creative Creation": {
      "main": [
        [
          {
            "node": "Update Sheet - Creative ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Associate Creative with Campaign": {
      "main": [
        [
          {
            "node": "Create the Tracking Ad (link Campaign + Placement + Creative)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "Update Sheet - Landing Page ID": {
      "main": [
        [
          {
            "node": "Find Campaign by Name",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Sheet - Campaign ID": {
      "main": [
        [
          {
            "node": "Placement Creation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find Campaign by Name": {
      "main": [
        [
          {
            "node": "If Campaign Exists or Not",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Campaign ID (Existing)": {
      "main": [
        [
          {
            "node": "Update Sheet - Campaign ID (Existing)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Campaign Exists or Not": {
      "main": [
        [
          {
            "node": "Set Campaign ID (Existing)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Campaign Creation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Sheet - Campaign ID (Existing)": {
      "main": [
        [
          {
            "node": "Placement Creation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "CM360 YouTube Campaign Database": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Sheet - Placement ID": {
      "main": [
        [
          {
            "node": "1 x 1 Tracking Creative Creation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Sheet - Creative ID": {
      "main": [
        [
          {
            "node": "Associate Creative with Campaign",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create the Tracking Ad (link Campaign + Placement + Creative)": {
      "main": [
        [
          {
            "node": "Update Sheet - Ad ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Sheet - Ad ID": {
      "main": [
        [
          {
            "node": "Get Updated Row (for status check)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Updated Row (for status check)": {
      "main": [
        [
          {
            "node": "Checks for Empty ID's",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "CM360 YouTube Campaign Database",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Landing Page Creation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Success Branch": {
      "main": [
        []
      ]
    },
    "Checks for Empty ID's": {
      "main": [
        [
          {
            "node": "Success Branch",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1",
    "availableInMCP": false
  },
  "tags": []
}