Skip to end of metadata
Go to start of metadata

Search Service

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.

The Search Service is different from the Lookup Service because it allows you to search for objects with a specific name, code, or ID. The Lookup Service returns all objects of a certain type in your account.

You can also search and filter using individual services. See API Semantics for details.

On This Page

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:

  • advertiser
  • insertion order
  • line items
  • campaigns
  • creatives
  • segment pixels
  • conversion pixels
  • publishers
  • placements
  • sites

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".

Search Results

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.

Example

Please note that the "weight" parameter is a very rough estimation of search match, but is not reliable and should be ignored for now.