google-apis-admob_v1beta 0.8.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e0cbc5b862ea8f83abaca88ab987b61c12d75c491dbc76c5e7c10266e070f39
|
4
|
+
data.tar.gz: 4e23b1c18467473fe9a476277090279a0c07d951092b84650026f751e3531ae5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78e6f1c92fc8ee6fe61e589365ca592fc4502d66754aad54ec72206772ad24deb5eee265f907e7e362d4cba4990e2e2ac01495eafd5c591c7a0c8b54cb624817
|
7
|
+
data.tar.gz: c843e8b188cdfaeb79a21d36b4891656dc8be38b87fad880713c79d44efde93740e83ee5b58037d1496648711e3f159f84fe79ca9a2d00d86141bd9e4d3dea97
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
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
|
+
|
7
|
+
### v0.10.0 (2022-03-02)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220301
|
10
|
+
|
11
|
+
### v0.9.0 (2022-02-08)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220207
|
14
|
+
* Regenerated using generator version 0.4.1
|
15
|
+
|
3
16
|
### v0.8.0 (2021-12-14)
|
4
17
|
|
5
18
|
* Unspecified changes
|
@@ -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
|
192
|
-
# with zero month and day
|
193
|
-
#
|
194
|
-
# 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
|
237
|
-
# with zero month and day
|
238
|
-
#
|
239
|
-
# 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
|
249
|
-
# with zero month and day
|
250
|
-
#
|
251
|
-
# 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.
|
19
|
+
GEM_VERSION = "0.11.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.4.
|
22
|
+
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
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.
|
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-
|
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.
|
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: []
|
@@ -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.
|
78
|
+
rubygems_version: 3.3.5
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for AdMob API V1beta
|