google-apis-admob_v1beta 0.10.0 → 0.11.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: ed25d882cd3e28bacb3dbc84e677105c9a5fcce088838a214545fa1bce240190
4
- data.tar.gz: 86da8547c3a33af2a2d2938d251a085eecb7b23c400cd96e99f50e2bfd547a27
3
+ metadata.gz: 5e0cbc5b862ea8f83abaca88ab987b61c12d75c491dbc76c5e7c10266e070f39
4
+ data.tar.gz: 4e23b1c18467473fe9a476277090279a0c07d951092b84650026f751e3531ae5
5
5
  SHA512:
6
- metadata.gz: 538bbc8d78cd5b74ab84c5ee89e331bee9e97decc8357633b366997d7c3204ad68a215303fdbbcd303e07e1bfa17f2f59f5ce0ad6c733cc460b3cbd226eb974f
7
- data.tar.gz: 251f214b47970e9563187bd1e25f013aed9545443f5d73323ed0d32439206cd2cfd989fcbb9d3f19b8a2f3f957c09944ff8b0c38a314e86d7196b9cb48f4abc0
6
+ metadata.gz: 78e6f1c92fc8ee6fe61e589365ca592fc4502d66754aad54ec72206772ad24deb5eee265f907e7e362d4cba4990e2e2ac01495eafd5c591c7a0c8b54cb624817
7
+ data.tar.gz: c843e8b188cdfaeb79a21d36b4891656dc8be38b87fad880713c79d44efde93740e83ee5b58037d1496648711e3f159f84fe79ca9a2d00d86141bd9e4d3dea97
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-admob_v1beta
2
2
 
3
+ ### v0.11.0 (2022-04-27)
4
+
5
+ * Regenerated from discovery document revision 20220426
6
+
3
7
  ### v0.10.0 (2022-03-02)
4
8
 
5
9
  * Regenerated from discovery document revision 20220301
@@ -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
@@ -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.10.0"
19
+ GEM_VERSION = "0.11.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 = "20220301"
25
+ REVISION = "20220426"
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,6 +118,46 @@ 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 1000
127
+ # ad sources will be returned. The maximum value is 10,000; values above 10,000
128
+ # will be coerced to 10,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/
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.10.0
4
+ version: 0.11.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-03-07 00:00:00.000000000 Z
11
+ date: 2022-05-02 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.10.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-admob_v1beta/v0.11.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: []