Class: Google::Apis::AdmobV1::GenerateMediationReportRequest
- Inherits:
-
Object
- Object
- Google::Apis::AdmobV1::GenerateMediationReportRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/admob_v1/classes.rb,
lib/google/apis/admob_v1/representations.rb,
lib/google/apis/admob_v1/representations.rb
Overview
Request to generate an AdMob mediation report.
Instance Attribute Summary collapse
-
#report_spec ⇒ Google::Apis::AdmobV1::MediationReportSpec
The specification for generating an AdMob Mediation report.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GenerateMediationReportRequest
constructor
A new instance of GenerateMediationReportRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GenerateMediationReportRequest
Returns a new instance of GenerateMediationReportRequest.
290 291 292 |
# File 'lib/google/apis/admob_v1/classes.rb', line 290 def initialize(**args) update!(**args) end |
Instance Attribute Details
#report_spec ⇒ Google::Apis::AdmobV1::MediationReportSpec
The specification for generating an AdMob Mediation report. For example, the
specification to get observed ECPM sliced by ad source and app for the 'US'
and 'CN' countries can look like the following example: "date_range": "
start_date": "year": 2021, "month": 9, "day": 1, "end_date": "year": 2021, "
month": 9, "day": 30 , "dimensions": ["AD_SOURCE", "APP", "COUNTRY"], "
metrics": ["OBSERVED_ECPM"], "dimension_filters": [ "dimension": "COUNTRY", "
matches_any": "values": ["value": "US", "value": "CN"] ], "
sort_conditions": ["dimension":"APP", order: "ASCENDING"], "
localization_settings": "currency_code": "USD", "language_code": "en-US"
For a better understanding, you can treat the preceding specification like the
following pseudo SQL: SELECT AD_SOURCE, APP, COUNTRY, OBSERVED_ECPM FROM
MEDIATION_REPORT WHERE DATE >= '2021-09-01' AND DATE <= '2021-09-30' AND
COUNTRY IN ('US', 'CN') GROUP BY AD_SOURCE, APP, COUNTRY ORDER BY APP ASC;
Corresponds to the JSON property reportSpec
288 289 290 |
# File 'lib/google/apis/admob_v1/classes.rb', line 288 def report_spec @report_spec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
295 296 297 |
# File 'lib/google/apis/admob_v1/classes.rb', line 295 def update!(**args) @report_spec = args[:report_spec] if args.key?(:report_spec) end |