google-apis-admob_v1 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google-apis-admob_v1.rb +15 -0
- data/lib/google/apis/admob_v1.rb +40 -0
- data/lib/google/apis/admob_v1/classes.rb +821 -0
- data/lib/google/apis/admob_v1/gem_version.rb +28 -0
- data/lib/google/apis/admob_v1/representations.rb +378 -0
- data/lib/google/apis/admob_v1/service.rb +201 -0
- metadata +76 -0
@@ -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 AdmobV1
|
18
|
+
# Version of the google-apis-admob_v1 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,378 @@
|
|
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
|
+
class Date
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class DateRange
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class GenerateMediationReportRequest
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class GenerateMediationReportResponse
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class GenerateNetworkReportRequest
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class GenerateNetworkReportResponse
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class ListPublisherAccountsResponse
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class LocalizationSettings
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class MediationReportSpec
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class MediationReportSpecDimensionFilter
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class MediationReportSpecSortCondition
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class NetworkReportSpec
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class NetworkReportSpecDimensionFilter
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class NetworkReportSpecSortCondition
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class PublisherAccount
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
115
|
+
class ReportFooter
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class ReportHeader
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
127
|
+
class ReportRow
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
133
|
+
class ReportRowDimensionValue
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
139
|
+
class ReportRowMetricValue
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
145
|
+
class ReportWarning
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
151
|
+
class StringList
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
155
|
+
end
|
156
|
+
|
157
|
+
class Date
|
158
|
+
# @private
|
159
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
160
|
+
property :day, as: 'day'
|
161
|
+
property :month, as: 'month'
|
162
|
+
property :year, as: 'year'
|
163
|
+
end
|
164
|
+
end
|
165
|
+
|
166
|
+
class DateRange
|
167
|
+
# @private
|
168
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
169
|
+
property :end_date, as: 'endDate', class: Google::Apis::AdmobV1::Date, decorator: Google::Apis::AdmobV1::Date::Representation
|
170
|
+
|
171
|
+
property :start_date, as: 'startDate', class: Google::Apis::AdmobV1::Date, decorator: Google::Apis::AdmobV1::Date::Representation
|
172
|
+
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
176
|
+
class GenerateMediationReportRequest
|
177
|
+
# @private
|
178
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
179
|
+
property :report_spec, as: 'reportSpec', class: Google::Apis::AdmobV1::MediationReportSpec, decorator: Google::Apis::AdmobV1::MediationReportSpec::Representation
|
180
|
+
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
184
|
+
class GenerateMediationReportResponse
|
185
|
+
# @private
|
186
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
187
|
+
property :footer, as: 'footer', class: Google::Apis::AdmobV1::ReportFooter, decorator: Google::Apis::AdmobV1::ReportFooter::Representation
|
188
|
+
|
189
|
+
property :header, as: 'header', class: Google::Apis::AdmobV1::ReportHeader, decorator: Google::Apis::AdmobV1::ReportHeader::Representation
|
190
|
+
|
191
|
+
property :row, as: 'row', class: Google::Apis::AdmobV1::ReportRow, decorator: Google::Apis::AdmobV1::ReportRow::Representation
|
192
|
+
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
class GenerateNetworkReportRequest
|
197
|
+
# @private
|
198
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
199
|
+
property :report_spec, as: 'reportSpec', class: Google::Apis::AdmobV1::NetworkReportSpec, decorator: Google::Apis::AdmobV1::NetworkReportSpec::Representation
|
200
|
+
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
class GenerateNetworkReportResponse
|
205
|
+
# @private
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
207
|
+
property :footer, as: 'footer', class: Google::Apis::AdmobV1::ReportFooter, decorator: Google::Apis::AdmobV1::ReportFooter::Representation
|
208
|
+
|
209
|
+
property :header, as: 'header', class: Google::Apis::AdmobV1::ReportHeader, decorator: Google::Apis::AdmobV1::ReportHeader::Representation
|
210
|
+
|
211
|
+
property :row, as: 'row', class: Google::Apis::AdmobV1::ReportRow, decorator: Google::Apis::AdmobV1::ReportRow::Representation
|
212
|
+
|
213
|
+
end
|
214
|
+
end
|
215
|
+
|
216
|
+
class ListPublisherAccountsResponse
|
217
|
+
# @private
|
218
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
219
|
+
collection :account, as: 'account', class: Google::Apis::AdmobV1::PublisherAccount, decorator: Google::Apis::AdmobV1::PublisherAccount::Representation
|
220
|
+
|
221
|
+
property :next_page_token, as: 'nextPageToken'
|
222
|
+
end
|
223
|
+
end
|
224
|
+
|
225
|
+
class LocalizationSettings
|
226
|
+
# @private
|
227
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
228
|
+
property :currency_code, as: 'currencyCode'
|
229
|
+
property :language_code, as: 'languageCode'
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
233
|
+
class MediationReportSpec
|
234
|
+
# @private
|
235
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
236
|
+
property :date_range, as: 'dateRange', class: Google::Apis::AdmobV1::DateRange, decorator: Google::Apis::AdmobV1::DateRange::Representation
|
237
|
+
|
238
|
+
collection :dimension_filters, as: 'dimensionFilters', class: Google::Apis::AdmobV1::MediationReportSpecDimensionFilter, decorator: Google::Apis::AdmobV1::MediationReportSpecDimensionFilter::Representation
|
239
|
+
|
240
|
+
collection :dimensions, as: 'dimensions'
|
241
|
+
property :localization_settings, as: 'localizationSettings', class: Google::Apis::AdmobV1::LocalizationSettings, decorator: Google::Apis::AdmobV1::LocalizationSettings::Representation
|
242
|
+
|
243
|
+
property :max_report_rows, as: 'maxReportRows'
|
244
|
+
collection :metrics, as: 'metrics'
|
245
|
+
collection :sort_conditions, as: 'sortConditions', class: Google::Apis::AdmobV1::MediationReportSpecSortCondition, decorator: Google::Apis::AdmobV1::MediationReportSpecSortCondition::Representation
|
246
|
+
|
247
|
+
property :time_zone, as: 'timeZone'
|
248
|
+
end
|
249
|
+
end
|
250
|
+
|
251
|
+
class MediationReportSpecDimensionFilter
|
252
|
+
# @private
|
253
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
254
|
+
property :dimension, as: 'dimension'
|
255
|
+
property :matches_any, as: 'matchesAny', class: Google::Apis::AdmobV1::StringList, decorator: Google::Apis::AdmobV1::StringList::Representation
|
256
|
+
|
257
|
+
end
|
258
|
+
end
|
259
|
+
|
260
|
+
class MediationReportSpecSortCondition
|
261
|
+
# @private
|
262
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
263
|
+
property :dimension, as: 'dimension'
|
264
|
+
property :metric, as: 'metric'
|
265
|
+
property :order, as: 'order'
|
266
|
+
end
|
267
|
+
end
|
268
|
+
|
269
|
+
class NetworkReportSpec
|
270
|
+
# @private
|
271
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
272
|
+
property :date_range, as: 'dateRange', class: Google::Apis::AdmobV1::DateRange, decorator: Google::Apis::AdmobV1::DateRange::Representation
|
273
|
+
|
274
|
+
collection :dimension_filters, as: 'dimensionFilters', class: Google::Apis::AdmobV1::NetworkReportSpecDimensionFilter, decorator: Google::Apis::AdmobV1::NetworkReportSpecDimensionFilter::Representation
|
275
|
+
|
276
|
+
collection :dimensions, as: 'dimensions'
|
277
|
+
property :localization_settings, as: 'localizationSettings', class: Google::Apis::AdmobV1::LocalizationSettings, decorator: Google::Apis::AdmobV1::LocalizationSettings::Representation
|
278
|
+
|
279
|
+
property :max_report_rows, as: 'maxReportRows'
|
280
|
+
collection :metrics, as: 'metrics'
|
281
|
+
collection :sort_conditions, as: 'sortConditions', class: Google::Apis::AdmobV1::NetworkReportSpecSortCondition, decorator: Google::Apis::AdmobV1::NetworkReportSpecSortCondition::Representation
|
282
|
+
|
283
|
+
property :time_zone, as: 'timeZone'
|
284
|
+
end
|
285
|
+
end
|
286
|
+
|
287
|
+
class NetworkReportSpecDimensionFilter
|
288
|
+
# @private
|
289
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
290
|
+
property :dimension, as: 'dimension'
|
291
|
+
property :matches_any, as: 'matchesAny', class: Google::Apis::AdmobV1::StringList, decorator: Google::Apis::AdmobV1::StringList::Representation
|
292
|
+
|
293
|
+
end
|
294
|
+
end
|
295
|
+
|
296
|
+
class NetworkReportSpecSortCondition
|
297
|
+
# @private
|
298
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
299
|
+
property :dimension, as: 'dimension'
|
300
|
+
property :metric, as: 'metric'
|
301
|
+
property :order, as: 'order'
|
302
|
+
end
|
303
|
+
end
|
304
|
+
|
305
|
+
class PublisherAccount
|
306
|
+
# @private
|
307
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
308
|
+
property :currency_code, as: 'currencyCode'
|
309
|
+
property :name, as: 'name'
|
310
|
+
property :publisher_id, as: 'publisherId'
|
311
|
+
property :reporting_time_zone, as: 'reportingTimeZone'
|
312
|
+
end
|
313
|
+
end
|
314
|
+
|
315
|
+
class ReportFooter
|
316
|
+
# @private
|
317
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
318
|
+
property :matching_row_count, :numeric_string => true, as: 'matchingRowCount'
|
319
|
+
collection :warnings, as: 'warnings', class: Google::Apis::AdmobV1::ReportWarning, decorator: Google::Apis::AdmobV1::ReportWarning::Representation
|
320
|
+
|
321
|
+
end
|
322
|
+
end
|
323
|
+
|
324
|
+
class ReportHeader
|
325
|
+
# @private
|
326
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
327
|
+
property :date_range, as: 'dateRange', class: Google::Apis::AdmobV1::DateRange, decorator: Google::Apis::AdmobV1::DateRange::Representation
|
328
|
+
|
329
|
+
property :localization_settings, as: 'localizationSettings', class: Google::Apis::AdmobV1::LocalizationSettings, decorator: Google::Apis::AdmobV1::LocalizationSettings::Representation
|
330
|
+
|
331
|
+
property :reporting_time_zone, as: 'reportingTimeZone'
|
332
|
+
end
|
333
|
+
end
|
334
|
+
|
335
|
+
class ReportRow
|
336
|
+
# @private
|
337
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
338
|
+
hash :dimension_values, as: 'dimensionValues', class: Google::Apis::AdmobV1::ReportRowDimensionValue, decorator: Google::Apis::AdmobV1::ReportRowDimensionValue::Representation
|
339
|
+
|
340
|
+
hash :metric_values, as: 'metricValues', class: Google::Apis::AdmobV1::ReportRowMetricValue, decorator: Google::Apis::AdmobV1::ReportRowMetricValue::Representation
|
341
|
+
|
342
|
+
end
|
343
|
+
end
|
344
|
+
|
345
|
+
class ReportRowDimensionValue
|
346
|
+
# @private
|
347
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
348
|
+
property :display_label, as: 'displayLabel'
|
349
|
+
property :value, as: 'value'
|
350
|
+
end
|
351
|
+
end
|
352
|
+
|
353
|
+
class ReportRowMetricValue
|
354
|
+
# @private
|
355
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
356
|
+
property :double_value, as: 'doubleValue'
|
357
|
+
property :integer_value, :numeric_string => true, as: 'integerValue'
|
358
|
+
property :micros_value, :numeric_string => true, as: 'microsValue'
|
359
|
+
end
|
360
|
+
end
|
361
|
+
|
362
|
+
class ReportWarning
|
363
|
+
# @private
|
364
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
365
|
+
property :description, as: 'description'
|
366
|
+
property :type, as: 'type'
|
367
|
+
end
|
368
|
+
end
|
369
|
+
|
370
|
+
class StringList
|
371
|
+
# @private
|
372
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
373
|
+
collection :values, as: 'values'
|
374
|
+
end
|
375
|
+
end
|
376
|
+
end
|
377
|
+
end
|
378
|
+
end
|
@@ -0,0 +1,201 @@
|
|
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/core/base_service'
|
16
|
+
require 'google/apis/core/json_representation'
|
17
|
+
require 'google/apis/core/hashable'
|
18
|
+
require 'google/apis/errors'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
module AdmobV1
|
23
|
+
# AdMob API
|
24
|
+
#
|
25
|
+
# The AdMob API allows publishers to programmatically get information about
|
26
|
+
# their AdMob account.
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
# require 'google/apis/admob_v1'
|
30
|
+
#
|
31
|
+
# Admob = Google::Apis::AdmobV1 # Alias the module
|
32
|
+
# service = Admob::AdMobService.new
|
33
|
+
#
|
34
|
+
# @see https://developers.google.com/admob/api/
|
35
|
+
class AdMobService < Google::Apis::Core::BaseService
|
36
|
+
# @return [String]
|
37
|
+
# API key. Your API key identifies your project and provides you with API access,
|
38
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
39
|
+
attr_accessor :key
|
40
|
+
|
41
|
+
# @return [String]
|
42
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
43
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
44
|
+
attr_accessor :quota_user
|
45
|
+
|
46
|
+
def initialize
|
47
|
+
super('https://admob.googleapis.com/', '',
|
48
|
+
client_name: 'google-apis-admob_v1',
|
49
|
+
client_version: Google::Apis::AdmobV1::GEM_VERSION)
|
50
|
+
@batch_path = 'batch'
|
51
|
+
end
|
52
|
+
|
53
|
+
# Gets information about the specified AdMob publisher account.
|
54
|
+
# @param [String] name
|
55
|
+
# Resource name of the publisher account to retrieve. Example: accounts/pub-
|
56
|
+
# 9876543210987654
|
57
|
+
# @param [String] fields
|
58
|
+
# Selector specifying which fields to include in a partial response.
|
59
|
+
# @param [String] quota_user
|
60
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
61
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
62
|
+
# @param [Google::Apis::RequestOptions] options
|
63
|
+
# Request-specific options
|
64
|
+
#
|
65
|
+
# @yield [result, err] Result & error if block supplied
|
66
|
+
# @yieldparam result [Google::Apis::AdmobV1::PublisherAccount] parsed result object
|
67
|
+
# @yieldparam err [StandardError] error object if request failed
|
68
|
+
#
|
69
|
+
# @return [Google::Apis::AdmobV1::PublisherAccount]
|
70
|
+
#
|
71
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
72
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
73
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
74
|
+
def get_account(name, fields: nil, quota_user: nil, options: nil, &block)
|
75
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
76
|
+
command.response_representation = Google::Apis::AdmobV1::PublisherAccount::Representation
|
77
|
+
command.response_class = Google::Apis::AdmobV1::PublisherAccount
|
78
|
+
command.params['name'] = name unless name.nil?
|
79
|
+
command.query['fields'] = fields unless fields.nil?
|
80
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
81
|
+
execute_or_queue_command(command, &block)
|
82
|
+
end
|
83
|
+
|
84
|
+
# List the AdMob publisher account accessible with the client credential.
|
85
|
+
# Currently, all credentials have access to at most one AdMob account.
|
86
|
+
# @param [Fixnum] page_size
|
87
|
+
# Maximum number of accounts to return.
|
88
|
+
# @param [String] page_token
|
89
|
+
# The value returned by the last `ListPublisherAccountsResponse`; indicates that
|
90
|
+
# this is a continuation of a prior `ListPublisherAccounts` call, and that the
|
91
|
+
# system should return the next page of data.
|
92
|
+
# @param [String] fields
|
93
|
+
# Selector specifying which fields to include in a partial response.
|
94
|
+
# @param [String] quota_user
|
95
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
96
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
97
|
+
# @param [Google::Apis::RequestOptions] options
|
98
|
+
# Request-specific options
|
99
|
+
#
|
100
|
+
# @yield [result, err] Result & error if block supplied
|
101
|
+
# @yieldparam result [Google::Apis::AdmobV1::ListPublisherAccountsResponse] parsed result object
|
102
|
+
# @yieldparam err [StandardError] error object if request failed
|
103
|
+
#
|
104
|
+
# @return [Google::Apis::AdmobV1::ListPublisherAccountsResponse]
|
105
|
+
#
|
106
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
107
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
108
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
109
|
+
def list_accounts(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
110
|
+
command = make_simple_command(:get, 'v1/accounts', options)
|
111
|
+
command.response_representation = Google::Apis::AdmobV1::ListPublisherAccountsResponse::Representation
|
112
|
+
command.response_class = Google::Apis::AdmobV1::ListPublisherAccountsResponse
|
113
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
114
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
115
|
+
command.query['fields'] = fields unless fields.nil?
|
116
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
117
|
+
execute_or_queue_command(command, &block)
|
118
|
+
end
|
119
|
+
|
120
|
+
# Generates an AdMob Mediation report based on the provided report specification.
|
121
|
+
# Returns result of a server-side streaming RPC. The result is returned in a
|
122
|
+
# sequence of responses.
|
123
|
+
# @param [String] parent
|
124
|
+
# Resource name of the account to generate the report for. Example: accounts/pub-
|
125
|
+
# 9876543210987654
|
126
|
+
# @param [Google::Apis::AdmobV1::GenerateMediationReportRequest] generate_mediation_report_request_object
|
127
|
+
# @param [String] fields
|
128
|
+
# Selector specifying which fields to include in a partial response.
|
129
|
+
# @param [String] quota_user
|
130
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
131
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
132
|
+
# @param [Google::Apis::RequestOptions] options
|
133
|
+
# Request-specific options
|
134
|
+
#
|
135
|
+
# @yield [result, err] Result & error if block supplied
|
136
|
+
# @yieldparam result [Google::Apis::AdmobV1::GenerateMediationReportResponse] parsed result object
|
137
|
+
# @yieldparam err [StandardError] error object if request failed
|
138
|
+
#
|
139
|
+
# @return [Google::Apis::AdmobV1::GenerateMediationReportResponse]
|
140
|
+
#
|
141
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
142
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
143
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
144
|
+
def generate_mediation_report(parent, generate_mediation_report_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
145
|
+
command = make_simple_command(:post, 'v1/{+parent}/mediationReport:generate', options)
|
146
|
+
command.request_representation = Google::Apis::AdmobV1::GenerateMediationReportRequest::Representation
|
147
|
+
command.request_object = generate_mediation_report_request_object
|
148
|
+
command.response_representation = Google::Apis::AdmobV1::GenerateMediationReportResponse::Representation
|
149
|
+
command.response_class = Google::Apis::AdmobV1::GenerateMediationReportResponse
|
150
|
+
command.params['parent'] = parent unless parent.nil?
|
151
|
+
command.query['fields'] = fields unless fields.nil?
|
152
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
153
|
+
execute_or_queue_command(command, &block)
|
154
|
+
end
|
155
|
+
|
156
|
+
# Generates an AdMob Network report based on the provided report specification.
|
157
|
+
# Returns result of a server-side streaming RPC. The result is returned in a
|
158
|
+
# sequence of responses.
|
159
|
+
# @param [String] parent
|
160
|
+
# Resource name of the account to generate the report for. Example: accounts/pub-
|
161
|
+
# 9876543210987654
|
162
|
+
# @param [Google::Apis::AdmobV1::GenerateNetworkReportRequest] generate_network_report_request_object
|
163
|
+
# @param [String] fields
|
164
|
+
# Selector specifying which fields to include in a partial response.
|
165
|
+
# @param [String] quota_user
|
166
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
167
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
168
|
+
# @param [Google::Apis::RequestOptions] options
|
169
|
+
# Request-specific options
|
170
|
+
#
|
171
|
+
# @yield [result, err] Result & error if block supplied
|
172
|
+
# @yieldparam result [Google::Apis::AdmobV1::GenerateNetworkReportResponse] parsed result object
|
173
|
+
# @yieldparam err [StandardError] error object if request failed
|
174
|
+
#
|
175
|
+
# @return [Google::Apis::AdmobV1::GenerateNetworkReportResponse]
|
176
|
+
#
|
177
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
178
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
179
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
180
|
+
def generate_network_report(parent, generate_network_report_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
181
|
+
command = make_simple_command(:post, 'v1/{+parent}/networkReport:generate', options)
|
182
|
+
command.request_representation = Google::Apis::AdmobV1::GenerateNetworkReportRequest::Representation
|
183
|
+
command.request_object = generate_network_report_request_object
|
184
|
+
command.response_representation = Google::Apis::AdmobV1::GenerateNetworkReportResponse::Representation
|
185
|
+
command.response_class = Google::Apis::AdmobV1::GenerateNetworkReportResponse
|
186
|
+
command.params['parent'] = parent unless parent.nil?
|
187
|
+
command.query['fields'] = fields unless fields.nil?
|
188
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
189
|
+
execute_or_queue_command(command, &block)
|
190
|
+
end
|
191
|
+
|
192
|
+
protected
|
193
|
+
|
194
|
+
def apply_command_defaults(command)
|
195
|
+
command.query['key'] = key unless key.nil?
|
196
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
197
|
+
end
|
198
|
+
end
|
199
|
+
end
|
200
|
+
end
|
201
|
+
end
|