Skip to content

dimension_filter, order_by & metric_filter Are Not Working in BetaAnalyticsDataClient runReport #1782

@huuvan20

Description

@huuvan20

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

Metadata

Metadata

Assignees

Labels

priority: p3Desirable enhancement or fix. May not be included in next release.samplesIssues that are directly related to samples.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions