I am using Query Metric Aggregates to get the campaign ID. I use "by": [ "$message" ]
Do you know how I can do this via the API?

I am using Query Metric Aggregates to get the campaign ID. I use "by": [ "$message" ]
Do you know how I can do this via the API?
Best answer by ronen tak
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
}
}
}
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.