Google Analytics Data V1beta Client - Class PivotOrderBy (0.22.3)

Reference documentation and code samples for the Google Analytics Data V1beta Client class PivotOrderBy.

Sorts by a pivot column group.

Generated from protobuf message google.analytics.data.v1beta.OrderBy.PivotOrderBy

Namespace

Google \ Analytics \ Data \ V1beta \ OrderBy

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ metric_name
string

In the response to order by, order rows by this column. Must be a metric name from the request.

↳ pivot_selections
array< PivotOrderBy\PivotSelection >

Used to select a dimension name and value pivot. If multiple pivot selections are given, the sort occurs on rows where all pivot selection dimension name and value pairs match the row's dimension name and value pair.

getMetricName

In the response to order by, order rows by this column. Must be a metric name from the request.

Returns
Type
Description
string

setMetricName

In the response to order by, order rows by this column. Must be a metric name from the request.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getPivotSelections

Used to select a dimension name and value pivot. If multiple pivot selections are given, the sort occurs on rows where all pivot selection dimension name and value pairs match the row's dimension name and value pair.

Returns
Type
Description

setPivotSelections

Used to select a dimension name and value pivot. If multiple pivot selections are given, the sort occurs on rows where all pivot selection dimension name and value pairs match the row's dimension name and value pair.

Parameter
Name
Description
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: