Yes, that is possible. You’ll need a minimum of four modules (can be further reduced to 3):
You aggregate all the bundles from the Google Ads module first, then perform the sums using Set multiple variables module.
View Module Export Code
JSON
{
"subflows": [
{
"flow": [
{
"id": 75,
"module": "json:ParseJSON",
"version": 1,
"parameters": {
"type": ""
},
"mapper": {
"json": "[\n {\n \"campaign\": {\n \"resourceName\": \"customers/6481301907/campaigns/20484330172\",\n \"status\": \"ENABLED\",\n \"name\": \"Discloused Information\",\n \"id\": \"20484330172\"\n },\n \"metrics\": {\n \"clicks\": \"1098\",\n \"conversions\": 660,\n \"costMicros\": \"301643201\",\n \"costPerConversion\": 457035.153030303,\n \"ctr\": 0.0031145225249757475,\n \"allConversions\": 1957,\n \"allConversionsFromClickToCall\": 0,\n \"allConversionsFromDirections\": 0,\n \"allConversionsFromOtherEngagement\": 0,\n \"averageCost\": 274720.58378870675,\n \"averageCpc\": 274720.58378870675,\n \"averageCpm\": 855623.4462844143,\n \"impressions\": \"352542\",\n \"phoneCalls\": \"8\",\n \"phoneImpressions\": \"935\"\n },\n \"__IMTLENGTH__\": 2,\n \"__IMTINDEX__\": 1\n },\n {\n \"campaign\": {\n \"resourceName\": \"customers/6481301907/campaigns/20485581784\",\n \"status\": \"ENABLED\",\n \"name\": \"Discloused Information\",\n \"id\": \"20485581784\"\n },\n \"metrics\": {\n \"clicks\": \"3509\",\n \"conversions\": 818,\n \"costMicros\": \"432883641\",\n \"costPerConversion\": 529197.6051344743,\n \"ctr\": 0.012041990823515685,\n \"allConversions\": 2289,\n \"allConversionsFromClickToCall\": 0,\n \"allConversionsFromDirections\": 0,\n \"allConversionsFromOtherEngagement\": 0,\n \"averageCost\": 123363.81903676261,\n \"averageCpc\": 123363.81903676261,\n \"averageCpm\": 1485545.9767945448,\n \"impressions\": \"291397\",\n \"phoneCalls\": \"93\",\n \"phoneImpressions\": \"18742\"\n },\n \"__IMTLENGTH__\": 2,\n \"__IMTINDEX__\": 2\n }\n]"
},
"metadata": {
"designer": {
"x": -105,
"y": -1746,
"name": "Google Ads Output"
},
"restore": {
"parameters": {
"type": {
"label": "Choose a data structure"
}
}
},
"parameters": [
{
"name": "type",
"type": "udt",
"label": "Data structure"
}
],
"expect": [
{
"name": "json",
"type": "text",
"label": "JSON string",
"required": true
}
]
}
},
{
"id": 76,
"module": "builtin:BasicAggregator",
"version": 1,
"parameters": {
"feeder": 75
},
"mapper": {
"campaign": "{{75.campaign}}",
"metrics": "{{75.metrics}}"
},
"metadata": {
"designer": {
"x": 137,
"y": -1747
},
"restore": {
"extra": {
"feeder": {
"label": "JSON - Parse JSON [75]"
},
"target": {
"label": "Custom"
}
}
}
}
},
{
"id": 77,
"module": "util:SetVariables",
"version": 1,
"parameters": {},
"mapper": {
"variables": [
{
"name": "Sum Of Clicks",
"value": "{{sum(map(76.array; \"metrics.clicks\"))}}"
},
{
"name": "Sum Of Conversions",
"value": "{{sum(map(76.array; \"metrics.conversions\"))}}"
},
{
"name": "Sum Of Impressions",
"value": "{{sum(map(76.array; \"metrics.impressions\"))}}"
},
{
"name": "Sum Of Phone Calls",
"value": "{{sum(map(76.array; \"metrics.phoneCalls\"))}}"
},
{
"name": "Sum Of Phone Impressions",
"value": "{{sum(map(76.array; \"metrics.phoneImpressions\"))}}"
}
],
"scope": "roundtrip"
},
"metadata": {
"designer": {
"x": 381,
"y": -1751
},
"restore": {
"expect": {
"variables": {
"items": [
null,
null,
null,
null,
null
]
},
"scope": {
"label": "One cycle"
}
}
},
"expect": [
{
"name": "variables",
"type": "array",
"label": "Variables",
"spec": [
{
"name": "name",
"label": "Variable name",
"type": "text",
"required": true
},
{
"name": "value",
"label": "Variable value",
"type": "any"
}
]
},
{
"name": "scope",
"type": "select",
"label": "Variable lifetime",
"required": true,
"validate": {
"enum": [
"roundtrip",
"execution"
]
}
}
],
"interface": [
{
"name": "Sum Of Clicks",
"label": "Sum Of Clicks",
"type": "any"
},
{
"name": "Sum Of Conversions",
"label": "Sum Of Conversions",
"type": "any"
},
{
"name": "Sum Of Impressions",
"label": "Sum Of Impressions",
"type": "any"
},
{
"name": "Sum Of Phone Calls",
"label": "Sum Of Phone Calls",
"type": "any"
},
{
"name": "Sum Of Phone Impressions",
"label": "Sum Of Phone Impressions",
"type": "any"
}
]
}
}
]
}
],
"metadata": {
"version": 1
}
}