Reference documentation and code samples for the Google Ads Ad Manager V1 Client class Sort.
Represents a sorting in a report.
Generated from protobuf message google.ads.admanager.v1.Report.Sort
Namespace
Google \ Ads \ AdManager \ V1 \ ReportMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ field
↳ descending
bool
Optional. The sort order. If true the sort will be descending.
↳ slice
↳ time_period_index
int
Optional. When using time period columns, use this to sort on a specific column.
↳ metric_value_type
int
Optional. Use to specify which metric value type to sort on. Defaults to PRIMARY.
getField
Required. A field (dimension or metric) to sort by.
hasField
clearField
setField
Required. A field (dimension or metric) to sort by.
$this
getDescending
Optional. The sort order. If true the sort will be descending.
bool
setDescending
Optional. The sort order. If true the sort will be descending.
var
bool
$this
getSlice
Optional. Use to sort on a specific slice of data.
hasSlice
clearSlice
setSlice
Optional. Use to sort on a specific slice of data.
$this
getTimePeriodIndex
Optional. When using time period columns, use this to sort on a specific column.
int
hasTimePeriodIndex
clearTimePeriodIndex
setTimePeriodIndex
Optional. When using time period columns, use this to sort on a specific column.
var
int
$this
getMetricValueType
Optional. Use to specify which metric value type to sort on. Defaults to PRIMARY.
int
hasMetricValueType
clearMetricValueType
setMetricValueType
Optional. Use to specify which metric value type to sort on. Defaults to PRIMARY.
var
int
$this