Google Analytics 4 Data API (v1alpha): Is there a way to use segments with runReport?

Viewed 622

We can not find a way to use segments with runReport method.

Tried to get reports with segments in Google Analytics, we can get them like below.

enter image description here

But now, there's no property for them in parameters of the "runReport" method in Google Analytics Data API v1alpha.

ref: Method: runReport

  • entity
  • dimensions[]
  • metrics[]
  • dateRanges[]
  • offset
  • limit
  • metricAggregations[]
  • dimensionFilter

How should we request "runReport" with segments?

1 Answers
Related