I was using Google My business V4.9, I used to do
for (LocationMetrics locationMetrics : reportInsights.getLocationMetrics()) {
List <MetricValue> metricValue = locationMetrics.getMetricValues();
metricValue.get(0).getDimensionalValues().get(0).getValue())
and I was getting the value of the specific metric, but now after they have changed it to Business Profile Performance, I get a response of type GetDailyMetricsTimeSeriesResponse
, I can't find any documentation that explains what is the structure of this response and how can I get the value of the metrics.
I'm using this answer to create the request
I can see that the new API have this object TimeSeries as a response.