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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/doubleclicksearch_v2/classes.rb,
generated/google/apis/doubleclicksearch_v2/representations.rb,
generated/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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ReportApiColumnSpec

Returns a new instance of ReportApiColumnSpec.



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

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)


497
498
499
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 497

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)


508
509
510
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 508

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)


516
517
518
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 516

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)


523
524
525
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 523

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)


529
530
531
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 529

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)


537
538
539
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 537

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)


543
544
545
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 543

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)


552
553
554
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 552

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)


559
560
561
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 559

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)


566
567
568
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 566

def start_date
  @start_date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



573
574
575
576
577
578
579
580
581
582
583
584
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 573

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