google-apis-adsenseplatform_v1alpha 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e147a66a83e8eba358b1982744ea7a539c338d268dd1302be06454349334ca9
4
- data.tar.gz: 75403d4c4127e023b0c810756d92625e66a71af8924350c417b6e56fa5d4a1b7
3
+ metadata.gz: 61140fd518dc6e9b71b6924246956a0b9fef533c58f53fa9e4155b064ed55ead
4
+ data.tar.gz: e7c1aac1e222418ac986f140c748cfc77c9f0b44243af63ac0bd1ea78291925d
5
5
  SHA512:
6
- metadata.gz: 6fc5e7abaa5f8c4c2320a68b4db1115ceb642e3c4d4b9d2fe81c9627e069d9f790e380334d830b46d6652255ba0e74ec32d8e1f5f171b48b026d74cae3571f01
7
- data.tar.gz: 6fd5b0b20e25e8154848cc5a165d1003817cc25e1f1ba95e60152ffaab4031e11b050a9b1f331723ee8f41c5013799da07e7e5edf50da76647a0594c567b6356
6
+ metadata.gz: ad914ad38903128e89a449aed7d1dbb906e1f7fc8753001e6145d9003704c545d213c9b25564576f1354696f2af8ba660682a6a44aa2b6214485d32cf7ddc865
7
+ data.tar.gz: 83960b26bc674ef8d989f4a4d610759c49324afa4c222062246aff2b0aa22f26cf8afff65a9ab369576eb43deae6bea74f5b0e15d46c9f93a5216d8f3b2a1764
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-adsenseplatform_v1alpha
2
2
 
3
+ ### v0.4.0 (2025-01-26)
4
+
5
+ * Regenerated from discovery document revision 20250123
6
+
7
+ ### v0.3.0 (2025-01-12)
8
+
9
+ * Regenerated from discovery document revision 20250108
10
+ * Regenerated using generator version 0.16.0
11
+
3
12
  ### v0.2.0 (2024-12-08)
4
13
 
5
14
  * Regenerated from discovery document revision 20241203
@@ -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,84 @@ 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
+
400
+ # Response definition for the platform list rpc.
401
+ class ListPlatformsResponse
402
+ include Google::Apis::Core::Hashable
403
+
404
+ # Continuation token used to page through platforms. To retrieve the next page
405
+ # of the results, set the next request's "page_token" value to this.
406
+ # Corresponds to the JSON property `nextPageToken`
407
+ # @return [String]
408
+ attr_accessor :next_page_token
409
+
410
+ # The platforms returned in this list response.
411
+ # Corresponds to the JSON property `platforms`
412
+ # @return [Array<Google::Apis::AdsenseplatformV1alpha::Platform>]
413
+ attr_accessor :platforms
414
+
415
+ def initialize(**args)
416
+ update!(**args)
417
+ end
418
+
419
+ # Update properties of this object
420
+ def update!(**args)
421
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
422
+ @platforms = args[:platforms] if args.key?(:platforms)
423
+ end
424
+ end
425
+
292
426
  # Response definition for the site list rpc.
293
427
  class ListSitesResponse
294
428
  include Google::Apis::Core::Hashable
@@ -334,6 +468,106 @@ module Google
334
468
  end
335
469
  end
336
470
 
471
+ # Representation of a Transparent Platform.
472
+ class Platform
473
+ include Google::Apis::Core::Hashable
474
+
475
+ # Default platform group for the platform.
476
+ # Corresponds to the JSON property `defaultPlatformGroup`
477
+ # @return [String]
478
+ attr_accessor :default_platform_group
479
+
480
+ # Output only. Description of the platform.
481
+ # Corresponds to the JSON property `description`
482
+ # @return [String]
483
+ attr_accessor :description
484
+
485
+ # Identifier. Resource name of a platform. Format: accounts/`account`/platforms/`
486
+ # platform`
487
+ # Corresponds to the JSON property `name`
488
+ # @return [String]
489
+ attr_accessor :name
490
+
491
+ def initialize(**args)
492
+ update!(**args)
493
+ end
494
+
495
+ # Update properties of this object
496
+ def update!(**args)
497
+ @default_platform_group = args[:default_platform_group] if args.key?(:default_platform_group)
498
+ @description = args[:description] if args.key?(:description)
499
+ @name = args[:name] if args.key?(:name)
500
+ end
501
+ end
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
+
337
571
  # Response definition for the site request review rpc.
338
572
  class RequestSiteReviewResponse
339
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.2.0"
19
+ GEM_VERSION = "0.4.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.1"
22
+ GENERATOR_VERSION = "0.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20241203"
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,24 @@ 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
+
91
+ class ListPlatformsResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
73
97
  class ListSitesResponse
74
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
99
 
@@ -82,6 +106,24 @@ module Google
82
106
  include Google::Apis::Core::JsonObjectSupport
83
107
  end
84
108
 
109
+ class Platform
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
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
+
85
127
  class RequestSiteReviewResponse
86
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
129
 
@@ -142,6 +184,13 @@ module Google
142
184
  end
143
185
  end
144
186
 
187
+ class Decimal
188
+ # @private
189
+ class Representation < Google::Apis::Core::JsonRepresentation
190
+ property :value, as: 'value'
191
+ end
192
+ end
193
+
145
194
  class Empty
146
195
  # @private
147
196
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -176,6 +225,33 @@ module Google
176
225
  end
177
226
  end
178
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
+
246
+ class ListPlatformsResponse
247
+ # @private
248
+ class Representation < Google::Apis::Core::JsonRepresentation
249
+ property :next_page_token, as: 'nextPageToken'
250
+ collection :platforms, as: 'platforms', class: Google::Apis::AdsenseplatformV1alpha::Platform, decorator: Google::Apis::AdsenseplatformV1alpha::Platform::Representation
251
+
252
+ end
253
+ end
254
+
179
255
  class ListSitesResponse
180
256
  # @private
181
257
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -192,6 +268,34 @@ module Google
192
268
  end
193
269
  end
194
270
 
271
+ class Platform
272
+ # @private
273
+ class Representation < Google::Apis::Core::JsonRepresentation
274
+ property :default_platform_group, as: 'defaultPlatformGroup'
275
+ property :description, as: 'description'
276
+ property :name, as: 'name'
277
+ end
278
+ end
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
+
195
299
  class RequestSiteReviewResponse
196
300
  # @private
197
301
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -51,6 +51,200 @@ module Google
51
51
  @batch_path = 'batch'
52
52
  end
53
53
 
54
+ # Gets a platform.
55
+ # @param [String] name
56
+ # Required. The name of the platform to retrieve. Format: accounts/`account`/
57
+ # platforms/`platform`
58
+ # @param [String] fields
59
+ # Selector specifying which fields to include in a partial response.
60
+ # @param [String] quota_user
61
+ # Available to use for quota purposes for server-side applications. Can be any
62
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
63
+ # @param [Google::Apis::RequestOptions] options
64
+ # Request-specific options
65
+ #
66
+ # @yield [result, err] Result & error if block supplied
67
+ # @yieldparam result [Google::Apis::AdsenseplatformV1alpha::Platform] parsed result object
68
+ # @yieldparam err [StandardError] error object if request failed
69
+ #
70
+ # @return [Google::Apis::AdsenseplatformV1alpha::Platform]
71
+ #
72
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
73
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
74
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
75
+ def get_account_platform(name, fields: nil, quota_user: nil, options: nil, &block)
76
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
77
+ command.response_representation = Google::Apis::AdsenseplatformV1alpha::Platform::Representation
78
+ command.response_class = Google::Apis::AdsenseplatformV1alpha::Platform
79
+ command.params['name'] = name unless name.nil?
80
+ command.query['fields'] = fields unless fields.nil?
81
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
82
+ execute_or_queue_command(command, &block)
83
+ end
84
+
85
+ # Lists platforms for a specified account.
86
+ # @param [String] parent
87
+ # Required. The account which owns the platforms. Format: accounts/`account`
88
+ # @param [Fixnum] page_size
89
+ # Optional. The maximum number of platforms to include in the response, used for
90
+ # paging. If unspecified, at most 10000 platforms will be returned. The maximum
91
+ # value is 10000; values above 10000 will be coerced to 10000.
92
+ # @param [String] page_token
93
+ # Optional. A page token, received from a previous `ListPlatforms` call. Provide
94
+ # this to retrieve the subsequent page. When paginating, all other parameters
95
+ # provided to `ListPlatforms` must match the call that provided the page token.
96
+ # @param [String] fields
97
+ # Selector specifying which fields to include in a partial response.
98
+ # @param [String] quota_user
99
+ # Available to use for quota purposes for server-side applications. Can be any
100
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
101
+ # @param [Google::Apis::RequestOptions] options
102
+ # Request-specific options
103
+ #
104
+ # @yield [result, err] Result & error if block supplied
105
+ # @yieldparam result [Google::Apis::AdsenseplatformV1alpha::ListPlatformsResponse] parsed result object
106
+ # @yieldparam err [StandardError] error object if request failed
107
+ #
108
+ # @return [Google::Apis::AdsenseplatformV1alpha::ListPlatformsResponse]
109
+ #
110
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
111
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
112
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
113
+ def list_account_platforms(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
114
+ command = make_simple_command(:get, 'v1alpha/{+parent}/platforms', options)
115
+ command.response_representation = Google::Apis::AdsenseplatformV1alpha::ListPlatformsResponse::Representation
116
+ command.response_class = Google::Apis::AdsenseplatformV1alpha::ListPlatformsResponse
117
+ command.params['parent'] = parent unless parent.nil?
118
+ command.query['pageSize'] = page_size unless page_size.nil?
119
+ command.query['pageToken'] = page_token unless page_token.nil?
120
+ command.query['fields'] = fields unless fields.nil?
121
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
122
+ execute_or_queue_command(command, &block)
123
+ end
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
+
54
248
  # Closes a sub-account.
55
249
  # @param [String] name
56
250
  # Required. Account to close. Format: platforms/`platform`/accounts/`account_id`
metadata CHANGED
@@ -1,14 +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.2.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-08 00:00:00.000000000 Z
10
+ date: 2025-03-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-apis-core
@@ -58,9 +57,8 @@ licenses:
58
57
  metadata:
59
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-adsenseplatform_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-adsenseplatform_v1alpha/v0.2.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-adsenseplatform_v1alpha/v0.4.0
62
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-adsenseplatform_v1alpha
63
- post_install_message:
64
62
  rdoc_options: []
65
63
  require_paths:
66
64
  - lib
@@ -75,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
73
  - !ruby/object:Gem::Version
76
74
  version: '0'
77
75
  requirements: []
78
- rubygems_version: 3.5.23
79
- signing_key:
76
+ rubygems_version: 3.6.5
80
77
  specification_version: 4
81
78
  summary: Simple REST client for AdSense Platform API V1alpha
82
79
  test_files: []