865 lines
		
	
	
		
			34 KiB
		
	
	
	
		
			Ruby
		
	
	
	
			
		
		
	
	
			865 lines
		
	
	
		
			34 KiB
		
	
	
	
		
			Ruby
		
	
	
	
| # Copyright 2015 Google Inc.
 | |
| #
 | |
| # Licensed under the Apache License, Version 2.0 (the "License");
 | |
| # you may not use this file except in compliance with the License.
 | |
| # You may obtain a copy of the License at
 | |
| #
 | |
| #      http://www.apache.org/licenses/LICENSE-2.0
 | |
| #
 | |
| # Unless required by applicable law or agreed to in writing, software
 | |
| # distributed under the License is distributed on an "AS IS" BASIS,
 | |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | |
| # See the License for the specific language governing permissions and
 | |
| # limitations under the License.
 | |
| 
 | |
| require 'date'
 | |
| require 'google/apis/core/base_service'
 | |
| require 'google/apis/core/json_representation'
 | |
| require 'google/apis/core/hashable'
 | |
| require 'google/apis/errors'
 | |
| 
 | |
| module Google
 | |
|   module Apis
 | |
|     module AnalyticsreportingV4
 | |
|       
 | |
|       class Activity
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class Cohort
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class CohortGroup
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class ColumnHeader
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class CustomDimension
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class DateRange
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class DateRangeValues
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class Dimension
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class DimensionFilter
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class DimensionFilterClause
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class DynamicSegment
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class EcommerceData
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class EventData
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class GetReportsRequest
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class GetReportsResponse
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class GoalData
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class GoalSetData
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class Metric
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class MetricFilter
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class MetricFilterClause
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class MetricHeader
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class MetricHeaderEntry
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class OrFiltersForSegment
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class OrderBy
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class PageviewData
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class Pivot
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class PivotHeader
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class PivotHeaderEntry
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class PivotValueRegion
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class ProductData
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class Report
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class ReportData
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class ReportRequest
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class ReportRow
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class ResourceQuotasRemaining
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class ScreenviewData
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class SearchUserActivityRequest
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class SearchUserActivityResponse
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class Segment
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class SegmentDefinition
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class SegmentDimensionFilter
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class SegmentFilter
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class SegmentFilterClause
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class SegmentMetricFilter
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class SegmentSequenceStep
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class SequenceSegment
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class SimpleSegment
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class TransactionData
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class User
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class UserActivitySession
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation; end
 | |
|       
 | |
|         include Google::Apis::Core::JsonObjectSupport
 | |
|       end
 | |
|       
 | |
|       class Activity
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           property :activity_time, as: 'activityTime'
 | |
|           property :activity_type, as: 'activityType'
 | |
|           property :appview, as: 'appview', class: Google::Apis::AnalyticsreportingV4::ScreenviewData, decorator: Google::Apis::AnalyticsreportingV4::ScreenviewData::Representation
 | |
|       
 | |
|           property :campaign, as: 'campaign'
 | |
|           property :channel_grouping, as: 'channelGrouping'
 | |
|           collection :custom_dimension, as: 'customDimension', class: Google::Apis::AnalyticsreportingV4::CustomDimension, decorator: Google::Apis::AnalyticsreportingV4::CustomDimension::Representation
 | |
|       
 | |
|           property :ecommerce, as: 'ecommerce', class: Google::Apis::AnalyticsreportingV4::EcommerceData, decorator: Google::Apis::AnalyticsreportingV4::EcommerceData::Representation
 | |
|       
 | |
|           property :event, as: 'event', class: Google::Apis::AnalyticsreportingV4::EventData, decorator: Google::Apis::AnalyticsreportingV4::EventData::Representation
 | |
|       
 | |
|           property :goals, as: 'goals', class: Google::Apis::AnalyticsreportingV4::GoalSetData, decorator: Google::Apis::AnalyticsreportingV4::GoalSetData::Representation
 | |
|       
 | |
|           property :hostname, as: 'hostname'
 | |
|           property :keyword, as: 'keyword'
 | |
|           property :landing_page_path, as: 'landingPagePath'
 | |
|           property :medium, as: 'medium'
 | |
|           property :pageview, as: 'pageview', class: Google::Apis::AnalyticsreportingV4::PageviewData, decorator: Google::Apis::AnalyticsreportingV4::PageviewData::Representation
 | |
|       
 | |
|           property :source, as: 'source'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class Cohort
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           property :date_range, as: 'dateRange', class: Google::Apis::AnalyticsreportingV4::DateRange, decorator: Google::Apis::AnalyticsreportingV4::DateRange::Representation
 | |
|       
 | |
|           property :name, as: 'name'
 | |
|           property :type, as: 'type'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class CohortGroup
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           collection :cohorts, as: 'cohorts', class: Google::Apis::AnalyticsreportingV4::Cohort, decorator: Google::Apis::AnalyticsreportingV4::Cohort::Representation
 | |
|       
 | |
|           property :lifetime_value, as: 'lifetimeValue'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class ColumnHeader
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           collection :dimensions, as: 'dimensions'
 | |
|           property :metric_header, as: 'metricHeader', class: Google::Apis::AnalyticsreportingV4::MetricHeader, decorator: Google::Apis::AnalyticsreportingV4::MetricHeader::Representation
 | |
|       
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class CustomDimension
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           property :index, as: 'index'
 | |
|           property :value, as: 'value'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class DateRange
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           property :end_date, as: 'endDate'
 | |
|           property :start_date, as: 'startDate'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class DateRangeValues
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           collection :pivot_value_regions, as: 'pivotValueRegions', class: Google::Apis::AnalyticsreportingV4::PivotValueRegion, decorator: Google::Apis::AnalyticsreportingV4::PivotValueRegion::Representation
 | |
|       
 | |
|           collection :values, as: 'values'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class Dimension
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           collection :histogram_buckets, as: 'histogramBuckets'
 | |
|           property :name, as: 'name'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class DimensionFilter
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           property :case_sensitive, as: 'caseSensitive'
 | |
|           property :dimension_name, as: 'dimensionName'
 | |
|           collection :expressions, as: 'expressions'
 | |
|           property :not, as: 'not'
 | |
|           property :operator, as: 'operator'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class DimensionFilterClause
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           collection :filters, as: 'filters', class: Google::Apis::AnalyticsreportingV4::DimensionFilter, decorator: Google::Apis::AnalyticsreportingV4::DimensionFilter::Representation
 | |
|       
 | |
|           property :operator, as: 'operator'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class DynamicSegment
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           property :name, as: 'name'
 | |
|           property :session_segment, as: 'sessionSegment', class: Google::Apis::AnalyticsreportingV4::SegmentDefinition, decorator: Google::Apis::AnalyticsreportingV4::SegmentDefinition::Representation
 | |
|       
 | |
|           property :user_segment, as: 'userSegment', class: Google::Apis::AnalyticsreportingV4::SegmentDefinition, decorator: Google::Apis::AnalyticsreportingV4::SegmentDefinition::Representation
 | |
|       
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class EcommerceData
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           property :action_type, as: 'actionType'
 | |
|           property :ecommerce_type, as: 'ecommerceType'
 | |
|           collection :products, as: 'products', class: Google::Apis::AnalyticsreportingV4::ProductData, decorator: Google::Apis::AnalyticsreportingV4::ProductData::Representation
 | |
|       
 | |
|           property :transaction, as: 'transaction', class: Google::Apis::AnalyticsreportingV4::TransactionData, decorator: Google::Apis::AnalyticsreportingV4::TransactionData::Representation
 | |
|       
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class EventData
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           property :event_action, as: 'eventAction'
 | |
|           property :event_category, as: 'eventCategory'
 | |
|           property :event_count, :numeric_string => true, as: 'eventCount'
 | |
|           property :event_label, as: 'eventLabel'
 | |
|           property :event_value, :numeric_string => true, as: 'eventValue'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class GetReportsRequest
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           collection :report_requests, as: 'reportRequests', class: Google::Apis::AnalyticsreportingV4::ReportRequest, decorator: Google::Apis::AnalyticsreportingV4::ReportRequest::Representation
 | |
|       
 | |
|           property :use_resource_quotas, as: 'useResourceQuotas'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class GetReportsResponse
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           property :query_cost, as: 'queryCost'
 | |
|           collection :reports, as: 'reports', class: Google::Apis::AnalyticsreportingV4::Report, decorator: Google::Apis::AnalyticsreportingV4::Report::Representation
 | |
|       
 | |
|           property :resource_quotas_remaining, as: 'resourceQuotasRemaining', class: Google::Apis::AnalyticsreportingV4::ResourceQuotasRemaining, decorator: Google::Apis::AnalyticsreportingV4::ResourceQuotasRemaining::Representation
 | |
|       
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class GoalData
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           property :goal_completion_location, as: 'goalCompletionLocation'
 | |
|           property :goal_completions, :numeric_string => true, as: 'goalCompletions'
 | |
|           property :goal_index, as: 'goalIndex'
 | |
|           property :goal_name, as: 'goalName'
 | |
|           property :goal_previous_step1, as: 'goalPreviousStep1'
 | |
|           property :goal_previous_step2, as: 'goalPreviousStep2'
 | |
|           property :goal_previous_step3, as: 'goalPreviousStep3'
 | |
|           property :goal_value, as: 'goalValue'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class GoalSetData
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           collection :goals, as: 'goals', class: Google::Apis::AnalyticsreportingV4::GoalData, decorator: Google::Apis::AnalyticsreportingV4::GoalData::Representation
 | |
|       
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class Metric
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           property :alias, as: 'alias'
 | |
|           property :expression, as: 'expression'
 | |
|           property :formatting_type, as: 'formattingType'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class MetricFilter
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           property :comparison_value, as: 'comparisonValue'
 | |
|           property :metric_name, as: 'metricName'
 | |
|           property :not, as: 'not'
 | |
|           property :operator, as: 'operator'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class MetricFilterClause
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           collection :filters, as: 'filters', class: Google::Apis::AnalyticsreportingV4::MetricFilter, decorator: Google::Apis::AnalyticsreportingV4::MetricFilter::Representation
 | |
|       
 | |
|           property :operator, as: 'operator'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class MetricHeader
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           collection :metric_header_entries, as: 'metricHeaderEntries', class: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry, decorator: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry::Representation
 | |
|       
 | |
|           collection :pivot_headers, as: 'pivotHeaders', class: Google::Apis::AnalyticsreportingV4::PivotHeader, decorator: Google::Apis::AnalyticsreportingV4::PivotHeader::Representation
 | |
|       
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class MetricHeaderEntry
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           property :name, as: 'name'
 | |
|           property :type, as: 'type'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class OrFiltersForSegment
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           collection :segment_filter_clauses, as: 'segmentFilterClauses', class: Google::Apis::AnalyticsreportingV4::SegmentFilterClause, decorator: Google::Apis::AnalyticsreportingV4::SegmentFilterClause::Representation
 | |
|       
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class OrderBy
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           property :field_name, as: 'fieldName'
 | |
|           property :order_type, as: 'orderType'
 | |
|           property :sort_order, as: 'sortOrder'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class PageviewData
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           property :page_path, as: 'pagePath'
 | |
|           property :page_title, as: 'pageTitle'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class Pivot
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           collection :dimension_filter_clauses, as: 'dimensionFilterClauses', class: Google::Apis::AnalyticsreportingV4::DimensionFilterClause, decorator: Google::Apis::AnalyticsreportingV4::DimensionFilterClause::Representation
 | |
|       
 | |
|           collection :dimensions, as: 'dimensions', class: Google::Apis::AnalyticsreportingV4::Dimension, decorator: Google::Apis::AnalyticsreportingV4::Dimension::Representation
 | |
|       
 | |
|           property :max_group_count, as: 'maxGroupCount'
 | |
|           collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsreportingV4::Metric, decorator: Google::Apis::AnalyticsreportingV4::Metric::Representation
 | |
|       
 | |
|           property :start_group, as: 'startGroup'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class PivotHeader
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           collection :pivot_header_entries, as: 'pivotHeaderEntries', class: Google::Apis::AnalyticsreportingV4::PivotHeaderEntry, decorator: Google::Apis::AnalyticsreportingV4::PivotHeaderEntry::Representation
 | |
|       
 | |
|           property :total_pivot_groups_count, as: 'totalPivotGroupsCount'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class PivotHeaderEntry
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           collection :dimension_names, as: 'dimensionNames'
 | |
|           collection :dimension_values, as: 'dimensionValues'
 | |
|           property :metric, as: 'metric', class: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry, decorator: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry::Representation
 | |
|       
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class PivotValueRegion
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           collection :values, as: 'values'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class ProductData
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           property :item_revenue, as: 'itemRevenue'
 | |
|           property :product_name, as: 'productName'
 | |
|           property :product_quantity, :numeric_string => true, as: 'productQuantity'
 | |
|           property :product_sku, as: 'productSku'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class Report
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           property :column_header, as: 'columnHeader', class: Google::Apis::AnalyticsreportingV4::ColumnHeader, decorator: Google::Apis::AnalyticsreportingV4::ColumnHeader::Representation
 | |
|       
 | |
|           property :data, as: 'data', class: Google::Apis::AnalyticsreportingV4::ReportData, decorator: Google::Apis::AnalyticsreportingV4::ReportData::Representation
 | |
|       
 | |
|           property :next_page_token, as: 'nextPageToken'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class ReportData
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           property :data_last_refreshed, as: 'dataLastRefreshed'
 | |
|           property :is_data_golden, as: 'isDataGolden'
 | |
|           collection :maximums, as: 'maximums', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
 | |
|       
 | |
|           collection :minimums, as: 'minimums', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
 | |
|       
 | |
|           property :row_count, as: 'rowCount'
 | |
|           collection :rows, as: 'rows', class: Google::Apis::AnalyticsreportingV4::ReportRow, decorator: Google::Apis::AnalyticsreportingV4::ReportRow::Representation
 | |
|       
 | |
|           collection :samples_read_counts, as: 'samplesReadCounts'
 | |
|           collection :sampling_space_sizes, as: 'samplingSpaceSizes'
 | |
|           collection :totals, as: 'totals', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
 | |
|       
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class ReportRequest
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           property :cohort_group, as: 'cohortGroup', class: Google::Apis::AnalyticsreportingV4::CohortGroup, decorator: Google::Apis::AnalyticsreportingV4::CohortGroup::Representation
 | |
|       
 | |
|           collection :date_ranges, as: 'dateRanges', class: Google::Apis::AnalyticsreportingV4::DateRange, decorator: Google::Apis::AnalyticsreportingV4::DateRange::Representation
 | |
|       
 | |
|           collection :dimension_filter_clauses, as: 'dimensionFilterClauses', class: Google::Apis::AnalyticsreportingV4::DimensionFilterClause, decorator: Google::Apis::AnalyticsreportingV4::DimensionFilterClause::Representation
 | |
|       
 | |
|           collection :dimensions, as: 'dimensions', class: Google::Apis::AnalyticsreportingV4::Dimension, decorator: Google::Apis::AnalyticsreportingV4::Dimension::Representation
 | |
|       
 | |
|           property :filters_expression, as: 'filtersExpression'
 | |
|           property :hide_totals, as: 'hideTotals'
 | |
|           property :hide_value_ranges, as: 'hideValueRanges'
 | |
|           property :include_empty_rows, as: 'includeEmptyRows'
 | |
|           collection :metric_filter_clauses, as: 'metricFilterClauses', class: Google::Apis::AnalyticsreportingV4::MetricFilterClause, decorator: Google::Apis::AnalyticsreportingV4::MetricFilterClause::Representation
 | |
|       
 | |
|           collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsreportingV4::Metric, decorator: Google::Apis::AnalyticsreportingV4::Metric::Representation
 | |
|       
 | |
|           collection :order_bys, as: 'orderBys', class: Google::Apis::AnalyticsreportingV4::OrderBy, decorator: Google::Apis::AnalyticsreportingV4::OrderBy::Representation
 | |
|       
 | |
|           property :page_size, as: 'pageSize'
 | |
|           property :page_token, as: 'pageToken'
 | |
|           collection :pivots, as: 'pivots', class: Google::Apis::AnalyticsreportingV4::Pivot, decorator: Google::Apis::AnalyticsreportingV4::Pivot::Representation
 | |
|       
 | |
|           property :sampling_level, as: 'samplingLevel'
 | |
|           collection :segments, as: 'segments', class: Google::Apis::AnalyticsreportingV4::Segment, decorator: Google::Apis::AnalyticsreportingV4::Segment::Representation
 | |
|       
 | |
|           property :view_id, as: 'viewId'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class ReportRow
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           collection :dimensions, as: 'dimensions'
 | |
|           collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
 | |
|       
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class ResourceQuotasRemaining
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           property :daily_quota_tokens_remaining, as: 'dailyQuotaTokensRemaining'
 | |
|           property :hourly_quota_tokens_remaining, as: 'hourlyQuotaTokensRemaining'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class ScreenviewData
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           property :app_name, as: 'appName'
 | |
|           property :mobile_device_branding, as: 'mobileDeviceBranding'
 | |
|           property :mobile_device_model, as: 'mobileDeviceModel'
 | |
|           property :screen_name, as: 'screenName'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class SearchUserActivityRequest
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           collection :activity_types, as: 'activityTypes'
 | |
|           property :date_range, as: 'dateRange', class: Google::Apis::AnalyticsreportingV4::DateRange, decorator: Google::Apis::AnalyticsreportingV4::DateRange::Representation
 | |
|       
 | |
|           property :page_size, as: 'pageSize'
 | |
|           property :page_token, as: 'pageToken'
 | |
|           property :user, as: 'user', class: Google::Apis::AnalyticsreportingV4::User, decorator: Google::Apis::AnalyticsreportingV4::User::Representation
 | |
|       
 | |
|           property :view_id, as: 'viewId'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class SearchUserActivityResponse
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           property :next_page_token, as: 'nextPageToken'
 | |
|           property :sample_rate, as: 'sampleRate'
 | |
|           collection :sessions, as: 'sessions', class: Google::Apis::AnalyticsreportingV4::UserActivitySession, decorator: Google::Apis::AnalyticsreportingV4::UserActivitySession::Representation
 | |
|       
 | |
|           property :total_rows, as: 'totalRows'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class Segment
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           property :dynamic_segment, as: 'dynamicSegment', class: Google::Apis::AnalyticsreportingV4::DynamicSegment, decorator: Google::Apis::AnalyticsreportingV4::DynamicSegment::Representation
 | |
|       
 | |
|           property :segment_id, as: 'segmentId'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class SegmentDefinition
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           collection :segment_filters, as: 'segmentFilters', class: Google::Apis::AnalyticsreportingV4::SegmentFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentFilter::Representation
 | |
|       
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class SegmentDimensionFilter
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           property :case_sensitive, as: 'caseSensitive'
 | |
|           property :dimension_name, as: 'dimensionName'
 | |
|           collection :expressions, as: 'expressions'
 | |
|           property :max_comparison_value, as: 'maxComparisonValue'
 | |
|           property :min_comparison_value, as: 'minComparisonValue'
 | |
|           property :operator, as: 'operator'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class SegmentFilter
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           property :not, as: 'not'
 | |
|           property :sequence_segment, as: 'sequenceSegment', class: Google::Apis::AnalyticsreportingV4::SequenceSegment, decorator: Google::Apis::AnalyticsreportingV4::SequenceSegment::Representation
 | |
|       
 | |
|           property :simple_segment, as: 'simpleSegment', class: Google::Apis::AnalyticsreportingV4::SimpleSegment, decorator: Google::Apis::AnalyticsreportingV4::SimpleSegment::Representation
 | |
|       
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class SegmentFilterClause
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           property :dimension_filter, as: 'dimensionFilter', class: Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter::Representation
 | |
|       
 | |
|           property :metric_filter, as: 'metricFilter', class: Google::Apis::AnalyticsreportingV4::SegmentMetricFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentMetricFilter::Representation
 | |
|       
 | |
|           property :not, as: 'not'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class SegmentMetricFilter
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           property :comparison_value, as: 'comparisonValue'
 | |
|           property :max_comparison_value, as: 'maxComparisonValue'
 | |
|           property :metric_name, as: 'metricName'
 | |
|           property :operator, as: 'operator'
 | |
|           property :scope, as: 'scope'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class SegmentSequenceStep
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           property :match_type, as: 'matchType'
 | |
|           collection :or_filters_for_segment, as: 'orFiltersForSegment', class: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment, decorator: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment::Representation
 | |
|       
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class SequenceSegment
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           property :first_step_should_match_first_hit, as: 'firstStepShouldMatchFirstHit'
 | |
|           collection :segment_sequence_steps, as: 'segmentSequenceSteps', class: Google::Apis::AnalyticsreportingV4::SegmentSequenceStep, decorator: Google::Apis::AnalyticsreportingV4::SegmentSequenceStep::Representation
 | |
|       
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class SimpleSegment
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           collection :or_filters_for_segment, as: 'orFiltersForSegment', class: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment, decorator: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment::Representation
 | |
|       
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class TransactionData
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           property :transaction_id, as: 'transactionId'
 | |
|           property :transaction_revenue, as: 'transactionRevenue'
 | |
|           property :transaction_shipping, as: 'transactionShipping'
 | |
|           property :transaction_tax, as: 'transactionTax'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class User
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           property :type, as: 'type'
 | |
|           property :user_id, as: 'userId'
 | |
|         end
 | |
|       end
 | |
|       
 | |
|       class UserActivitySession
 | |
|         # @private
 | |
|         class Representation < Google::Apis::Core::JsonRepresentation
 | |
|           collection :activities, as: 'activities', class: Google::Apis::AnalyticsreportingV4::Activity, decorator: Google::Apis::AnalyticsreportingV4::Activity::Representation
 | |
|       
 | |
|           property :data_source, as: 'dataSource'
 | |
|           property :device_category, as: 'deviceCategory'
 | |
|           property :platform, as: 'platform'
 | |
|           property :session_date, as: 'sessionDate'
 | |
|           property :session_id, as: 'sessionId'
 | |
|         end
 | |
|       end
 | |
|     end
 | |
|   end
 | |
| end
 |