Class: Google::Apis::DfareportingV4::Report::CrossMediaReachCriteria

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

Overview

Optional. The report criteria for a report of type "CROSS_MEDIA_REACH".

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CrossMediaReachCriteria

Returns a new instance of CrossMediaReachCriteria.



10731
10732
10733
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10731

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

Instance Attribute Details

#date_rangeGoogle::Apis::DfareportingV4::DateRange

Represents a date range. Corresponds to the JSON property dateRange



10712
10713
10714
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10712

def date_range
  @date_range
end

#dimension_filtersArray<Google::Apis::DfareportingV4::DimensionValue>

Required. The list of filters on which dimensions are filtered. Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed. Corresponds to the JSON property dimensionFilters



10719
10720
10721
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10719

def dimension_filters
  @dimension_filters
end

#dimensionsArray<Google::Apis::DfareportingV4::SortedDimension>

Required. The list of dimensions the report should include. Corresponds to the JSON property dimensions



10724
10725
10726
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10724

def dimensions
  @dimensions
end

#metric_namesArray<String>

Required. The list of names of metrics the report should include. Corresponds to the JSON property metricNames

Returns:

  • (Array<String>)


10729
10730
10731
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10729

def metric_names
  @metric_names
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10736
10737
10738
10739
10740
10741
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10736

def update!(**args)
  @date_range = args[:date_range] if args.key?(:date_range)
  @dimension_filters = args[:dimension_filters] if args.key?(:dimension_filters)
  @dimensions = args[:dimensions] if args.key?(:dimensions)
  @metric_names = args[:metric_names] if args.key?(:metric_names)
end