Class: Google::Apis::GanV1beta1::Report

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

Overview

A ReportResource representing a report of a certain type either for an advertiser or publisher.

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) ⇒ Report

Returns a new instance of Report



1410
1411
1412
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1410

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

Instance Attribute Details

#column_namesArray<String>

The column names for the report Corresponds to the JSON property column_names

Returns:

  • (Array<String>)


1373
1374
1375
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1373

def column_names
  @column_names
end

#end_dateString

The end of the date range for this report, exclusive. Corresponds to the JSON property end_date

Returns:

  • (String)


1378
1379
1380
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1378

def end_date
  @end_date
end

#kindString

The kind for a report. Corresponds to the JSON property kind

Returns:

  • (String)


1383
1384
1385
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1383

def kind
  @kind
end

#matching_row_countString

The number of matching rows before paging is applied. Corresponds to the JSON property matching_row_count

Returns:

  • (String)


1388
1389
1390
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1388

def matching_row_count
  @matching_row_count
end

#rowsArray<Array<Object>>

The rows of data for the report Corresponds to the JSON property rows

Returns:

  • (Array<Array<Object>>)


1393
1394
1395
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1393

def rows
  @rows
end

#start_dateString

The start of the date range for this report, inclusive. Corresponds to the JSON property start_date

Returns:

  • (String)


1398
1399
1400
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1398

def start_date
  @start_date
end

#totals_rowsArray<Array<Object>>

The totals rows for the report Corresponds to the JSON property totals_rows

Returns:

  • (Array<Array<Object>>)


1403
1404
1405
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1403

def totals_rows
  @totals_rows
end

#typeString

The report type. Corresponds to the JSON property type

Returns:

  • (String)


1408
1409
1410
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1408

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
# File 'generated/google/apis/gan_v1beta1/classes.rb', line 1415

def update!(**args)
  @column_names = args[:column_names] if args.key?(:column_names)
  @end_date = args[:end_date] if args.key?(:end_date)
  @kind = args[:kind] if args.key?(:kind)
  @matching_row_count = args[:matching_row_count] if args.key?(:matching_row_count)
  @rows = args[:rows] if args.key?(:rows)
  @start_date = args[:start_date] if args.key?(:start_date)
  @totals_rows = args[:totals_rows] if args.key?(:totals_rows)
  @type = args[:type] if args.key?(:type)
end