Skip to main content

I am using Query Metric Aggregates to get the campaign ID. I use "by": [ "$message" ]

 I want to get the revenue for each campaign that he belongs to. Here, you can see what I want
Do you know how I can do this via the API?

 

I found out how to get it Metric Aggregates


"data": {
"type": "metric-aggregate",
"attributes": {
"measurements": :
"sum_value"
],
"filter": :
"greater-or-equal(datetime,2024-08-01)",
"less-than(datetime,2024-08-30)"
],
"by": :
"$attributed_message"
],
"interval": "month",
"metric_id": "Placed Order",
"page_size": 500
}
}
}

 

 


Reply