Class: Google::Apis::DoubleclicksearchV2::ReportApiColumnSpec

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

Overview

A request object used to create a DoubleClick Search report.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReportApiColumnSpec

Returns a new instance of ReportApiColumnSpec.



592
593
594
# File 'lib/google/apis/doubleclicksearch_v2/classes.rb', line 592

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

Instance Attribute Details

#column_nameString

Name of a DoubleClick Search column to include in the report. Corresponds to the JSON property columnName

Returns:

  • (String)


522
523
524
# File 'lib/google/apis/doubleclicksearch_v2/classes.rb', line 522

def column_name
  @column_name
end

#custom_dimension_nameString

Segments a report by a custom dimension. The report must be scoped to an advertiser or lower, and the custom dimension must already be set up in DoubleClick Search. The custom dimension name, which appears in DoubleClick Search, is case sensitive.\ If used in a conversion report, returns the value of the specified custom dimension for the given conversion, if set. This column does not segment the conversion report. Corresponds to the JSON property customDimensionName

Returns:

  • (String)


532
533
534
# File 'lib/google/apis/doubleclicksearch_v2/classes.rb', line 532

def custom_dimension_name
  @custom_dimension_name
end

#custom_metric_nameString

Name of a custom metric to include in the report. The report must be scoped to an advertiser or lower, and the custom metric must already be set up in DoubleClick Search. The custom metric name, which appears in DoubleClick Search, is case sensitive. Corresponds to the JSON property customMetricName

Returns:

  • (String)


540
541
542
# File 'lib/google/apis/doubleclicksearch_v2/classes.rb', line 540

def custom_metric_name
  @custom_metric_name
end

#end_dateString

Inclusive day in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with startDate. Corresponds to the JSON property endDate

Returns:

  • (String)


547
548
549
# File 'lib/google/apis/doubleclicksearch_v2/classes.rb', line 547

def end_date
  @end_date
end

#group_by_columnBoolean Also known as: group_by_column?

Synchronous report only. Set to true to group by this column. Defaults to false. Corresponds to the JSON property groupByColumn

Returns:

  • (Boolean)


553
554
555
# File 'lib/google/apis/doubleclicksearch_v2/classes.rb', line 553

def group_by_column
  @group_by_column
end

#header_textString

Text used to identify this column in the report output; defaults to columnName or savedColumnName when not specified. This can be used to prevent collisions between DoubleClick Search columns and saved columns with the same name. Corresponds to the JSON property headerText

Returns:

  • (String)


562
563
564
# File 'lib/google/apis/doubleclicksearch_v2/classes.rb', line 562

def header_text
  @header_text
end

#platform_sourceString

The platform that is used to provide data for the custom dimension. Acceptable values are "floodlight". Corresponds to the JSON property platformSource

Returns:

  • (String)


568
569
570
# File 'lib/google/apis/doubleclicksearch_v2/classes.rb', line 568

def platform_source
  @platform_source
end

#product_report_perspectiveString

Returns metrics only for a specific type of product activity. Accepted values are: - "sold": returns metrics only for products that were sold - " advertised": returns metrics only for products that were advertised in a Shopping campaign, and that might or might not have been sold Corresponds to the JSON property productReportPerspective

Returns:

  • (String)


576
577
578
# File 'lib/google/apis/doubleclicksearch_v2/classes.rb', line 576

def product_report_perspective
  @product_report_perspective
end

#saved_column_nameString

Name of a saved column to include in the report. The report must be scoped at advertiser or lower, and this saved column must already be created in the DoubleClick Search UI. Corresponds to the JSON property savedColumnName

Returns:

  • (String)


583
584
585
# File 'lib/google/apis/doubleclicksearch_v2/classes.rb', line 583

def saved_column_name
  @saved_column_name
end

#start_dateString

Inclusive date in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with endDate. Corresponds to the JSON property startDate

Returns:

  • (String)


590
591
592
# File 'lib/google/apis/doubleclicksearch_v2/classes.rb', line 590

def start_date
  @start_date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



597
598
599
600
601
602
603
604
605
606
607
608
# File 'lib/google/apis/doubleclicksearch_v2/classes.rb', line 597

def update!(**args)
  @column_name = args[:column_name] if args.key?(:column_name)
  @custom_dimension_name = args[:custom_dimension_name] if args.key?(:custom_dimension_name)
  @custom_metric_name = args[:custom_metric_name] if args.key?(:custom_metric_name)
  @end_date = args[:end_date] if args.key?(:end_date)
  @group_by_column = args[:group_by_column] if args.key?(:group_by_column)
  @header_text = args[:header_text] if args.key?(:header_text)
  @platform_source = args[:platform_source] if args.key?(:platform_source)
  @product_report_perspective = args[:product_report_perspective] if args.key?(:product_report_perspective)
  @saved_column_name = args[:saved_column_name] if args.key?(:saved_column_name)
  @start_date = args[:start_date] if args.key?(:start_date)
end