google-apis-admob_v1beta 0.9.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b4f2779c771c8af9c236608fd9efb10df1a9411e5732864d87b735b55e11a05e
4
- data.tar.gz: b86ae20c8f5178036faf0b1aab563870720ac98aab511468be9df8a78f33c673
3
+ metadata.gz: 770a58f0be9d3a982176aa3fd535a9576657179bc9e6cca790e4829cb08818a0
4
+ data.tar.gz: 03b631857278b3676dfc062a12260c390bc210a443cd26724c7a658a3a7b9179
5
5
  SHA512:
6
- metadata.gz: 595541d2fb6ed8090b931037ca53f6091c6e8dad8555841adf212078fa876eb7ace10646c2e117d358ece16ca7501eb6298cbd14966d24fb8c80c44aacd5a725
7
- data.tar.gz: 20d98f45f37478fcc139aca68b3762e770b62c7edbeedfefb87715f3a2178acb7416160954ec372823c8f3019c021018fab82155f4d8177561b74945b0980b2e
6
+ metadata.gz: 7e04e53718fc137056b4cf4d1e863321f860b2b95f0f9ad420802a3fd1b1d9ff5ba7232fc0f5f15977de3b5464dd69c9f110f82528e3bf9448f72408b58192f9
7
+ data.tar.gz: a772132adba7b83758317d49915ee90144afd1fe6c5c6fcf5c4a60652e50cf84c8eb36069f68a7c2d32f7f93e4aa87b2865a03b70201886bc0f73db7cc649832
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-admob_v1beta
2
2
 
3
+ ### v0.12.0 (2022-05-25)
4
+
5
+ * Regenerated from discovery document revision 20220520
6
+
7
+ ### v0.11.0 (2022-04-27)
8
+
9
+ * Regenerated from discovery document revision 20220426
10
+
11
+ ### v0.10.0 (2022-03-02)
12
+
13
+ * Regenerated from discovery document revision 20220301
14
+
3
15
  ### v0.9.0 (2022-02-08)
4
16
 
5
17
  * Regenerated from discovery document revision 20220207
@@ -22,6 +22,38 @@ module Google
22
22
  module Apis
23
23
  module AdmobV1beta
24
24
 
25
+ # Definition of a mediation ad source.
26
+ class AdSource
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # ID of this ad source.
30
+ # Corresponds to the JSON property `adSourceId`
31
+ # @return [String]
32
+ attr_accessor :ad_source_id
33
+
34
+ # Resource name of this ad source. Format is: accounts/`publisher_id`/adSources/`
35
+ # ad_source_id`
36
+ # Corresponds to the JSON property `name`
37
+ # @return [String]
38
+ attr_accessor :name
39
+
40
+ # Display name of this ad source.
41
+ # Corresponds to the JSON property `title`
42
+ # @return [String]
43
+ attr_accessor :title
44
+
45
+ def initialize(**args)
46
+ update!(**args)
47
+ end
48
+
49
+ # Update properties of this object
50
+ def update!(**args)
51
+ @ad_source_id = args[:ad_source_id] if args.key?(:ad_source_id)
52
+ @name = args[:name] if args.key?(:name)
53
+ @title = args[:title] if args.key?(:title)
54
+ end
55
+ end
56
+
25
57
  # Describes an AdMob ad unit.
26
58
  class AdUnit
27
59
  include Google::Apis::Core::Hashable
@@ -187,11 +219,11 @@ module Google
187
219
  # Represents a whole or partial calendar date, such as a birthday. The time of
188
220
  # day and time zone are either specified elsewhere or are insignificant. The
189
221
  # date is relative to the Gregorian Calendar. This can represent one of the
190
- # following: * A full date, with non-zero year, month, and day values * A month
191
- # and day, with a zero year (e.g., an anniversary) * A year on its own, with a
192
- # zero month and a zero day * A year and month, with a zero day (e.g., a credit
193
- # card expiration date) Related types: * google.type.TimeOfDay * google.type.
194
- # DateTime * google.protobuf.Timestamp
222
+ # following: * A full date, with non-zero year, month, and day values. * A month
223
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
224
+ # with a zero month and a zero day. * A year and month, with a zero day (for
225
+ # example, a credit card expiration date). Related types: * google.type.
226
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
195
227
  class Date
196
228
  include Google::Apis::Core::Hashable
197
229
 
@@ -232,11 +264,11 @@ module Google
232
264
  # Represents a whole or partial calendar date, such as a birthday. The time of
233
265
  # day and time zone are either specified elsewhere or are insignificant. The
234
266
  # date is relative to the Gregorian Calendar. This can represent one of the
235
- # following: * A full date, with non-zero year, month, and day values * A month
236
- # and day, with a zero year (e.g., an anniversary) * A year on its own, with a
237
- # zero month and a zero day * A year and month, with a zero day (e.g., a credit
238
- # card expiration date) Related types: * google.type.TimeOfDay * google.type.
239
- # DateTime * google.protobuf.Timestamp
267
+ # following: * A full date, with non-zero year, month, and day values. * A month
268
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
269
+ # with a zero month and a zero day. * A year and month, with a zero day (for
270
+ # example, a credit card expiration date). Related types: * google.type.
271
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
240
272
  # Corresponds to the JSON property `endDate`
241
273
  # @return [Google::Apis::AdmobV1beta::Date]
242
274
  attr_accessor :end_date
@@ -244,11 +276,11 @@ module Google
244
276
  # Represents a whole or partial calendar date, such as a birthday. The time of
245
277
  # day and time zone are either specified elsewhere or are insignificant. The
246
278
  # date is relative to the Gregorian Calendar. This can represent one of the
247
- # following: * A full date, with non-zero year, month, and day values * A month
248
- # and day, with a zero year (e.g., an anniversary) * A year on its own, with a
249
- # zero month and a zero day * A year and month, with a zero day (e.g., a credit
250
- # card expiration date) Related types: * google.type.TimeOfDay * google.type.
251
- # DateTime * google.protobuf.Timestamp
279
+ # following: * A full date, with non-zero year, month, and day values. * A month
280
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
281
+ # with a zero month and a zero day. * A year and month, with a zero day (for
282
+ # example, a credit card expiration date). Related types: * google.type.
283
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
252
284
  # Corresponds to the JSON property `startDate`
253
285
  # @return [Google::Apis::AdmobV1beta::Date]
254
286
  attr_accessor :start_date
@@ -410,6 +442,32 @@ module Google
410
442
  end
411
443
  end
412
444
 
445
+ # Response for the ListAdSourcesRequest.
446
+ class ListAdSourcesResponse
447
+ include Google::Apis::Core::Hashable
448
+
449
+ # The ad sources.
450
+ # Corresponds to the JSON property `adSources`
451
+ # @return [Array<Google::Apis::AdmobV1beta::AdSource>]
452
+ attr_accessor :ad_sources
453
+
454
+ # Used to set the `page_token` in the `ListAdSourcesRequest` to retrieve the
455
+ # next page. If this field is omitted, there are no subsequent pages.
456
+ # Corresponds to the JSON property `nextPageToken`
457
+ # @return [String]
458
+ attr_accessor :next_page_token
459
+
460
+ def initialize(**args)
461
+ update!(**args)
462
+ end
463
+
464
+ # Update properties of this object
465
+ def update!(**args)
466
+ @ad_sources = args[:ad_sources] if args.key?(:ad_sources)
467
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
468
+ end
469
+ end
470
+
413
471
  # Response for the ad units list request.
414
472
  class ListAdUnitsResponse
415
473
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AdmobV1beta
18
18
  # Version of the google-apis-admob_v1beta gem
19
- GEM_VERSION = "0.9.0"
19
+ GEM_VERSION = "0.12.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220207"
25
+ REVISION = "20220520"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,12 @@ module Google
22
22
  module Apis
23
23
  module AdmobV1beta
24
24
 
25
+ class AdSource
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
25
31
  class AdUnit
26
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
33
 
@@ -82,6 +88,12 @@ module Google
82
88
  include Google::Apis::Core::JsonObjectSupport
83
89
  end
84
90
 
91
+ class ListAdSourcesResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
85
97
  class ListAdUnitsResponse
86
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
99
 
@@ -190,6 +202,15 @@ module Google
190
202
  include Google::Apis::Core::JsonObjectSupport
191
203
  end
192
204
 
205
+ class AdSource
206
+ # @private
207
+ class Representation < Google::Apis::Core::JsonRepresentation
208
+ property :ad_source_id, as: 'adSourceId'
209
+ property :name, as: 'name'
210
+ property :title, as: 'title'
211
+ end
212
+ end
213
+
193
214
  class AdUnit
194
215
  # @private
195
216
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -289,6 +310,15 @@ module Google
289
310
  end
290
311
  end
291
312
 
313
+ class ListAdSourcesResponse
314
+ # @private
315
+ class Representation < Google::Apis::Core::JsonRepresentation
316
+ collection :ad_sources, as: 'adSources', class: Google::Apis::AdmobV1beta::AdSource, decorator: Google::Apis::AdmobV1beta::AdSource::Representation
317
+
318
+ property :next_page_token, as: 'nextPageToken'
319
+ end
320
+ end
321
+
292
322
  class ListAdUnitsResponse
293
323
  # @private
294
324
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -118,14 +118,54 @@ module Google
118
118
  execute_or_queue_command(command, &block)
119
119
  end
120
120
 
121
+ # List the ad sources.
122
+ # @param [String] parent
123
+ # Required. The parent which owns this collection of ad sources. Format:
124
+ # accounts/`publisher_id`
125
+ # @param [Fixnum] page_size
126
+ # The maximum number of ad sources to return. If unspecified or 0, at most 10,
127
+ # 000 ad sources will be returned. The maximum value is 20,000; values above 10,
128
+ # 000 will be coerced to 20,000.
129
+ # @param [String] page_token
130
+ # A page token, received from a previous `ListAdSources` call. Provide this to
131
+ # retrieve the subsequent page.
132
+ # @param [String] fields
133
+ # Selector specifying which fields to include in a partial response.
134
+ # @param [String] quota_user
135
+ # Available to use for quota purposes for server-side applications. Can be any
136
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
137
+ # @param [Google::Apis::RequestOptions] options
138
+ # Request-specific options
139
+ #
140
+ # @yield [result, err] Result & error if block supplied
141
+ # @yieldparam result [Google::Apis::AdmobV1beta::ListAdSourcesResponse] parsed result object
142
+ # @yieldparam err [StandardError] error object if request failed
143
+ #
144
+ # @return [Google::Apis::AdmobV1beta::ListAdSourcesResponse]
145
+ #
146
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
147
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
148
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
149
+ def list_account_ad_sources(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
150
+ command = make_simple_command(:get, 'v1beta/{+parent}/adSources', options)
151
+ command.response_representation = Google::Apis::AdmobV1beta::ListAdSourcesResponse::Representation
152
+ command.response_class = Google::Apis::AdmobV1beta::ListAdSourcesResponse
153
+ command.params['parent'] = parent unless parent.nil?
154
+ command.query['pageSize'] = page_size unless page_size.nil?
155
+ command.query['pageToken'] = page_token unless page_token.nil?
156
+ command.query['fields'] = fields unless fields.nil?
157
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
158
+ execute_or_queue_command(command, &block)
159
+ end
160
+
121
161
  # List the ad units under the specified AdMob account.
122
162
  # @param [String] parent
123
163
  # Required. Resource name of the account to list ad units for. Example: accounts/
124
164
  # pub-9876543210987654
125
165
  # @param [Fixnum] page_size
126
- # The maximum number of ad units to return. If unspecified or 0, at most 1000 ad
127
- # units will be returned. The maximum value is 10,000; values above 10,000 will
128
- # be coerced to 10,000.
166
+ # The maximum number of ad units to return. If unspecified or 0, at most 10,000
167
+ # ad units will be returned. The maximum value is 20,000; values above 20,000
168
+ # will be coerced to 20,000.
129
169
  # @param [String] page_token
130
170
  # The value returned by the last `ListAdUnitsResponse`; indicates that this is a
131
171
  # continuation of a prior `ListAdUnits` call, and that the system should return
@@ -164,9 +204,9 @@ module Google
164
204
  # Required. Resource name of the account to list apps for. Example: accounts/pub-
165
205
  # 9876543210987654
166
206
  # @param [Fixnum] page_size
167
- # The maximum number of apps to return. If unspecified or 0, at most 1000 apps
168
- # will be returned. The maximum value is 10,000; values above 10,000 will be
169
- # coerced to 10,000.
207
+ # The maximum number of apps to return. If unspecified or 0, at most 10,000 apps
208
+ # will be returned. The maximum value is 20,000; values above 20,000 will be
209
+ # coerced to 20,000.
170
210
  # @param [String] page_token
171
211
  # The value returned by the last `ListAppsResponse`; indicates that this is a
172
212
  # continuation of a prior `ListApps` call, and that the system should return the
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-admob_v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-14 00:00:00.000000000 Z
11
+ date: 2022-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-admob_v1beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-admob_v1beta/v0.9.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-admob_v1beta/v0.12.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-admob_v1beta
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.5
78
+ rubygems_version: 3.3.14
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for AdMob API V1beta