While code in python3 for Google Analytics API I am stuck at a point where I have to use Multiple Segment in the condition. But as per the GA's API Doc the way I use the code will only return me the data in the "OR" condition but I want the result to be in "AND" condition.
Result I want:
sessions::condition::ga:pagePath=@/xxxxx;ga:eventAction==xxxxx
but the current result:
sessions::condition::ga:pagePath=@/xxxxx,ga:eventAction==xxxxx
The code for the segment will be something like as below which is giving me the result in "OR" condition is
"segments":[{"dynamicSegment":{"name":"Page","sessionSegment":{"segmentFilters":[{"simpleSegment":{"orFiltersForSegment":[{"segmentFilterClauses":[{"dimensionFilter":{"dimensionName":"ga:pagePath","expressions":["/xxxxx"],"operator":"PARTIAL"}}]}]}}]}}}, {"dynamicSegment":{"name":"UpGrade","sessionSegment":{"segmentFilters":[{"simpleSegment":{"orFiltersForSegment":[{"segmentFilterClauses":[{"dimensionFilter":{"dimensionName":"ga:eventAction","expressions":["xxxxx"],"operator":"EXACT"}}]}]}}]}}}]
Can any one help in the above code so I can have the output in "AND" condition.
Thanks in Advance.