GoogleCloudPlatform / GoogleCloudPlatform/php-docs-samples
dimension_filter, order_by & metric_filter Are Not Working in BetaAnalyticsDataClient runReport
Open
priority: p3
samples
- Dominant language
- PHP
- Stars
- 1k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
I use the dimension_filter, which does not filter anything in the response.
```
'dimension_filter' => new FilterExpression([
'filter' => new Filter([
'field_name' => 'pagePath',
'string_filter' => new StringFilter([
'match_type' => MatchType::CONTAINS,
'value' => 'can-youtube-tv-be-shared',
]),
]),
]),
```
I tested with the same parameters again in APIs Explorer. And it works properly as below:
https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport
Contributor guide
Assessment
This issue has not been assessed yet.