Search filters
Use search filters to limit the data returned so that reports show only the values you need. For example, if you have thousands of records but only a few have needed reports, you can use filtering to return and find them quickly. Some filters also allow you to include, group, or present data in convenient formats, such as breakdown reports.
You can use the search parameter to filter your results more narrowly. The search parameter includes the following options:
itemId- A single ID to include in the reportitemIds- A list of itemIds to include in the report (shown in the example)excludeItemIds- A list of itemIds to exclude in the reportclause- A search clause to use when filtering dimensionsincludeSearchTotal- Includes a special element called 'searchTotals' in the response that contains the total of the filtered items. The default isfalse.
Adobe may add optional request and response members (name/value pairs) to existing API objects at any time and without notice or changes in versioning. Adobe recommends that you refer to the API documentation of any third-party tool you integrate with our APIs so that such additions are ignored in processing if not understood. If implemented properly, such additions are non-breaking changes for your implementation. Adobe will not remove parameters or add required parameters without first providing standard notification through release notes.
Example search Request
The following example requests data only for campaigns "10" and "11" with the search parameter by using their itemIds (line 9). The response returns the data requested for the itemId associated with campaigns 10 and 11 (lines 18-21 and 25-28).
Copied to your clipboard{"rsid":"examplersid","globalFilters":[{"type":"dateRange","dateRange":"YYYY-01-31T00:00:00.000/YYYY-02-06T23:59:59.999"}],"search":{"itemIds":[743855946,511036305]},"metricContainer":{"metrics":[{"columnId":"0","id":"metrics/pageviews","filters":["0"]}],"metricFilters":[{"id":"0","type":"dateRange","dateRange":"YYYY-01-31T00:00:00.000/YYYY-02-06T23:59:59.999"}]},"dimension":"variables/evar1","settings":{"dimensionSort":"asc","limit":5}}
Copied to your clipboard{"totalPages":1,"firstPage":true,"lastPage":true,"numberOfElements":2,"number":0,"totalElements":2,"columns":{"dimension":{"id":"variables/evar1","type":"string"},"columnIds":["0"]},"rows":[{"itemId":"511036305","value":"11","data":[1631.0]},{"itemId":"743855946","value":"10","data":[2032.0]}],"summaryData":{"totals":[104310.0]}}
Using clause Parameters
The search parameter also includes the clause option. The clause parameter provides a powerful tool for filtering data. To use it, follow these rules:
- It uses boolean operators
AND,OR, andNOT. - It uses operators
MATCH,CONTAINS,BEGINS-WITH, andENDS-WITH. - It uses group conditions with parenthesis.
- Strings are contained in single quotes.
- Searches are case-insensitive.
- If no operator is specified, a 'contains' match is performed.
- Valid operators are 'match' and 'contains'.
- Glob expressions are evaluated. If a literal
*is needed, use\*.
Example Clause statements
- Only include results that match the string 'home page':
MATCH 'home page' - Include pages that do not contain 'home page':
NOT CONTAINS 'home page' - Include pages that do not contain 'home page' or 'about us', but do contain 'contact us':
(NOT CONTAINS 'home page' OR NOT CONTAINS 'about us') AND (CONTAINS 'contact us') - Include pages that contain 'home page' or start with 'landing':
CONTAINS 'home page' OR BEGINS-WITH 'landing'


