Contents

Sorting

Sort condition for reporting requests.

Declaration

object Sorting

Properties

NameTypeDescription
fieldstring

The name of the field to sort on (for example, localSpend, impressions).

orderstring

The sort direction for the specified field. Possible values: ASC (lowest to highest), DESC (highest to lowest).

Discussion

The Sorting specifies a single sort condition for a reporting request.

Multiple Sorting objects can be included in the sorting array of a reporting request to apply multi-level sorting: results are sorted by the first entry first, then by subsequent entries for ties. When you omit sorting, the API sorts results by entity id in ascending order by default.

Example

{
  "field": "localSpend",
  "order": "DESC"
}

See Also