google-apis-admob_v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 1048c5979ea2abc63ffecd7726517fc7c9d081df26ae58c3eaed0e81b7ffc40e
4
+ data.tar.gz: d827dacae6cb3ce1ff8e34be288a9f821f6ff338c39791f6cf2ad3f9e2b529b3
5
+ SHA512:
6
+ metadata.gz: 15ab32007ac56fcbf170f621df4ada85e9b546cd6d3686cb3b3d9143ed92296c2cd182425106e4f225226176ca7935aae5d314122b0391f54d8956cbfb64b65d
7
+ data.tar.gz: 0b8160131a51939c1d9cd3d43c1b8344646e347e997c155f6c887e050b2b43a3af5d3b1a2ea4acff9bbce3f08f76947e177e6d0222d1ec733a90ac65b213f309
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-admob_v1
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/admob_v1/*.rb
9
+ lib/google/apis/admob_v1.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-admob_v1
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated from discovery document revision 20201231
6
+ * Regenerated using generator version 0.1.1
7
+
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,96 @@
1
+ # Simple REST client for version V1 of the AdMob API
2
+
3
+ This is a simple client library for version V1 of the AdMob API. It provides:
4
+
5
+ * A client object that connects to the HTTP/JSON REST endpoint for the service.
6
+ * Ruby objects for data structures related to the service.
7
+ * Integration with the googleauth gem for authentication using OAuth, API keys, and service accounts.
8
+ * Control of retry, pagination, and timeouts.
9
+
10
+ Note that although this client library is supported and will continue to be updated to track changes to the service, it is otherwise considered complete and not under active development. Many Google services, especially Google Cloud Platform services, may provide a more modern client that is under more active development and improvement. See the section below titled *Which client should I use?* for more information.
11
+
12
+ ## Getting started
13
+
14
+ ### Before you begin
15
+
16
+ There are a few setup steps you need to complete before you can use this library:
17
+
18
+ 1. If you don't already have a Google account, [sign up](https://www.google.com/accounts).
19
+ 2. If you have never created a Google APIs Console project, read about [Managing Projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects) and create a project in the [Google API Console](https://console.cloud.google.com/).
20
+ 3. Most APIs need to be enabled for your project. [Enable it](https://console.cloud.google.com/apis/library/admob.googleapis.com) in the console.
21
+
22
+ ### Installation
23
+
24
+ Add this line to your application's Gemfile:
25
+
26
+ ```ruby
27
+ gem 'google-apis-admob_v1', '~> 0.1'
28
+ ```
29
+
30
+ And then execute:
31
+
32
+ ```
33
+ $ bundle
34
+ ```
35
+
36
+ Or install it yourself as:
37
+
38
+ ```
39
+ $ gem install google-apis-admob_v1
40
+ ```
41
+
42
+ ### Creating a client object
43
+
44
+ Once the gem is installed, you can load the client code and instantiate a client.
45
+
46
+ ```ruby
47
+ # Load the client
48
+ require "google/apis/admob_v1"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::AdmobV1::AdMobService.new
52
+
53
+ # Authenticate calls
54
+ client.authentication = # ... use the googleauth gem to create credentials
55
+ ```
56
+
57
+ See the class reference docs for information on the methods you can call from a client.
58
+
59
+ ## Documentation
60
+
61
+ More detailed descriptions of the Google simple REST clients are available in two documents.
62
+
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
+
66
+ (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Admob service in particular.)
67
+
68
+ For reference information on specific calls in the AdMob API, see the {Google::Apis::AdmobV1::AdMobService class reference docs}.
69
+
70
+ ## Which client should I use?
71
+
72
+ Google provides two types of Ruby API client libraries: **simple REST clients** and **modern clients**.
73
+
74
+ This library, `google-apis-admob_v1`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-<servicename>_<serviceversion>`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward.
75
+
76
+ Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients.
77
+
78
+ Gem names for modern clients are often of the form `google-cloud-<service_name>`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud-<service_name>-<version>`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended.
79
+
80
+ **For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
81
+
82
+ The [product documentation](https://developers.google.com/admob/api/) may provide guidance regarding the preferred client library to use.
83
+
84
+ ## Supported Ruby versions
85
+
86
+ This library is supported on Ruby 2.5+.
87
+
88
+ Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
+
90
+ ## License
91
+
92
+ This library is licensed under Apache 2.0. Full license text is available in the {file:LICENSE.md LICENSE}.
93
+
94
+ ## Support
95
+
96
+ Please [report bugs at the project on Github](https://github.com/google/google-api-ruby-client/issues). Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-api-ruby-client) about the client or APIs on [StackOverflow](http://stackoverflow.com).
@@ -0,0 +1,15 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require "google/apis/admob_v1"
@@ -0,0 +1,40 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/admob_v1/service.rb'
16
+ require 'google/apis/admob_v1/classes.rb'
17
+ require 'google/apis/admob_v1/representations.rb'
18
+ require 'google/apis/admob_v1/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # AdMob API
23
+ #
24
+ # The AdMob API allows publishers to programmatically get information about
25
+ # their AdMob account.
26
+ #
27
+ # @see https://developers.google.com/admob/api/
28
+ module AdmobV1
29
+ # Version of the AdMob API this client connects to.
30
+ # This is NOT the gem version.
31
+ VERSION = 'V1'
32
+
33
+ # See your AdMob data
34
+ AUTH_ADMOB_READONLY = 'https://www.googleapis.com/auth/admob.readonly'
35
+
36
+ # See your AdMob data
37
+ AUTH_ADMOB_REPORT = 'https://www.googleapis.com/auth/admob.report'
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,821 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module AdmobV1
24
+
25
+ # Represents a whole or partial calendar date, such as a birthday. The time of
26
+ # day and time zone are either specified elsewhere or are insignificant. The
27
+ # date is relative to the Gregorian Calendar. This can represent one of the
28
+ # following: * A full date, with non-zero year, month, and day values * A month
29
+ # and day value, with a zero year, such as an anniversary * A year on its own,
30
+ # with zero month and day values * A year and month value, with a zero day, such
31
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
32
+ # google.protobuf.Timestamp`.
33
+ class Date
34
+ include Google::Apis::Core::Hashable
35
+
36
+ # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
37
+ # specify a year by itself or a year and month where the day isn't significant.
38
+ # Corresponds to the JSON property `day`
39
+ # @return [Fixnum]
40
+ attr_accessor :day
41
+
42
+ # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
43
+ # and day.
44
+ # Corresponds to the JSON property `month`
45
+ # @return [Fixnum]
46
+ attr_accessor :month
47
+
48
+ # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
49
+ # year.
50
+ # Corresponds to the JSON property `year`
51
+ # @return [Fixnum]
52
+ attr_accessor :year
53
+
54
+ def initialize(**args)
55
+ update!(**args)
56
+ end
57
+
58
+ # Update properties of this object
59
+ def update!(**args)
60
+ @day = args[:day] if args.key?(:day)
61
+ @month = args[:month] if args.key?(:month)
62
+ @year = args[:year] if args.key?(:year)
63
+ end
64
+ end
65
+
66
+ # Specification of a single date range. Both dates are inclusive.
67
+ class DateRange
68
+ include Google::Apis::Core::Hashable
69
+
70
+ # Represents a whole or partial calendar date, such as a birthday. The time of
71
+ # day and time zone are either specified elsewhere or are insignificant. The
72
+ # date is relative to the Gregorian Calendar. This can represent one of the
73
+ # following: * A full date, with non-zero year, month, and day values * A month
74
+ # and day value, with a zero year, such as an anniversary * A year on its own,
75
+ # with zero month and day values * A year and month value, with a zero day, such
76
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
77
+ # google.protobuf.Timestamp`.
78
+ # Corresponds to the JSON property `endDate`
79
+ # @return [Google::Apis::AdmobV1::Date]
80
+ attr_accessor :end_date
81
+
82
+ # Represents a whole or partial calendar date, such as a birthday. The time of
83
+ # day and time zone are either specified elsewhere or are insignificant. The
84
+ # date is relative to the Gregorian Calendar. This can represent one of the
85
+ # following: * A full date, with non-zero year, month, and day values * A month
86
+ # and day value, with a zero year, such as an anniversary * A year on its own,
87
+ # with zero month and day values * A year and month value, with a zero day, such
88
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
89
+ # google.protobuf.Timestamp`.
90
+ # Corresponds to the JSON property `startDate`
91
+ # @return [Google::Apis::AdmobV1::Date]
92
+ attr_accessor :start_date
93
+
94
+ def initialize(**args)
95
+ update!(**args)
96
+ end
97
+
98
+ # Update properties of this object
99
+ def update!(**args)
100
+ @end_date = args[:end_date] if args.key?(:end_date)
101
+ @start_date = args[:start_date] if args.key?(:start_date)
102
+ end
103
+ end
104
+
105
+ # Request to generate an AdMob Mediation report.
106
+ class GenerateMediationReportRequest
107
+ include Google::Apis::Core::Hashable
108
+
109
+ # The specification for generating an AdMob Mediation report. For example, the
110
+ # specification to get observed ECPM sliced by ad source and app for the 'US'
111
+ # and 'CN' countries can look like the following example: ` "date_range": ` "
112
+ # start_date": `"year": 2018, "month": 9, "day": 1`, "end_date": `"year": 2018, "
113
+ # month": 9, "day": 30` `, "dimensions": ["AD_SOURCE", "APP", "COUNTRY"], "
114
+ # metrics": ["OBSERVED_ECPM"], "dimension_filters": [ ` "dimension": "COUNTRY", "
115
+ # matches_any": `"values": [`"value": "US", "value": "CN"`]` ` ], "
116
+ # sort_conditions": [ `"dimension":"APP", order: "ASCENDING"` ], "
117
+ # localization_settings": ` "currency_code": "USD", "language_code": "en-US" ` `
118
+ # For a better understanding, you can treat the preceding specification like the
119
+ # following pseudo SQL: SELECT AD_SOURCE, APP, COUNTRY, OBSERVED_ECPM FROM
120
+ # MEDIATION_REPORT WHERE DATE >= '2018-09-01' AND DATE <= '2018-09-30' AND
121
+ # COUNTRY IN ('US', 'CN') GROUP BY AD_SOURCE, APP, COUNTRY ORDER BY APP ASC;
122
+ # Corresponds to the JSON property `reportSpec`
123
+ # @return [Google::Apis::AdmobV1::MediationReportSpec]
124
+ attr_accessor :report_spec
125
+
126
+ def initialize(**args)
127
+ update!(**args)
128
+ end
129
+
130
+ # Update properties of this object
131
+ def update!(**args)
132
+ @report_spec = args[:report_spec] if args.key?(:report_spec)
133
+ end
134
+ end
135
+
136
+ # The streaming response for the AdMob Mediation report where the first response
137
+ # contains the report header, then a stream of row responses, and finally a
138
+ # footer as the last response message. For example: [` "header": ` "date_range":
139
+ # ` "start_date": `"year": 2018, "month": 9, "day": 1`, "end_date": `"year":
140
+ # 2018, "month": 9, "day": 1` `, "localization_settings": ` "currency_code": "
141
+ # USD", "language_code": "en-US" ` ` `, ` "row": ` "dimension_values": ` "DATE":
142
+ # `"value": "20180918"`, "APP": ` "value": "ca-app-pub-8123415297019784~
143
+ # 1001342552", "display_label": "My app name!" ` `, "metric_values": ` "
144
+ # ESTIMATED_EARNINGS": `"decimal_value": "1324746"` ` ` `, ` "footer": `"
145
+ # matching_row_count": 1` `]
146
+ class GenerateMediationReportResponse
147
+ include Google::Apis::Core::Hashable
148
+
149
+ # Groups data available after report generation, for example, warnings and row
150
+ # counts. Always sent as the last message in the stream response.
151
+ # Corresponds to the JSON property `footer`
152
+ # @return [Google::Apis::AdmobV1::ReportFooter]
153
+ attr_accessor :footer
154
+
155
+ # Groups data helps to treat the generated report. Always sent as a first
156
+ # message in the stream response.
157
+ # Corresponds to the JSON property `header`
158
+ # @return [Google::Apis::AdmobV1::ReportHeader]
159
+ attr_accessor :header
160
+
161
+ # A row of the returning report.
162
+ # Corresponds to the JSON property `row`
163
+ # @return [Google::Apis::AdmobV1::ReportRow]
164
+ attr_accessor :row
165
+
166
+ def initialize(**args)
167
+ update!(**args)
168
+ end
169
+
170
+ # Update properties of this object
171
+ def update!(**args)
172
+ @footer = args[:footer] if args.key?(:footer)
173
+ @header = args[:header] if args.key?(:header)
174
+ @row = args[:row] if args.key?(:row)
175
+ end
176
+ end
177
+
178
+ # Request to generate an AdMob Network report.
179
+ class GenerateNetworkReportRequest
180
+ include Google::Apis::Core::Hashable
181
+
182
+ # The specification for generating an AdMob Network report. For example, the
183
+ # specification to get clicks and estimated earnings for only the 'US' and 'CN'
184
+ # countries can look like the following example: ` 'date_range': ` 'start_date':
185
+ # `'year': 2018, 'month': 9, 'day': 1`, 'end_date': `'year': 2018, 'month': 9, '
186
+ # day': 30` `, 'dimensions': ['DATE', 'APP', 'COUNTRY'], 'metrics': ['CLICKS', '
187
+ # ESTIMATED_EARNINGS'], 'dimension_filters': [ ` 'dimension': 'COUNTRY', '
188
+ # matches_any': `'values': [`'value': 'US', 'value': 'CN'`]` ` ], '
189
+ # sort_conditions': [ `'dimension':'APP', order: 'ASCENDING'`, `'metric':'CLICKS'
190
+ # , order: 'DESCENDING'` ], 'localization_settings': ` 'currency_code': 'USD', '
191
+ # language_code': 'en-US' ` ` For a better understanding, you can treat the
192
+ # preceding specification like the following pseudo SQL: SELECT DATE, APP,
193
+ # COUNTRY, CLICKS, ESTIMATED_EARNINGS FROM NETWORK_REPORT WHERE DATE >= '2018-09-
194
+ # 01' AND DATE <= '2018-09-30' AND COUNTRY IN ('US', 'CN') GROUP BY DATE, APP,
195
+ # COUNTRY ORDER BY APP ASC, CLICKS DESC;
196
+ # Corresponds to the JSON property `reportSpec`
197
+ # @return [Google::Apis::AdmobV1::NetworkReportSpec]
198
+ attr_accessor :report_spec
199
+
200
+ def initialize(**args)
201
+ update!(**args)
202
+ end
203
+
204
+ # Update properties of this object
205
+ def update!(**args)
206
+ @report_spec = args[:report_spec] if args.key?(:report_spec)
207
+ end
208
+ end
209
+
210
+ # The streaming response for the AdMob Network report where the first response
211
+ # contains the report header, then a stream of row responses, and finally a
212
+ # footer as the last response message. For example: [` "header": ` "dateRange": `
213
+ # "startDate": `"year": 2018, "month": 9, "day": 1`, "endDate": `"year": 2018, "
214
+ # month": 9, "day": 1` `, "localizationSettings": ` "currencyCode": "USD", "
215
+ # languageCode": "en-US" ` ` `, ` "row": ` "dimensionValues": ` "DATE": `"value":
216
+ # "20180918"`, "APP": ` "value": "ca-app-pub-8123415297019784~1001342552",
217
+ # displayLabel: "My app name!" ` `, "metricValues": ` "ESTIMATED_EARNINGS": `"
218
+ # microsValue": 6500000` ` ` `, ` "footer": `"matchingRowCount": 1` `]
219
+ class GenerateNetworkReportResponse
220
+ include Google::Apis::Core::Hashable
221
+
222
+ # Groups data available after report generation, for example, warnings and row
223
+ # counts. Always sent as the last message in the stream response.
224
+ # Corresponds to the JSON property `footer`
225
+ # @return [Google::Apis::AdmobV1::ReportFooter]
226
+ attr_accessor :footer
227
+
228
+ # Groups data helps to treat the generated report. Always sent as a first
229
+ # message in the stream response.
230
+ # Corresponds to the JSON property `header`
231
+ # @return [Google::Apis::AdmobV1::ReportHeader]
232
+ attr_accessor :header
233
+
234
+ # A row of the returning report.
235
+ # Corresponds to the JSON property `row`
236
+ # @return [Google::Apis::AdmobV1::ReportRow]
237
+ attr_accessor :row
238
+
239
+ def initialize(**args)
240
+ update!(**args)
241
+ end
242
+
243
+ # Update properties of this object
244
+ def update!(**args)
245
+ @footer = args[:footer] if args.key?(:footer)
246
+ @header = args[:header] if args.key?(:header)
247
+ @row = args[:row] if args.key?(:row)
248
+ end
249
+ end
250
+
251
+ # Response for the publisher account list request.
252
+ class ListPublisherAccountsResponse
253
+ include Google::Apis::Core::Hashable
254
+
255
+ # Publisher that the client credentials can access.
256
+ # Corresponds to the JSON property `account`
257
+ # @return [Array<Google::Apis::AdmobV1::PublisherAccount>]
258
+ attr_accessor :account
259
+
260
+ # If not empty, indicates that there might be more accounts for the request; you
261
+ # must pass this value in a new `ListPublisherAccountsRequest`.
262
+ # Corresponds to the JSON property `nextPageToken`
263
+ # @return [String]
264
+ attr_accessor :next_page_token
265
+
266
+ def initialize(**args)
267
+ update!(**args)
268
+ end
269
+
270
+ # Update properties of this object
271
+ def update!(**args)
272
+ @account = args[:account] if args.key?(:account)
273
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
274
+ end
275
+ end
276
+
277
+ # Localization settings for reports, such as currency and language. It affects
278
+ # how metrics are calculated.
279
+ class LocalizationSettings
280
+ include Google::Apis::Core::Hashable
281
+
282
+ # Currency code of the earning related metrics, which is the 3-letter code
283
+ # defined in ISO 4217. The daily average rate is used for the currency
284
+ # conversion. Defaults to the account currency code if unspecified.
285
+ # Corresponds to the JSON property `currencyCode`
286
+ # @return [String]
287
+ attr_accessor :currency_code
288
+
289
+ # Language used for any localized text, such as some dimension value display
290
+ # labels. The language tag defined in the IETF BCP47. Defaults to 'en-US' if
291
+ # unspecified.
292
+ # Corresponds to the JSON property `languageCode`
293
+ # @return [String]
294
+ attr_accessor :language_code
295
+
296
+ def initialize(**args)
297
+ update!(**args)
298
+ end
299
+
300
+ # Update properties of this object
301
+ def update!(**args)
302
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
303
+ @language_code = args[:language_code] if args.key?(:language_code)
304
+ end
305
+ end
306
+
307
+ # The specification for generating an AdMob Mediation report. For example, the
308
+ # specification to get observed ECPM sliced by ad source and app for the 'US'
309
+ # and 'CN' countries can look like the following example: ` "date_range": ` "
310
+ # start_date": `"year": 2018, "month": 9, "day": 1`, "end_date": `"year": 2018, "
311
+ # month": 9, "day": 30` `, "dimensions": ["AD_SOURCE", "APP", "COUNTRY"], "
312
+ # metrics": ["OBSERVED_ECPM"], "dimension_filters": [ ` "dimension": "COUNTRY", "
313
+ # matches_any": `"values": [`"value": "US", "value": "CN"`]` ` ], "
314
+ # sort_conditions": [ `"dimension":"APP", order: "ASCENDING"` ], "
315
+ # localization_settings": ` "currency_code": "USD", "language_code": "en-US" ` `
316
+ # For a better understanding, you can treat the preceding specification like the
317
+ # following pseudo SQL: SELECT AD_SOURCE, APP, COUNTRY, OBSERVED_ECPM FROM
318
+ # MEDIATION_REPORT WHERE DATE >= '2018-09-01' AND DATE <= '2018-09-30' AND
319
+ # COUNTRY IN ('US', 'CN') GROUP BY AD_SOURCE, APP, COUNTRY ORDER BY APP ASC;
320
+ class MediationReportSpec
321
+ include Google::Apis::Core::Hashable
322
+
323
+ # Specification of a single date range. Both dates are inclusive.
324
+ # Corresponds to the JSON property `dateRange`
325
+ # @return [Google::Apis::AdmobV1::DateRange]
326
+ attr_accessor :date_range
327
+
328
+ # Describes which report rows to match based on their dimension values.
329
+ # Corresponds to the JSON property `dimensionFilters`
330
+ # @return [Array<Google::Apis::AdmobV1::MediationReportSpecDimensionFilter>]
331
+ attr_accessor :dimension_filters
332
+
333
+ # List of dimensions of the report. The value combination of these dimensions
334
+ # determines the row of the report. If no dimensions are specified, the report
335
+ # returns a single row of requested metrics for the entire account.
336
+ # Corresponds to the JSON property `dimensions`
337
+ # @return [Array<String>]
338
+ attr_accessor :dimensions
339
+
340
+ # Localization settings for reports, such as currency and language. It affects
341
+ # how metrics are calculated.
342
+ # Corresponds to the JSON property `localizationSettings`
343
+ # @return [Google::Apis::AdmobV1::LocalizationSettings]
344
+ attr_accessor :localization_settings
345
+
346
+ # Maximum number of report data rows to return. If the value is not set, the API
347
+ # returns as many rows as possible, up to 100000. Acceptable values are 1-100000,
348
+ # inclusive. Values larger than 100000 return an error.
349
+ # Corresponds to the JSON property `maxReportRows`
350
+ # @return [Fixnum]
351
+ attr_accessor :max_report_rows
352
+
353
+ # List of metrics of the report. A report must specify at least one metric.
354
+ # Corresponds to the JSON property `metrics`
355
+ # @return [Array<String>]
356
+ attr_accessor :metrics
357
+
358
+ # Describes the sorting of report rows. The order of the condition in the list
359
+ # defines its precedence; the earlier the condition, the higher its precedence.
360
+ # If no sort conditions are specified, the row ordering is undefined.
361
+ # Corresponds to the JSON property `sortConditions`
362
+ # @return [Array<Google::Apis::AdmobV1::MediationReportSpecSortCondition>]
363
+ attr_accessor :sort_conditions
364
+
365
+ # A report time zone. Accepts an IANA TZ name values, such as "America/
366
+ # Los_Angeles." If no time zone is defined, the account default takes effect.
367
+ # Check default value by the get account action. **Warning:** The "America/
368
+ # Los_Angeles" is the only supported value at the moment.
369
+ # Corresponds to the JSON property `timeZone`
370
+ # @return [String]
371
+ attr_accessor :time_zone
372
+
373
+ def initialize(**args)
374
+ update!(**args)
375
+ end
376
+
377
+ # Update properties of this object
378
+ def update!(**args)
379
+ @date_range = args[:date_range] if args.key?(:date_range)
380
+ @dimension_filters = args[:dimension_filters] if args.key?(:dimension_filters)
381
+ @dimensions = args[:dimensions] if args.key?(:dimensions)
382
+ @localization_settings = args[:localization_settings] if args.key?(:localization_settings)
383
+ @max_report_rows = args[:max_report_rows] if args.key?(:max_report_rows)
384
+ @metrics = args[:metrics] if args.key?(:metrics)
385
+ @sort_conditions = args[:sort_conditions] if args.key?(:sort_conditions)
386
+ @time_zone = args[:time_zone] if args.key?(:time_zone)
387
+ end
388
+ end
389
+
390
+ # Describes which report rows to match based on their dimension values.
391
+ class MediationReportSpecDimensionFilter
392
+ include Google::Apis::Core::Hashable
393
+
394
+ # Applies the filter criterion to the specified dimension.
395
+ # Corresponds to the JSON property `dimension`
396
+ # @return [String]
397
+ attr_accessor :dimension
398
+
399
+ # List of string values.
400
+ # Corresponds to the JSON property `matchesAny`
401
+ # @return [Google::Apis::AdmobV1::StringList]
402
+ attr_accessor :matches_any
403
+
404
+ def initialize(**args)
405
+ update!(**args)
406
+ end
407
+
408
+ # Update properties of this object
409
+ def update!(**args)
410
+ @dimension = args[:dimension] if args.key?(:dimension)
411
+ @matches_any = args[:matches_any] if args.key?(:matches_any)
412
+ end
413
+ end
414
+
415
+ # Sorting direction to be applied on a dimension or a metric.
416
+ class MediationReportSpecSortCondition
417
+ include Google::Apis::Core::Hashable
418
+
419
+ # Sort by the specified dimension.
420
+ # Corresponds to the JSON property `dimension`
421
+ # @return [String]
422
+ attr_accessor :dimension
423
+
424
+ # Sort by the specified metric.
425
+ # Corresponds to the JSON property `metric`
426
+ # @return [String]
427
+ attr_accessor :metric
428
+
429
+ # Sorting order of the dimension or metric.
430
+ # Corresponds to the JSON property `order`
431
+ # @return [String]
432
+ attr_accessor :order
433
+
434
+ def initialize(**args)
435
+ update!(**args)
436
+ end
437
+
438
+ # Update properties of this object
439
+ def update!(**args)
440
+ @dimension = args[:dimension] if args.key?(:dimension)
441
+ @metric = args[:metric] if args.key?(:metric)
442
+ @order = args[:order] if args.key?(:order)
443
+ end
444
+ end
445
+
446
+ # The specification for generating an AdMob Network report. For example, the
447
+ # specification to get clicks and estimated earnings for only the 'US' and 'CN'
448
+ # countries can look like the following example: ` 'date_range': ` 'start_date':
449
+ # `'year': 2018, 'month': 9, 'day': 1`, 'end_date': `'year': 2018, 'month': 9, '
450
+ # day': 30` `, 'dimensions': ['DATE', 'APP', 'COUNTRY'], 'metrics': ['CLICKS', '
451
+ # ESTIMATED_EARNINGS'], 'dimension_filters': [ ` 'dimension': 'COUNTRY', '
452
+ # matches_any': `'values': [`'value': 'US', 'value': 'CN'`]` ` ], '
453
+ # sort_conditions': [ `'dimension':'APP', order: 'ASCENDING'`, `'metric':'CLICKS'
454
+ # , order: 'DESCENDING'` ], 'localization_settings': ` 'currency_code': 'USD', '
455
+ # language_code': 'en-US' ` ` For a better understanding, you can treat the
456
+ # preceding specification like the following pseudo SQL: SELECT DATE, APP,
457
+ # COUNTRY, CLICKS, ESTIMATED_EARNINGS FROM NETWORK_REPORT WHERE DATE >= '2018-09-
458
+ # 01' AND DATE <= '2018-09-30' AND COUNTRY IN ('US', 'CN') GROUP BY DATE, APP,
459
+ # COUNTRY ORDER BY APP ASC, CLICKS DESC;
460
+ class NetworkReportSpec
461
+ include Google::Apis::Core::Hashable
462
+
463
+ # Specification of a single date range. Both dates are inclusive.
464
+ # Corresponds to the JSON property `dateRange`
465
+ # @return [Google::Apis::AdmobV1::DateRange]
466
+ attr_accessor :date_range
467
+
468
+ # Describes which report rows to match based on their dimension values.
469
+ # Corresponds to the JSON property `dimensionFilters`
470
+ # @return [Array<Google::Apis::AdmobV1::NetworkReportSpecDimensionFilter>]
471
+ attr_accessor :dimension_filters
472
+
473
+ # List of dimensions of the report. The value combination of these dimensions
474
+ # determines the row of the report. If no dimensions are specified, the report
475
+ # returns a single row of requested metrics for the entire account.
476
+ # Corresponds to the JSON property `dimensions`
477
+ # @return [Array<String>]
478
+ attr_accessor :dimensions
479
+
480
+ # Localization settings for reports, such as currency and language. It affects
481
+ # how metrics are calculated.
482
+ # Corresponds to the JSON property `localizationSettings`
483
+ # @return [Google::Apis::AdmobV1::LocalizationSettings]
484
+ attr_accessor :localization_settings
485
+
486
+ # Maximum number of report data rows to return. If the value is not set, the API
487
+ # returns as many rows as possible, up to 100000. Acceptable values are 1-100000,
488
+ # inclusive. Values larger than 100000 return an error.
489
+ # Corresponds to the JSON property `maxReportRows`
490
+ # @return [Fixnum]
491
+ attr_accessor :max_report_rows
492
+
493
+ # List of metrics of the report. A report must specify at least one metric.
494
+ # Corresponds to the JSON property `metrics`
495
+ # @return [Array<String>]
496
+ attr_accessor :metrics
497
+
498
+ # Describes the sorting of report rows. The order of the condition in the list
499
+ # defines its precedence; the earlier the condition, the higher its precedence.
500
+ # If no sort conditions are specified, the row ordering is undefined.
501
+ # Corresponds to the JSON property `sortConditions`
502
+ # @return [Array<Google::Apis::AdmobV1::NetworkReportSpecSortCondition>]
503
+ attr_accessor :sort_conditions
504
+
505
+ # A report time zone. Accepts an IANA TZ name values, such as "America/
506
+ # Los_Angeles." If no time zone is defined, the account default takes effect.
507
+ # Check default value by the get account action. **Warning:** The "America/
508
+ # Los_Angeles" is the only supported value at the moment.
509
+ # Corresponds to the JSON property `timeZone`
510
+ # @return [String]
511
+ attr_accessor :time_zone
512
+
513
+ def initialize(**args)
514
+ update!(**args)
515
+ end
516
+
517
+ # Update properties of this object
518
+ def update!(**args)
519
+ @date_range = args[:date_range] if args.key?(:date_range)
520
+ @dimension_filters = args[:dimension_filters] if args.key?(:dimension_filters)
521
+ @dimensions = args[:dimensions] if args.key?(:dimensions)
522
+ @localization_settings = args[:localization_settings] if args.key?(:localization_settings)
523
+ @max_report_rows = args[:max_report_rows] if args.key?(:max_report_rows)
524
+ @metrics = args[:metrics] if args.key?(:metrics)
525
+ @sort_conditions = args[:sort_conditions] if args.key?(:sort_conditions)
526
+ @time_zone = args[:time_zone] if args.key?(:time_zone)
527
+ end
528
+ end
529
+
530
+ # Describes which report rows to match based on their dimension values.
531
+ class NetworkReportSpecDimensionFilter
532
+ include Google::Apis::Core::Hashable
533
+
534
+ # Applies the filter criterion to the specified dimension.
535
+ # Corresponds to the JSON property `dimension`
536
+ # @return [String]
537
+ attr_accessor :dimension
538
+
539
+ # List of string values.
540
+ # Corresponds to the JSON property `matchesAny`
541
+ # @return [Google::Apis::AdmobV1::StringList]
542
+ attr_accessor :matches_any
543
+
544
+ def initialize(**args)
545
+ update!(**args)
546
+ end
547
+
548
+ # Update properties of this object
549
+ def update!(**args)
550
+ @dimension = args[:dimension] if args.key?(:dimension)
551
+ @matches_any = args[:matches_any] if args.key?(:matches_any)
552
+ end
553
+ end
554
+
555
+ # Sorting direction to be applied on a dimension or a metric.
556
+ class NetworkReportSpecSortCondition
557
+ include Google::Apis::Core::Hashable
558
+
559
+ # Sort by the specified dimension.
560
+ # Corresponds to the JSON property `dimension`
561
+ # @return [String]
562
+ attr_accessor :dimension
563
+
564
+ # Sort by the specified metric.
565
+ # Corresponds to the JSON property `metric`
566
+ # @return [String]
567
+ attr_accessor :metric
568
+
569
+ # Sorting order of the dimension or metric.
570
+ # Corresponds to the JSON property `order`
571
+ # @return [String]
572
+ attr_accessor :order
573
+
574
+ def initialize(**args)
575
+ update!(**args)
576
+ end
577
+
578
+ # Update properties of this object
579
+ def update!(**args)
580
+ @dimension = args[:dimension] if args.key?(:dimension)
581
+ @metric = args[:metric] if args.key?(:metric)
582
+ @order = args[:order] if args.key?(:order)
583
+ end
584
+ end
585
+
586
+ # A publisher account contains information relevant to the use of this API, such
587
+ # as the time zone used for the reports.
588
+ class PublisherAccount
589
+ include Google::Apis::Core::Hashable
590
+
591
+ # Currency code of the earning-related metrics, which is the 3-letter code
592
+ # defined in ISO 4217. The daily average rate is used for the currency
593
+ # conversion.
594
+ # Corresponds to the JSON property `currencyCode`
595
+ # @return [String]
596
+ attr_accessor :currency_code
597
+
598
+ # Resource name of this account. Format is accounts/`publisher_id`.
599
+ # Corresponds to the JSON property `name`
600
+ # @return [String]
601
+ attr_accessor :name
602
+
603
+ # The unique ID by which this publisher account can be identified in the API
604
+ # requests (for example, pub-1234567890).
605
+ # Corresponds to the JSON property `publisherId`
606
+ # @return [String]
607
+ attr_accessor :publisher_id
608
+
609
+ # The time zone that is used in reports that are generated for this account. The
610
+ # value is a time-zone ID as specified by the CLDR project, for example, "
611
+ # America/Los_Angeles".
612
+ # Corresponds to the JSON property `reportingTimeZone`
613
+ # @return [String]
614
+ attr_accessor :reporting_time_zone
615
+
616
+ def initialize(**args)
617
+ update!(**args)
618
+ end
619
+
620
+ # Update properties of this object
621
+ def update!(**args)
622
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
623
+ @name = args[:name] if args.key?(:name)
624
+ @publisher_id = args[:publisher_id] if args.key?(:publisher_id)
625
+ @reporting_time_zone = args[:reporting_time_zone] if args.key?(:reporting_time_zone)
626
+ end
627
+ end
628
+
629
+ # Groups data available after report generation, for example, warnings and row
630
+ # counts. Always sent as the last message in the stream response.
631
+ class ReportFooter
632
+ include Google::Apis::Core::Hashable
633
+
634
+ # Total number of rows that matched the request. Warning: This count does NOT
635
+ # always match the number of rows in the response. Do not make that assumption
636
+ # when processing the response.
637
+ # Corresponds to the JSON property `matchingRowCount`
638
+ # @return [Fixnum]
639
+ attr_accessor :matching_row_count
640
+
641
+ # Warnings associated with generation of the report.
642
+ # Corresponds to the JSON property `warnings`
643
+ # @return [Array<Google::Apis::AdmobV1::ReportWarning>]
644
+ attr_accessor :warnings
645
+
646
+ def initialize(**args)
647
+ update!(**args)
648
+ end
649
+
650
+ # Update properties of this object
651
+ def update!(**args)
652
+ @matching_row_count = args[:matching_row_count] if args.key?(:matching_row_count)
653
+ @warnings = args[:warnings] if args.key?(:warnings)
654
+ end
655
+ end
656
+
657
+ # Groups data helps to treat the generated report. Always sent as a first
658
+ # message in the stream response.
659
+ class ReportHeader
660
+ include Google::Apis::Core::Hashable
661
+
662
+ # Specification of a single date range. Both dates are inclusive.
663
+ # Corresponds to the JSON property `dateRange`
664
+ # @return [Google::Apis::AdmobV1::DateRange]
665
+ attr_accessor :date_range
666
+
667
+ # Localization settings for reports, such as currency and language. It affects
668
+ # how metrics are calculated.
669
+ # Corresponds to the JSON property `localizationSettings`
670
+ # @return [Google::Apis::AdmobV1::LocalizationSettings]
671
+ attr_accessor :localization_settings
672
+
673
+ # The report time zone. The value is a time-zone ID as specified by the CLDR
674
+ # project, for example, "America/Los_Angeles".
675
+ # Corresponds to the JSON property `reportingTimeZone`
676
+ # @return [String]
677
+ attr_accessor :reporting_time_zone
678
+
679
+ def initialize(**args)
680
+ update!(**args)
681
+ end
682
+
683
+ # Update properties of this object
684
+ def update!(**args)
685
+ @date_range = args[:date_range] if args.key?(:date_range)
686
+ @localization_settings = args[:localization_settings] if args.key?(:localization_settings)
687
+ @reporting_time_zone = args[:reporting_time_zone] if args.key?(:reporting_time_zone)
688
+ end
689
+ end
690
+
691
+ # A row of the returning report.
692
+ class ReportRow
693
+ include Google::Apis::Core::Hashable
694
+
695
+ # Map of dimension values in a row, with keys as enum name of the dimensions.
696
+ # Corresponds to the JSON property `dimensionValues`
697
+ # @return [Hash<String,Google::Apis::AdmobV1::ReportRowDimensionValue>]
698
+ attr_accessor :dimension_values
699
+
700
+ # Map of metric values in a row, with keys as enum name of the metrics. If a
701
+ # metric being requested has no value returned, the map will not include it.
702
+ # Corresponds to the JSON property `metricValues`
703
+ # @return [Hash<String,Google::Apis::AdmobV1::ReportRowMetricValue>]
704
+ attr_accessor :metric_values
705
+
706
+ def initialize(**args)
707
+ update!(**args)
708
+ end
709
+
710
+ # Update properties of this object
711
+ def update!(**args)
712
+ @dimension_values = args[:dimension_values] if args.key?(:dimension_values)
713
+ @metric_values = args[:metric_values] if args.key?(:metric_values)
714
+ end
715
+ end
716
+
717
+ # Representation of a dimension value.
718
+ class ReportRowDimensionValue
719
+ include Google::Apis::Core::Hashable
720
+
721
+ # The localized string representation of the value. If unspecified, the display
722
+ # label should be derived from the value.
723
+ # Corresponds to the JSON property `displayLabel`
724
+ # @return [String]
725
+ attr_accessor :display_label
726
+
727
+ # Dimension value in the format specified in the report's spec Dimension enum.
728
+ # Corresponds to the JSON property `value`
729
+ # @return [String]
730
+ attr_accessor :value
731
+
732
+ def initialize(**args)
733
+ update!(**args)
734
+ end
735
+
736
+ # Update properties of this object
737
+ def update!(**args)
738
+ @display_label = args[:display_label] if args.key?(:display_label)
739
+ @value = args[:value] if args.key?(:value)
740
+ end
741
+ end
742
+
743
+ # Representation of a metric value.
744
+ class ReportRowMetricValue
745
+ include Google::Apis::Core::Hashable
746
+
747
+ # Double precision (approximate) decimal values. Rates are from 0 to 1.
748
+ # Corresponds to the JSON property `doubleValue`
749
+ # @return [Float]
750
+ attr_accessor :double_value
751
+
752
+ # Metric integer value.
753
+ # Corresponds to the JSON property `integerValue`
754
+ # @return [Fixnum]
755
+ attr_accessor :integer_value
756
+
757
+ # Amount in micros. One million is equivalent to one unit. Currency value is in
758
+ # the unit (USD, EUR or other) specified by the request. For example, $6.50
759
+ # whould be represented as 6500000 micros.
760
+ # Corresponds to the JSON property `microsValue`
761
+ # @return [Fixnum]
762
+ attr_accessor :micros_value
763
+
764
+ def initialize(**args)
765
+ update!(**args)
766
+ end
767
+
768
+ # Update properties of this object
769
+ def update!(**args)
770
+ @double_value = args[:double_value] if args.key?(:double_value)
771
+ @integer_value = args[:integer_value] if args.key?(:integer_value)
772
+ @micros_value = args[:micros_value] if args.key?(:micros_value)
773
+ end
774
+ end
775
+
776
+ # Warnings associated with generation of the report.
777
+ class ReportWarning
778
+ include Google::Apis::Core::Hashable
779
+
780
+ # Describes the details of the warning message, in English.
781
+ # Corresponds to the JSON property `description`
782
+ # @return [String]
783
+ attr_accessor :description
784
+
785
+ # Type of the warning.
786
+ # Corresponds to the JSON property `type`
787
+ # @return [String]
788
+ attr_accessor :type
789
+
790
+ def initialize(**args)
791
+ update!(**args)
792
+ end
793
+
794
+ # Update properties of this object
795
+ def update!(**args)
796
+ @description = args[:description] if args.key?(:description)
797
+ @type = args[:type] if args.key?(:type)
798
+ end
799
+ end
800
+
801
+ # List of string values.
802
+ class StringList
803
+ include Google::Apis::Core::Hashable
804
+
805
+ # The string values.
806
+ # Corresponds to the JSON property `values`
807
+ # @return [Array<String>]
808
+ attr_accessor :values
809
+
810
+ def initialize(**args)
811
+ update!(**args)
812
+ end
813
+
814
+ # Update properties of this object
815
+ def update!(**args)
816
+ @values = args[:values] if args.key?(:values)
817
+ end
818
+ end
819
+ end
820
+ end
821
+ end