Solved
how can I get Revenue from the API as it appeared in the UI
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?

