Class: Google::Apis::DfareportingV4::Report::Criteria

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

The report criteria for a report of type "STANDARD".

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Criteria

Returns a new instance of Criteria.



10634
10635
10636
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10634

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

Instance Attribute Details

#activitiesGoogle::Apis::DfareportingV4::Activities

Represents an activity group. Corresponds to the JSON property activities



10605
10606
10607
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10605

def activities
  @activities
end

#custom_rich_media_eventsGoogle::Apis::DfareportingV4::CustomRichMediaEvents

Represents a Custom Rich Media Events group. Corresponds to the JSON property customRichMediaEvents



10610
10611
10612
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10610

def custom_rich_media_events
  @custom_rich_media_events
end

#date_rangeGoogle::Apis::DfareportingV4::DateRange

Represents a date range. Corresponds to the JSON property dateRange



10615
10616
10617
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10615

def date_range
  @date_range
end

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

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



10622
10623
10624
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10622

def dimension_filters
  @dimension_filters
end

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

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



10627
10628
10629
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10627

def dimensions
  @dimensions
end

#metric_namesArray<String>

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

Returns:

  • (Array<String>)


10632
10633
10634
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10632

def metric_names
  @metric_names
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10639
10640
10641
10642
10643
10644
10645
10646
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10639

def update!(**args)
  @activities = args[:activities] if args.key?(:activities)
  @custom_rich_media_events = args[:custom_rich_media_events] if args.key?(:custom_rich_media_events)
  @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