Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
huuvan20 opened this issue Mar 8, 2023 · 0 comments
Assignees
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. samples Issues that are directly related to samples.

Comments

@huuvan20
Copy link

huuvan20 commented Mar 8, 2023

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

@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Mar 8, 2023
@huuvan20 huuvan20 changed the title dimension_filter or order_by or metric_filter Is Not Working dimension_filter, order_by & metric_filter Are Not Working Mar 8, 2023
@ikuleshov ikuleshov self-assigned this Mar 8, 2023
@huuvan20 huuvan20 changed the title dimension_filter, order_by & metric_filter Are Not Working dimension_filter, order_by & metric_filter Are Not Working in BetaAnalyticsDataClient runReport Mar 9, 2023
@yash30201 yash30201 added the priority: p3 Desirable enhancement or fix. May not be included in next release. label May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. samples Issues that are directly related to samples.
Projects
None yet
Development

No branches or pull requests

3 participants