Class: Google::Apis::AdmobV1beta::CampaignReportSpec
- Inherits:
-
Object
- Object
- Google::Apis::AdmobV1beta::CampaignReportSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/admob_v1beta/classes.rb,
lib/google/apis/admob_v1beta/representations.rb,
lib/google/apis/admob_v1beta/representations.rb
Overview
The specification for generating a Campaign report. For example, the
specification to get IMPRESSIONS and CLICKS sliced by CAMPAIGN_ID can look
like the following example: "date_range": "start_date": "year": 2021, "
month": 12, "day": 1, "end_date": "year": 2021, "month": 12, "day": 30 , "
dimensions": ["CAMPAIGN_ID"], "metrics": ["IMPRESSIONS", "CLICKS"],
Instance Attribute Summary collapse
-
#date_range ⇒ Google::Apis::AdmobV1beta::DateRange
Specification of a single date range.
-
#dimensions ⇒ Array<String>
List of dimensions of the report.
-
#language_code ⇒ String
Language used for any localized text, such as certain applicable dimension values.
-
#metrics ⇒ Array<String>
List of metrics of the report.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CampaignReportSpec
constructor
A new instance of CampaignReportSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CampaignReportSpec
Returns a new instance of CampaignReportSpec.
582 583 584 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 582 def initialize(**args) update!(**args) end |
Instance Attribute Details
#date_range ⇒ Google::Apis::AdmobV1beta::DateRange
Specification of a single date range. Both dates are inclusive.
Corresponds to the JSON property dateRange
561 562 563 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 561 def date_range @date_range end |
#dimensions ⇒ Array<String>
List of dimensions of the report. The value combination of these dimensions
determines the row of the report. If no dimensions are specified, the report
returns a single row of requested metrics for the entire account.
Corresponds to the JSON property dimensions
568 569 570 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 568 def dimensions @dimensions end |
#language_code ⇒ String
Language used for any localized text, such as certain applicable dimension
values. The language tag is defined in the IETF BCP47. Defaults to 'en-US' if
unspecified or invalid.
Corresponds to the JSON property languageCode
575 576 577 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 575 def language_code @language_code end |
#metrics ⇒ Array<String>
List of metrics of the report. A report must specify at least one metric.
Corresponds to the JSON property metrics
580 581 582 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 580 def metrics @metrics end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
587 588 589 590 591 592 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 587 def update!(**args) @date_range = args[:date_range] if args.key?(:date_range) @dimensions = args[:dimensions] if args.key?(:dimensions) @language_code = args[:language_code] if args.key?(:language_code) @metrics = args[:metrics] if args.key?(:metrics) end |