GoogleCloudPlatform / GoogleCloudPlatform/php-docs-samples

dimension_filter, order_by & metric_filter Are Not Working in BetaAnalyticsDataClient runReport

Open
#1,782 0 comments 0 reactions 1 assignee Claimed by @ikuleshov View on GitHub
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

Screen Shot 2023-03-08 at 14 18 01

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.