google-apis-admob_v1beta 0.10.0 → 0.13.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: 130fbb963e212785f04591483710a2e151ffadc148ea911575921a5717cb6faf
4
+ data.tar.gz: 01cb9d9ac17ebf9d68bbe79f52d2714ed2a401f47ea73e322d830a9a9754e536
5
5
  SHA512:
6
- metadata.gz: 538bbc8d78cd5b74ab84c5ee89e331bee9e97decc8357633b366997d7c3204ad68a215303fdbbcd303e07e1bfa17f2f59f5ce0ad6c733cc460b3cbd226eb974f
7
- data.tar.gz: 251f214b47970e9563187bd1e25f013aed9545443f5d73323ed0d32439206cd2cfd989fcbb9d3f19b8a2f3f957c09944ff8b0c38a314e86d7196b9cb48f4abc0
6
+ metadata.gz: a2d9d7c68355c0f634efcda0f67cbd79d6f1cf580f4c22c149cf1850b053e3d72aafbf87bfdbe52405120d40cbd907c1a0e2a9231cd6333a7ed9281ba8faa4e2
7
+ data.tar.gz: 5d57619efb848b0a8624fc51c66565436fa8ca4bbb34a7e1b3d7ac8dada885171f2981f238095d1b1f612d6a5fdf189188ea2734a5ca33d09bec745fe48ded26
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-admob_v1beta
2
2
 
3
+ ### v0.13.0 (2022-06-02)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.12.0 (2022-05-25)
8
+
9
+ * Regenerated from discovery document revision 20220520
10
+
11
+ ### v0.11.0 (2022-04-27)
12
+
13
+ * Regenerated from discovery document revision 20220426
14
+
3
15
  ### v0.10.0 (2022-03-02)
4
16
 
5
17
  * 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.13.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 = "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.10.0
4
+ version: 0.13.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-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.4'
19
+ version: '0.5'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.4'
29
+ version: '0.5'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.13.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