run report in ga 4: everything works if I do not use any dimensions or use a dimension (for example return users by countryId).
But it is not clear how to FILTER based on a dimensions, such as countryID: US. Clicking Pipedream’s link to Google API docs shows values like countryId etc.
So you would think this would work:
- Dimension Filter
- key: countryId
- value: US
But this returns error. It doesn’t recognize the dimension filter key:
{“error”:{“code”:400,“message”:“Invalid JSON payload received. Unknown name "countryId" at ‘dimension_filter’: Cannot find field.”,“status”:“INVALID_ARGUMENT”,“details”:[{“@type”:“type.googleapis.com/google.rpc.BadRequest",“fieldViolations”:[{“field”:“dimension_filter”,“description”:"Invalid JSON payload received. Unknown name "countryId" at ‘dimension_filter’: Cannot find field.”}]}]}}
Thoughts? Thanks.