Class: Google::Apis::DoubleclickbidmanagerV2::Parameters

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/doubleclickbidmanager_v2/classes.rb,
lib/google/apis/doubleclickbidmanager_v2/representations.rb,
lib/google/apis/doubleclickbidmanager_v2/representations.rb

Overview

Parameters of a query or report.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Parameters

Returns a new instance of Parameters.



240
241
242
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 240

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#filtersArray<Google::Apis::DoubleclickbidmanagerV2::FilterPair>

Filters used to match traffic data in your report. Corresponds to the JSON property filters



217
218
219
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 217

def filters
  @filters
end

#group_bysArray<String>

Data is grouped by the filters listed in this field. Corresponds to the JSON property groupBys

Returns:

  • (Array<String>)


222
223
224
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 222

def group_bys
  @group_bys
end

#metricsArray<String>

Metrics to include as columns in your report. Corresponds to the JSON property metrics

Returns:

  • (Array<String>)


227
228
229
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 227

def metrics
  @metrics
end

#optionsGoogle::Apis::DoubleclickbidmanagerV2::Options

Additional query options. Corresponds to the JSON property options



232
233
234
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 232

def options
  @options
end

#typeString

The type of the report. The type of the report will dictate what dimesions, filters, and metrics can be used. Corresponds to the JSON property type

Returns:

  • (String)


238
239
240
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 238

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



245
246
247
248
249
250
251
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 245

def update!(**args)
  @filters = args[:filters] if args.key?(:filters)
  @group_bys = args[:group_bys] if args.key?(:group_bys)
  @metrics = args[:metrics] if args.key?(:metrics)
  @options = args[:options] if args.key?(:options)
  @type = args[:type] if args.key?(:type)
end