Expand my Community achievements bar.

Join us for the next Community Q&A Coffee Break on Tuesday April 23, 2024 with Eric Matisoff, Principal Evangelist, Analytics & Data Science, who will join us to discuss all the big news and announcements from Summit 2024!
SOLVED

Are Two or more filter possible in Adobe Analytics API Query?

Avatar

Level 4

Is it possible to have 2 or more filters in an Adobe Analytics v1.4 API query or can you only have one filter per query. 

Thanks,

Ryan Praskievicz

www.ryanpraski.com

1 Accepted Solution

Avatar

Correct answer by
Level 4

Thanks a lot for the help. I was able to use your example to apply multiple filters to my Adobe Analytics API v 1.4 Real-time query. The code example I used is below.

{ "reportDescription":{ "source": "realtime", "reportSuiteID":"RSID", "metrics":[ {"id":"pageviews"} ], "elements": [ { "id": "page", "search": { "type": "AND", "searches": [ { "type": "OR", "keywords": [ "YYYY", "CCCCCCC" ] }, { "type": "NOT", "keywords": [ "XXXXX" ] } ] } } ] } } 

View solution in original post

3 Replies

Avatar

Employee Advisor

Hi Ryan,

The API allows multiple filters as well. Here is an example request:

{ "reportDescription": { "dateFrom": "YYYY-MM-DD", "dateTo": "YYYY-MM-DD", "reportSuiteID": "RSID", "elements": [ { "id": "page", "search": { "type": "or", "searches": [ { "type": "or", "keywords": [ "women", "men" ] }, { "type": "and", "keywords": [ "home" ] } ] } } ] } }

Avatar

Correct answer by
Level 4

Thanks a lot for the help. I was able to use your example to apply multiple filters to my Adobe Analytics API v 1.4 Real-time query. The code example I used is below.

{ "reportDescription":{ "source": "realtime", "reportSuiteID":"RSID", "metrics":[ {"id":"pageviews"} ], "elements": [ { "id": "page", "search": { "type": "AND", "searches": [ { "type": "OR", "keywords": [ "YYYY", "CCCCCCC" ] }, { "type": "NOT", "keywords": [ "XXXXX" ] } ] } } ] } }