Class: Google::Apis::DfareportingV2_8::ReportCompatibleFields

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

Overview

Represents fields that are compatible to be selected for a report of type " STANDARD".

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ReportCompatibleFields

Returns a new instance of ReportCompatibleFields



10321
10322
10323
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 10321

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

Instance Attribute Details

#dimension_filtersArray<Google::Apis::DfareportingV2_8::Dimension>

Dimensions which are compatible to be selected in the "dimensionFilters" section of the report. Corresponds to the JSON property dimensionFilters



10296
10297
10298
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 10296

def dimension_filters
  @dimension_filters
end

#dimensionsArray<Google::Apis::DfareportingV2_8::Dimension>

Dimensions which are compatible to be selected in the "dimensions" section of the report. Corresponds to the JSON property dimensions



10302
10303
10304
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 10302

def dimensions
  @dimensions
end

#kindString

The kind of resource this is, in this case dfareporting#reportCompatibleFields. Corresponds to the JSON property kind

Returns:

  • (String)


10307
10308
10309
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 10307

def kind
  @kind
end

#metricsArray<Google::Apis::DfareportingV2_8::Metric>

Metrics which are compatible to be selected in the "metricNames" section of the report. Corresponds to the JSON property metrics



10313
10314
10315
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 10313

def metrics
  @metrics
end

#pivoted_activity_metricsArray<Google::Apis::DfareportingV2_8::Metric>

Metrics which are compatible to be selected as activity metrics to pivot on in the "activities" section of the report. Corresponds to the JSON property pivotedActivityMetrics



10319
10320
10321
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 10319

def pivoted_activity_metrics
  @pivoted_activity_metrics
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10326
10327
10328
10329
10330
10331
10332
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 10326

def update!(**args)
  @dimension_filters = args[:dimension_filters] if args.key?(:dimension_filters)
  @dimensions = args[:dimensions] if args.key?(:dimensions)
  @kind = args[:kind] if args.key?(:kind)
  @metrics = args[:metrics] if args.key?(:metrics)
  @pivoted_activity_metrics = args[:pivoted_activity_metrics] if args.key?(:pivoted_activity_metrics)
end