Skip to content

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

Open

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

Activity

  1. changed the title [-]dimension_filter or order_by or metric_filter Is Not Working[/-] [+]dimension_filter, order_by & metric_filter Are Not Working[/+] on Mar 8, 2023
  2. self-assigned this
    on Mar 8, 2023
  3. changed the title [-]dimension_filter, order_by & metric_filter Are Not Working[/-] [+]dimension_filter, order_by & metric_filter Are Not Working in BetaAnalyticsDataClient runReport[/+] on Mar 9, 2023
  4. added
    priority: p3Desirable enhancement or fix. May not be included in next release.
    on May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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