The universal search service makes it easier to search for objects without specifying an object type. We found that many clients use codes in the naming convention of objects that are associated to each other and you can us the universal search service in order to pull all objects associated with that code. You can also use universal search service to search for objects within a certain object type.
Using Search with No Parameters
If you would like to search for objects across all object types that have the term "hairspray" in them, you can do so by posting 'api.appnexus.com/search?q=hairspray'. This will return objects that have hairspray in the name, ID, or code.
The API will automatically return results for the following object types:
- insertion order
- line items
- segment pixels
- conversion pixels
Using Search with a Parameter
If you would like to use universal search to search for a certain object type, you can include a parameter: "type=creative".
When you do not specify a certain object type, we will return 30 objects per object type.
Xandr indexes the first 42 characters of each word. If an individual word is longer than 42 characters, and you search for characters after the 42nd, your search will not return the results you're looking for.
Please note that the "weight" parameter is a very rough estimation of search match, but is not reliable and should be ignored for now.