-
Are the exclude and include filters in filterExpression() function in Google Data API not working correctly when using Python?
Hey there! So I’m trying to figure something out with an audience filter and internal traffic, and maybe you can help me out? You see, because the “Test Data Filter Name” dimension isn’t available in the audience creation filter in GA4, I’ve been using it as an extra filter along with audienceName in the Google Data API.
Here’s the thing: I seem to be getting the exact same output for using just the Audience Name versus using the Audience Name and excluding Internal Traffic. I thought those two would give different results. Have you come across this before?
Here’s what I’ve got going on so far:
`python
def get_report(start_date, end_date_delta):
return client.run_report(RunReportRequest(
…
`
I’ve also attached a snapshot from my GA4 dashboard showing the numbers for both the filters. They definitely should have been different. Here’s the link to the image: ![GA4 Dashboard](https://i.stack.imgur.com/9xNDu.png).
Any thoughts on why this might be happening? I appreciate any suggestions or solutions you might have!
Log in to reply.