google-apis-admob_v1beta 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
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
+ module Google
16
+ module Apis
17
+ module AdmobV1beta
18
+ # Version of the google-apis-admob_v1beta gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.1.1"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20201231"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,472 @@
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 AdmobV1beta
24
+
25
+ class AdUnit
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class App
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class AppLinkedAppInfo
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class AppManualAppInfo
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class Date
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class DateRange
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class GenerateMediationReportRequest
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class GenerateMediationReportResponse
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class GenerateNetworkReportRequest
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class GenerateNetworkReportResponse
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class ListAdUnitsResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ListAppsResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class ListPublisherAccountsResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class LocalizationSettings
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class MediationReportSpec
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class MediationReportSpecDimensionFilter
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class MediationReportSpecSortCondition
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class NetworkReportSpec
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class NetworkReportSpecDimensionFilter
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class NetworkReportSpecSortCondition
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class PublisherAccount
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class ReportFooter
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class ReportHeader
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class ReportRow
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class ReportRowDimensionValue
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class ReportRowMetricValue
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class ReportWarning
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class StringList
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class AdUnit
194
+ # @private
195
+ class Representation < Google::Apis::Core::JsonRepresentation
196
+ property :ad_format, as: 'adFormat'
197
+ collection :ad_types, as: 'adTypes'
198
+ property :ad_unit_id, as: 'adUnitId'
199
+ property :app_id, as: 'appId'
200
+ property :display_name, as: 'displayName'
201
+ property :name, as: 'name'
202
+ end
203
+ end
204
+
205
+ class App
206
+ # @private
207
+ class Representation < Google::Apis::Core::JsonRepresentation
208
+ property :app_id, as: 'appId'
209
+ property :linked_app_info, as: 'linkedAppInfo', class: Google::Apis::AdmobV1beta::AppLinkedAppInfo, decorator: Google::Apis::AdmobV1beta::AppLinkedAppInfo::Representation
210
+
211
+ property :manual_app_info, as: 'manualAppInfo', class: Google::Apis::AdmobV1beta::AppManualAppInfo, decorator: Google::Apis::AdmobV1beta::AppManualAppInfo::Representation
212
+
213
+ property :name, as: 'name'
214
+ property :platform, as: 'platform'
215
+ end
216
+ end
217
+
218
+ class AppLinkedAppInfo
219
+ # @private
220
+ class Representation < Google::Apis::Core::JsonRepresentation
221
+ property :app_store_id, as: 'appStoreId'
222
+ property :display_name, as: 'displayName'
223
+ end
224
+ end
225
+
226
+ class AppManualAppInfo
227
+ # @private
228
+ class Representation < Google::Apis::Core::JsonRepresentation
229
+ property :display_name, as: 'displayName'
230
+ end
231
+ end
232
+
233
+ class Date
234
+ # @private
235
+ class Representation < Google::Apis::Core::JsonRepresentation
236
+ property :day, as: 'day'
237
+ property :month, as: 'month'
238
+ property :year, as: 'year'
239
+ end
240
+ end
241
+
242
+ class DateRange
243
+ # @private
244
+ class Representation < Google::Apis::Core::JsonRepresentation
245
+ property :end_date, as: 'endDate', class: Google::Apis::AdmobV1beta::Date, decorator: Google::Apis::AdmobV1beta::Date::Representation
246
+
247
+ property :start_date, as: 'startDate', class: Google::Apis::AdmobV1beta::Date, decorator: Google::Apis::AdmobV1beta::Date::Representation
248
+
249
+ end
250
+ end
251
+
252
+ class GenerateMediationReportRequest
253
+ # @private
254
+ class Representation < Google::Apis::Core::JsonRepresentation
255
+ property :report_spec, as: 'reportSpec', class: Google::Apis::AdmobV1beta::MediationReportSpec, decorator: Google::Apis::AdmobV1beta::MediationReportSpec::Representation
256
+
257
+ end
258
+ end
259
+
260
+ class GenerateMediationReportResponse
261
+ # @private
262
+ class Representation < Google::Apis::Core::JsonRepresentation
263
+ property :footer, as: 'footer', class: Google::Apis::AdmobV1beta::ReportFooter, decorator: Google::Apis::AdmobV1beta::ReportFooter::Representation
264
+
265
+ property :header, as: 'header', class: Google::Apis::AdmobV1beta::ReportHeader, decorator: Google::Apis::AdmobV1beta::ReportHeader::Representation
266
+
267
+ property :row, as: 'row', class: Google::Apis::AdmobV1beta::ReportRow, decorator: Google::Apis::AdmobV1beta::ReportRow::Representation
268
+
269
+ end
270
+ end
271
+
272
+ class GenerateNetworkReportRequest
273
+ # @private
274
+ class Representation < Google::Apis::Core::JsonRepresentation
275
+ property :report_spec, as: 'reportSpec', class: Google::Apis::AdmobV1beta::NetworkReportSpec, decorator: Google::Apis::AdmobV1beta::NetworkReportSpec::Representation
276
+
277
+ end
278
+ end
279
+
280
+ class GenerateNetworkReportResponse
281
+ # @private
282
+ class Representation < Google::Apis::Core::JsonRepresentation
283
+ property :footer, as: 'footer', class: Google::Apis::AdmobV1beta::ReportFooter, decorator: Google::Apis::AdmobV1beta::ReportFooter::Representation
284
+
285
+ property :header, as: 'header', class: Google::Apis::AdmobV1beta::ReportHeader, decorator: Google::Apis::AdmobV1beta::ReportHeader::Representation
286
+
287
+ property :row, as: 'row', class: Google::Apis::AdmobV1beta::ReportRow, decorator: Google::Apis::AdmobV1beta::ReportRow::Representation
288
+
289
+ end
290
+ end
291
+
292
+ class ListAdUnitsResponse
293
+ # @private
294
+ class Representation < Google::Apis::Core::JsonRepresentation
295
+ collection :ad_units, as: 'adUnits', class: Google::Apis::AdmobV1beta::AdUnit, decorator: Google::Apis::AdmobV1beta::AdUnit::Representation
296
+
297
+ property :next_page_token, as: 'nextPageToken'
298
+ end
299
+ end
300
+
301
+ class ListAppsResponse
302
+ # @private
303
+ class Representation < Google::Apis::Core::JsonRepresentation
304
+ collection :apps, as: 'apps', class: Google::Apis::AdmobV1beta::App, decorator: Google::Apis::AdmobV1beta::App::Representation
305
+
306
+ property :next_page_token, as: 'nextPageToken'
307
+ end
308
+ end
309
+
310
+ class ListPublisherAccountsResponse
311
+ # @private
312
+ class Representation < Google::Apis::Core::JsonRepresentation
313
+ collection :account, as: 'account', class: Google::Apis::AdmobV1beta::PublisherAccount, decorator: Google::Apis::AdmobV1beta::PublisherAccount::Representation
314
+
315
+ property :next_page_token, as: 'nextPageToken'
316
+ end
317
+ end
318
+
319
+ class LocalizationSettings
320
+ # @private
321
+ class Representation < Google::Apis::Core::JsonRepresentation
322
+ property :currency_code, as: 'currencyCode'
323
+ property :language_code, as: 'languageCode'
324
+ end
325
+ end
326
+
327
+ class MediationReportSpec
328
+ # @private
329
+ class Representation < Google::Apis::Core::JsonRepresentation
330
+ property :date_range, as: 'dateRange', class: Google::Apis::AdmobV1beta::DateRange, decorator: Google::Apis::AdmobV1beta::DateRange::Representation
331
+
332
+ collection :dimension_filters, as: 'dimensionFilters', class: Google::Apis::AdmobV1beta::MediationReportSpecDimensionFilter, decorator: Google::Apis::AdmobV1beta::MediationReportSpecDimensionFilter::Representation
333
+
334
+ collection :dimensions, as: 'dimensions'
335
+ property :localization_settings, as: 'localizationSettings', class: Google::Apis::AdmobV1beta::LocalizationSettings, decorator: Google::Apis::AdmobV1beta::LocalizationSettings::Representation
336
+
337
+ property :max_report_rows, as: 'maxReportRows'
338
+ collection :metrics, as: 'metrics'
339
+ collection :sort_conditions, as: 'sortConditions', class: Google::Apis::AdmobV1beta::MediationReportSpecSortCondition, decorator: Google::Apis::AdmobV1beta::MediationReportSpecSortCondition::Representation
340
+
341
+ property :time_zone, as: 'timeZone'
342
+ end
343
+ end
344
+
345
+ class MediationReportSpecDimensionFilter
346
+ # @private
347
+ class Representation < Google::Apis::Core::JsonRepresentation
348
+ property :dimension, as: 'dimension'
349
+ property :matches_any, as: 'matchesAny', class: Google::Apis::AdmobV1beta::StringList, decorator: Google::Apis::AdmobV1beta::StringList::Representation
350
+
351
+ end
352
+ end
353
+
354
+ class MediationReportSpecSortCondition
355
+ # @private
356
+ class Representation < Google::Apis::Core::JsonRepresentation
357
+ property :dimension, as: 'dimension'
358
+ property :metric, as: 'metric'
359
+ property :order, as: 'order'
360
+ end
361
+ end
362
+
363
+ class NetworkReportSpec
364
+ # @private
365
+ class Representation < Google::Apis::Core::JsonRepresentation
366
+ property :date_range, as: 'dateRange', class: Google::Apis::AdmobV1beta::DateRange, decorator: Google::Apis::AdmobV1beta::DateRange::Representation
367
+
368
+ collection :dimension_filters, as: 'dimensionFilters', class: Google::Apis::AdmobV1beta::NetworkReportSpecDimensionFilter, decorator: Google::Apis::AdmobV1beta::NetworkReportSpecDimensionFilter::Representation
369
+
370
+ collection :dimensions, as: 'dimensions'
371
+ property :localization_settings, as: 'localizationSettings', class: Google::Apis::AdmobV1beta::LocalizationSettings, decorator: Google::Apis::AdmobV1beta::LocalizationSettings::Representation
372
+
373
+ property :max_report_rows, as: 'maxReportRows'
374
+ collection :metrics, as: 'metrics'
375
+ collection :sort_conditions, as: 'sortConditions', class: Google::Apis::AdmobV1beta::NetworkReportSpecSortCondition, decorator: Google::Apis::AdmobV1beta::NetworkReportSpecSortCondition::Representation
376
+
377
+ property :time_zone, as: 'timeZone'
378
+ end
379
+ end
380
+
381
+ class NetworkReportSpecDimensionFilter
382
+ # @private
383
+ class Representation < Google::Apis::Core::JsonRepresentation
384
+ property :dimension, as: 'dimension'
385
+ property :matches_any, as: 'matchesAny', class: Google::Apis::AdmobV1beta::StringList, decorator: Google::Apis::AdmobV1beta::StringList::Representation
386
+
387
+ end
388
+ end
389
+
390
+ class NetworkReportSpecSortCondition
391
+ # @private
392
+ class Representation < Google::Apis::Core::JsonRepresentation
393
+ property :dimension, as: 'dimension'
394
+ property :metric, as: 'metric'
395
+ property :order, as: 'order'
396
+ end
397
+ end
398
+
399
+ class PublisherAccount
400
+ # @private
401
+ class Representation < Google::Apis::Core::JsonRepresentation
402
+ property :currency_code, as: 'currencyCode'
403
+ property :name, as: 'name'
404
+ property :publisher_id, as: 'publisherId'
405
+ property :reporting_time_zone, as: 'reportingTimeZone'
406
+ end
407
+ end
408
+
409
+ class ReportFooter
410
+ # @private
411
+ class Representation < Google::Apis::Core::JsonRepresentation
412
+ property :matching_row_count, :numeric_string => true, as: 'matchingRowCount'
413
+ collection :warnings, as: 'warnings', class: Google::Apis::AdmobV1beta::ReportWarning, decorator: Google::Apis::AdmobV1beta::ReportWarning::Representation
414
+
415
+ end
416
+ end
417
+
418
+ class ReportHeader
419
+ # @private
420
+ class Representation < Google::Apis::Core::JsonRepresentation
421
+ property :date_range, as: 'dateRange', class: Google::Apis::AdmobV1beta::DateRange, decorator: Google::Apis::AdmobV1beta::DateRange::Representation
422
+
423
+ property :localization_settings, as: 'localizationSettings', class: Google::Apis::AdmobV1beta::LocalizationSettings, decorator: Google::Apis::AdmobV1beta::LocalizationSettings::Representation
424
+
425
+ property :reporting_time_zone, as: 'reportingTimeZone'
426
+ end
427
+ end
428
+
429
+ class ReportRow
430
+ # @private
431
+ class Representation < Google::Apis::Core::JsonRepresentation
432
+ hash :dimension_values, as: 'dimensionValues', class: Google::Apis::AdmobV1beta::ReportRowDimensionValue, decorator: Google::Apis::AdmobV1beta::ReportRowDimensionValue::Representation
433
+
434
+ hash :metric_values, as: 'metricValues', class: Google::Apis::AdmobV1beta::ReportRowMetricValue, decorator: Google::Apis::AdmobV1beta::ReportRowMetricValue::Representation
435
+
436
+ end
437
+ end
438
+
439
+ class ReportRowDimensionValue
440
+ # @private
441
+ class Representation < Google::Apis::Core::JsonRepresentation
442
+ property :display_label, as: 'displayLabel'
443
+ property :value, as: 'value'
444
+ end
445
+ end
446
+
447
+ class ReportRowMetricValue
448
+ # @private
449
+ class Representation < Google::Apis::Core::JsonRepresentation
450
+ property :double_value, as: 'doubleValue'
451
+ property :integer_value, :numeric_string => true, as: 'integerValue'
452
+ property :micros_value, :numeric_string => true, as: 'microsValue'
453
+ end
454
+ end
455
+
456
+ class ReportWarning
457
+ # @private
458
+ class Representation < Google::Apis::Core::JsonRepresentation
459
+ property :description, as: 'description'
460
+ property :type, as: 'type'
461
+ end
462
+ end
463
+
464
+ class StringList
465
+ # @private
466
+ class Representation < Google::Apis::Core::JsonRepresentation
467
+ collection :values, as: 'values'
468
+ end
469
+ end
470
+ end
471
+ end
472
+ end