google-apis-adsenseplatform_v1alpha 0.3.0 → 0.4.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/adsenseplatform_v1alpha/classes.rb +176 -0
- data/lib/google/apis/adsenseplatform_v1alpha/gem_version.rb +2 -2
- data/lib/google/apis/adsenseplatform_v1alpha/representations.rb +74 -0
- data/lib/google/apis/adsenseplatform_v1alpha/service.rb +123 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61140fd518dc6e9b71b6924246956a0b9fef533c58f53fa9e4155b064ed55ead
|
4
|
+
data.tar.gz: e7c1aac1e222418ac986f140c748cfc77c9f0b44243af63ac0bd1ea78291925d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad914ad38903128e89a449aed7d1dbb906e1f7fc8753001e6145d9003704c545d213c9b25564576f1354696f2af8ba660682a6a44aa2b6214485d32cf7ddc865
|
7
|
+
data.tar.gz: 83960b26bc674ef8d989f4a4d610759c49324afa4c222062246aff2b0aa22f26cf8afff65a9ab369576eb43deae6bea74f5b0e15d46c9f93a5216d8f3b2a1764
|
data/CHANGELOG.md
CHANGED
@@ -189,6 +189,62 @@ module Google
|
|
189
189
|
end
|
190
190
|
end
|
191
191
|
|
192
|
+
# A representation of a decimal value, such as 2.5. Clients may convert values
|
193
|
+
# into language-native decimal formats, such as Java's [BigDecimal](https://docs.
|
194
|
+
# oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html) or
|
195
|
+
# Python's [decimal.Decimal](https://docs.python.org/3/library/decimal.html).
|
196
|
+
class Decimal
|
197
|
+
include Google::Apis::Core::Hashable
|
198
|
+
|
199
|
+
# The decimal value, as a string. The string representation consists of an
|
200
|
+
# optional sign, `+` (`U+002B`) or `-` (`U+002D`), followed by a sequence of
|
201
|
+
# zero or more decimal digits ("the integer"), optionally followed by a fraction,
|
202
|
+
# optionally followed by an exponent. An empty string **should** be interpreted
|
203
|
+
# as `0`. The fraction consists of a decimal point followed by zero or more
|
204
|
+
# decimal digits. The string must contain at least one digit in either the
|
205
|
+
# integer or the fraction. The number formed by the sign, the integer and the
|
206
|
+
# fraction is referred to as the significand. The exponent consists of the
|
207
|
+
# character `e` (`U+0065`) or `E` (`U+0045`) followed by one or more decimal
|
208
|
+
# digits. Services **should** normalize decimal values before storing them by: -
|
209
|
+
# Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`). - Replacing a zero-
|
210
|
+
# length integer value with `0` (`.5` -> `0.5`). - Coercing the exponent
|
211
|
+
# character to upper-case, with explicit sign (`2.5e8` -> `2.5E+8`). - Removing
|
212
|
+
# an explicitly-provided zero exponent (`2.5E0` -> `2.5`). Services **may**
|
213
|
+
# perform additional normalization based on its own needs and the internal
|
214
|
+
# decimal implementation selected, such as shifting the decimal point and
|
215
|
+
# exponent value together (example: `2.5E-1` <-> `0.25`). Additionally, services
|
216
|
+
# **may** preserve trailing zeroes in the fraction to indicate increased
|
217
|
+
# precision, but are not required to do so. Note that only the `.` character is
|
218
|
+
# supported to divide the integer and the fraction; `,` **should not** be
|
219
|
+
# supported regardless of locale. Additionally, thousand separators **should not*
|
220
|
+
# * be supported. If a service does support them, values **must** be normalized.
|
221
|
+
# The ENBF grammar is: DecimalString = '' | [Sign] Significand [Exponent]; Sign =
|
222
|
+
# '+' | '-'; Significand = Digits '.' | [Digits] '.' Digits; Exponent = ('e' | '
|
223
|
+
# E') [Sign] Digits; Digits = ` '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '
|
224
|
+
# 8' | '9' `; Services **should** clearly document the range of supported values,
|
225
|
+
# the maximum supported precision (total number of digits), and, if applicable,
|
226
|
+
# the scale (number of digits after the decimal point), as well as how it
|
227
|
+
# behaves when receiving out-of-bounds values. Services **may** choose to accept
|
228
|
+
# values passed as input even when the value has a higher precision or scale
|
229
|
+
# than the service supports, and **should** round the value to fit the supported
|
230
|
+
# scale. Alternatively, the service **may** error with `400 Bad Request` (`
|
231
|
+
# INVALID_ARGUMENT` in gRPC) if precision would be lost. Services **should**
|
232
|
+
# error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) if the service
|
233
|
+
# receives a value outside of the supported range.
|
234
|
+
# Corresponds to the JSON property `value`
|
235
|
+
# @return [String]
|
236
|
+
attr_accessor :value
|
237
|
+
|
238
|
+
def initialize(**args)
|
239
|
+
update!(**args)
|
240
|
+
end
|
241
|
+
|
242
|
+
# Update properties of this object
|
243
|
+
def update!(**args)
|
244
|
+
@value = args[:value] if args.key?(:value)
|
245
|
+
end
|
246
|
+
end
|
247
|
+
|
192
248
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
193
249
|
# messages in your APIs. A typical example is to use it as the request or the
|
194
250
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
@@ -289,6 +345,58 @@ module Google
|
|
289
345
|
end
|
290
346
|
end
|
291
347
|
|
348
|
+
# Response definition for the list platform child sites rpc.
|
349
|
+
class ListPlatformChildSitesResponse
|
350
|
+
include Google::Apis::Core::Hashable
|
351
|
+
|
352
|
+
# Continuation token used to page through platforms. To retrieve the next page
|
353
|
+
# of the results, set the next request's "page_token" value to this.
|
354
|
+
# Corresponds to the JSON property `nextPageToken`
|
355
|
+
# @return [String]
|
356
|
+
attr_accessor :next_page_token
|
357
|
+
|
358
|
+
# The platform child sites returned in this list response.
|
359
|
+
# Corresponds to the JSON property `platformChildSites`
|
360
|
+
# @return [Array<Google::Apis::AdsenseplatformV1alpha::PlatformChildSite>]
|
361
|
+
attr_accessor :platform_child_sites
|
362
|
+
|
363
|
+
def initialize(**args)
|
364
|
+
update!(**args)
|
365
|
+
end
|
366
|
+
|
367
|
+
# Update properties of this object
|
368
|
+
def update!(**args)
|
369
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
370
|
+
@platform_child_sites = args[:platform_child_sites] if args.key?(:platform_child_sites)
|
371
|
+
end
|
372
|
+
end
|
373
|
+
|
374
|
+
# Response definition for the platform groups list rpc.
|
375
|
+
class ListPlatformGroupsResponse
|
376
|
+
include Google::Apis::Core::Hashable
|
377
|
+
|
378
|
+
# Continuation token used to page through platforms. To retrieve the next page
|
379
|
+
# of the results, set the next request's "page_token" value to this.
|
380
|
+
# Corresponds to the JSON property `nextPageToken`
|
381
|
+
# @return [String]
|
382
|
+
attr_accessor :next_page_token
|
383
|
+
|
384
|
+
# The platform groups returned in this list response.
|
385
|
+
# Corresponds to the JSON property `platformGroups`
|
386
|
+
# @return [Array<Google::Apis::AdsenseplatformV1alpha::PlatformGroup>]
|
387
|
+
attr_accessor :platform_groups
|
388
|
+
|
389
|
+
def initialize(**args)
|
390
|
+
update!(**args)
|
391
|
+
end
|
392
|
+
|
393
|
+
# Update properties of this object
|
394
|
+
def update!(**args)
|
395
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
396
|
+
@platform_groups = args[:platform_groups] if args.key?(:platform_groups)
|
397
|
+
end
|
398
|
+
end
|
399
|
+
|
292
400
|
# Response definition for the platform list rpc.
|
293
401
|
class ListPlatformsResponse
|
294
402
|
include Google::Apis::Core::Hashable
|
@@ -392,6 +500,74 @@ module Google
|
|
392
500
|
end
|
393
501
|
end
|
394
502
|
|
503
|
+
# Representation of a Transparent Platform Child Site.
|
504
|
+
class PlatformChildSite
|
505
|
+
include Google::Apis::Core::Hashable
|
506
|
+
|
507
|
+
# Output only. Domain URL of the Platform Child Site. Part of the
|
508
|
+
# PlatformChildSite name.
|
509
|
+
# Corresponds to the JSON property `domain`
|
510
|
+
# @return [String]
|
511
|
+
attr_accessor :domain
|
512
|
+
|
513
|
+
# Identifier. Format: accounts/`account`/platforms/`platform`/childAccounts/`
|
514
|
+
# child_account`/sites/`platform_child_site`
|
515
|
+
# Corresponds to the JSON property `name`
|
516
|
+
# @return [String]
|
517
|
+
attr_accessor :name
|
518
|
+
|
519
|
+
# Resource name of the Platform Group of the Platform Child Site.
|
520
|
+
# Corresponds to the JSON property `platformGroup`
|
521
|
+
# @return [String]
|
522
|
+
attr_accessor :platform_group
|
523
|
+
|
524
|
+
def initialize(**args)
|
525
|
+
update!(**args)
|
526
|
+
end
|
527
|
+
|
528
|
+
# Update properties of this object
|
529
|
+
def update!(**args)
|
530
|
+
@domain = args[:domain] if args.key?(:domain)
|
531
|
+
@name = args[:name] if args.key?(:name)
|
532
|
+
@platform_group = args[:platform_group] if args.key?(:platform_group)
|
533
|
+
end
|
534
|
+
end
|
535
|
+
|
536
|
+
# Representation of a Transparent Platform Group.
|
537
|
+
class PlatformGroup
|
538
|
+
include Google::Apis::Core::Hashable
|
539
|
+
|
540
|
+
# Output only. Description of the PlatformGroup.
|
541
|
+
# Corresponds to the JSON property `description`
|
542
|
+
# @return [String]
|
543
|
+
attr_accessor :description
|
544
|
+
|
545
|
+
# Identifier. Format: accounts/`account`/platforms/`platform`/groups/`
|
546
|
+
# platform_group`
|
547
|
+
# Corresponds to the JSON property `name`
|
548
|
+
# @return [String]
|
549
|
+
attr_accessor :name
|
550
|
+
|
551
|
+
# A representation of a decimal value, such as 2.5. Clients may convert values
|
552
|
+
# into language-native decimal formats, such as Java's [BigDecimal](https://docs.
|
553
|
+
# oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html) or
|
554
|
+
# Python's [decimal.Decimal](https://docs.python.org/3/library/decimal.html).
|
555
|
+
# Corresponds to the JSON property `revshareMillipercent`
|
556
|
+
# @return [Google::Apis::AdsenseplatformV1alpha::Decimal]
|
557
|
+
attr_accessor :revshare_millipercent
|
558
|
+
|
559
|
+
def initialize(**args)
|
560
|
+
update!(**args)
|
561
|
+
end
|
562
|
+
|
563
|
+
# Update properties of this object
|
564
|
+
def update!(**args)
|
565
|
+
@description = args[:description] if args.key?(:description)
|
566
|
+
@name = args[:name] if args.key?(:name)
|
567
|
+
@revshare_millipercent = args[:revshare_millipercent] if args.key?(:revshare_millipercent)
|
568
|
+
end
|
569
|
+
end
|
570
|
+
|
395
571
|
# Response definition for the site request review rpc.
|
396
572
|
class RequestSiteReviewResponse
|
397
573
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module AdsenseplatformV1alpha
|
18
18
|
# Version of the google-apis-adsenseplatform_v1alpha gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.4.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.16.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250123"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -46,6 +46,12 @@ module Google
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
+
class Decimal
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
49
55
|
class Empty
|
50
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
57
|
|
@@ -70,6 +76,18 @@ module Google
|
|
70
76
|
include Google::Apis::Core::JsonObjectSupport
|
71
77
|
end
|
72
78
|
|
79
|
+
class ListPlatformChildSitesResponse
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class ListPlatformGroupsResponse
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
73
91
|
class ListPlatformsResponse
|
74
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
93
|
|
@@ -94,6 +112,18 @@ module Google
|
|
94
112
|
include Google::Apis::Core::JsonObjectSupport
|
95
113
|
end
|
96
114
|
|
115
|
+
class PlatformChildSite
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class PlatformGroup
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
97
127
|
class RequestSiteReviewResponse
|
98
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
129
|
|
@@ -154,6 +184,13 @@ module Google
|
|
154
184
|
end
|
155
185
|
end
|
156
186
|
|
187
|
+
class Decimal
|
188
|
+
# @private
|
189
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
190
|
+
property :value, as: 'value'
|
191
|
+
end
|
192
|
+
end
|
193
|
+
|
157
194
|
class Empty
|
158
195
|
# @private
|
159
196
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -188,6 +225,24 @@ module Google
|
|
188
225
|
end
|
189
226
|
end
|
190
227
|
|
228
|
+
class ListPlatformChildSitesResponse
|
229
|
+
# @private
|
230
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
231
|
+
property :next_page_token, as: 'nextPageToken'
|
232
|
+
collection :platform_child_sites, as: 'platformChildSites', class: Google::Apis::AdsenseplatformV1alpha::PlatformChildSite, decorator: Google::Apis::AdsenseplatformV1alpha::PlatformChildSite::Representation
|
233
|
+
|
234
|
+
end
|
235
|
+
end
|
236
|
+
|
237
|
+
class ListPlatformGroupsResponse
|
238
|
+
# @private
|
239
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
240
|
+
property :next_page_token, as: 'nextPageToken'
|
241
|
+
collection :platform_groups, as: 'platformGroups', class: Google::Apis::AdsenseplatformV1alpha::PlatformGroup, decorator: Google::Apis::AdsenseplatformV1alpha::PlatformGroup::Representation
|
242
|
+
|
243
|
+
end
|
244
|
+
end
|
245
|
+
|
191
246
|
class ListPlatformsResponse
|
192
247
|
# @private
|
193
248
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -222,6 +277,25 @@ module Google
|
|
222
277
|
end
|
223
278
|
end
|
224
279
|
|
280
|
+
class PlatformChildSite
|
281
|
+
# @private
|
282
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
283
|
+
property :domain, as: 'domain'
|
284
|
+
property :name, as: 'name'
|
285
|
+
property :platform_group, as: 'platformGroup'
|
286
|
+
end
|
287
|
+
end
|
288
|
+
|
289
|
+
class PlatformGroup
|
290
|
+
# @private
|
291
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
292
|
+
property :description, as: 'description'
|
293
|
+
property :name, as: 'name'
|
294
|
+
property :revshare_millipercent, as: 'revshareMillipercent', class: Google::Apis::AdsenseplatformV1alpha::Decimal, decorator: Google::Apis::AdsenseplatformV1alpha::Decimal::Representation
|
295
|
+
|
296
|
+
end
|
297
|
+
end
|
298
|
+
|
225
299
|
class RequestSiteReviewResponse
|
226
300
|
# @private
|
227
301
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -122,6 +122,129 @@ module Google
|
|
122
122
|
execute_or_queue_command(command, &block)
|
123
123
|
end
|
124
124
|
|
125
|
+
# Lists Platform Child Sites for a specified Platform Child Account.
|
126
|
+
# @param [String] parent
|
127
|
+
# Required. The name of the child account under the given platform which owns
|
128
|
+
# the platform child sites. Format: accounts/`account`/platforms/`platform`/
|
129
|
+
# childAccounts/`child_account`
|
130
|
+
# @param [Fixnum] page_size
|
131
|
+
# Optional. The maximum number of children to include in the response, used for
|
132
|
+
# paging. If unspecified, at most 10000 platforms will be returned. The maximum
|
133
|
+
# value is 10000; values above 10000 will be coerced to 10000.
|
134
|
+
# @param [String] page_token
|
135
|
+
# Optional. A page token, received from a previous `ListPlatformChildren` call.
|
136
|
+
# Provide this to retrieve the subsequent page. When paginating, all other
|
137
|
+
# parameters provided to `ListPlatformChildren` must match the call that
|
138
|
+
# provided the page token.
|
139
|
+
# @param [String] fields
|
140
|
+
# Selector specifying which fields to include in a partial response.
|
141
|
+
# @param [String] quota_user
|
142
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
143
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
144
|
+
# @param [Google::Apis::RequestOptions] options
|
145
|
+
# Request-specific options
|
146
|
+
#
|
147
|
+
# @yield [result, err] Result & error if block supplied
|
148
|
+
# @yieldparam result [Google::Apis::AdsenseplatformV1alpha::ListPlatformChildSitesResponse] parsed result object
|
149
|
+
# @yieldparam err [StandardError] error object if request failed
|
150
|
+
#
|
151
|
+
# @return [Google::Apis::AdsenseplatformV1alpha::ListPlatformChildSitesResponse]
|
152
|
+
#
|
153
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
154
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
155
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
156
|
+
def list_account_platform_child_account_sites(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
157
|
+
command = make_simple_command(:get, 'v1alpha/{+parent}/sites', options)
|
158
|
+
command.response_representation = Google::Apis::AdsenseplatformV1alpha::ListPlatformChildSitesResponse::Representation
|
159
|
+
command.response_class = Google::Apis::AdsenseplatformV1alpha::ListPlatformChildSitesResponse
|
160
|
+
command.params['parent'] = parent unless parent.nil?
|
161
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
162
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
163
|
+
command.query['fields'] = fields unless fields.nil?
|
164
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
165
|
+
execute_or_queue_command(command, &block)
|
166
|
+
end
|
167
|
+
|
168
|
+
# Update a Platform Child Site.
|
169
|
+
# @param [String] name
|
170
|
+
# Identifier. Format: accounts/`account`/platforms/`platform`/childAccounts/`
|
171
|
+
# child_account`/sites/`platform_child_site`
|
172
|
+
# @param [Google::Apis::AdsenseplatformV1alpha::PlatformChildSite] platform_child_site_object
|
173
|
+
# @param [String] update_mask
|
174
|
+
# Optional. The list of fields to update - currently only supports updating the `
|
175
|
+
# platform_group` field.
|
176
|
+
# @param [String] fields
|
177
|
+
# Selector specifying which fields to include in a partial response.
|
178
|
+
# @param [String] quota_user
|
179
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
180
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
181
|
+
# @param [Google::Apis::RequestOptions] options
|
182
|
+
# Request-specific options
|
183
|
+
#
|
184
|
+
# @yield [result, err] Result & error if block supplied
|
185
|
+
# @yieldparam result [Google::Apis::AdsenseplatformV1alpha::PlatformChildSite] parsed result object
|
186
|
+
# @yieldparam err [StandardError] error object if request failed
|
187
|
+
#
|
188
|
+
# @return [Google::Apis::AdsenseplatformV1alpha::PlatformChildSite]
|
189
|
+
#
|
190
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
191
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
192
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
193
|
+
def patch_account_platform_child_account_site(name, platform_child_site_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
194
|
+
command = make_simple_command(:patch, 'v1alpha/{+name}', options)
|
195
|
+
command.request_representation = Google::Apis::AdsenseplatformV1alpha::PlatformChildSite::Representation
|
196
|
+
command.request_object = platform_child_site_object
|
197
|
+
command.response_representation = Google::Apis::AdsenseplatformV1alpha::PlatformChildSite::Representation
|
198
|
+
command.response_class = Google::Apis::AdsenseplatformV1alpha::PlatformChildSite
|
199
|
+
command.params['name'] = name unless name.nil?
|
200
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
201
|
+
command.query['fields'] = fields unless fields.nil?
|
202
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
203
|
+
execute_or_queue_command(command, &block)
|
204
|
+
end
|
205
|
+
|
206
|
+
# Lists Platform Groups for a specified Platform.
|
207
|
+
# @param [String] parent
|
208
|
+
# Required. The name of the platform to retrieve. Format: accounts/`account`/
|
209
|
+
# platforms/`platform`
|
210
|
+
# @param [Fixnum] page_size
|
211
|
+
# Optional. The maximum number of groups to include in the response, used for
|
212
|
+
# paging. If unspecified, at most 10000 groups will be returned. The maximum
|
213
|
+
# value is 10000; values above 10000 will be coerced to 10000.
|
214
|
+
# @param [String] page_token
|
215
|
+
# Optional. A page token, received from a previous `ListPlatformGroups` call.
|
216
|
+
# Provide this to retrieve the subsequent page. When paginating, all other
|
217
|
+
# parameters provided to `ListPlatformGroups` must match the call that provided
|
218
|
+
# the page token.
|
219
|
+
# @param [String] fields
|
220
|
+
# Selector specifying which fields to include in a partial response.
|
221
|
+
# @param [String] quota_user
|
222
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
223
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
224
|
+
# @param [Google::Apis::RequestOptions] options
|
225
|
+
# Request-specific options
|
226
|
+
#
|
227
|
+
# @yield [result, err] Result & error if block supplied
|
228
|
+
# @yieldparam result [Google::Apis::AdsenseplatformV1alpha::ListPlatformGroupsResponse] parsed result object
|
229
|
+
# @yieldparam err [StandardError] error object if request failed
|
230
|
+
#
|
231
|
+
# @return [Google::Apis::AdsenseplatformV1alpha::ListPlatformGroupsResponse]
|
232
|
+
#
|
233
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
234
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
235
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
236
|
+
def list_account_platform_groups(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
237
|
+
command = make_simple_command(:get, 'v1alpha/{+parent}/groups', options)
|
238
|
+
command.response_representation = Google::Apis::AdsenseplatformV1alpha::ListPlatformGroupsResponse::Representation
|
239
|
+
command.response_class = Google::Apis::AdsenseplatformV1alpha::ListPlatformGroupsResponse
|
240
|
+
command.params['parent'] = parent unless parent.nil?
|
241
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
242
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
243
|
+
command.query['fields'] = fields unless fields.nil?
|
244
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
245
|
+
execute_or_queue_command(command, &block)
|
246
|
+
end
|
247
|
+
|
125
248
|
# Closes a sub-account.
|
126
249
|
# @param [String] name
|
127
250
|
# Required. Account to close. Format: platforms/`platform`/accounts/`account_id`
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-adsenseplatform_v1alpha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-03-02 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: google-apis-core
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-adsenseplatform_v1alpha/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-adsenseplatform_v1alpha/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-adsenseplatform_v1alpha/v0.4.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-adsenseplatform_v1alpha
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
requirements: []
|
76
|
-
rubygems_version: 3.6.
|
76
|
+
rubygems_version: 3.6.5
|
77
77
|
specification_version: 4
|
78
78
|
summary: Simple REST client for AdSense Platform API V1alpha
|
79
79
|
test_files: []
|