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

Accepted Solutions (1)

Accepted Solutions (1)

ryanpraski

06-09-2016

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" ] } ] } } ] } } 

Answers (2)

Answers (2)

hyderziaee

Employee

05-09-2016

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" ] } ] } } ] } }