@@ -308,6 +308,44 @@ def list_account_platform_groups(parent, page_size: nil, page_token: nil, fields
308
308
execute_or_queue_command ( command , &block )
309
309
end
310
310
311
+ # Update a Platform Group.
312
+ # @param [String] name
313
+ # Identifier. Format: accounts/`account`/platforms/`platform`/groups/`
314
+ # platform_group`
315
+ # @param [Google::Apis::AdsenseplatformV1alpha::PlatformGroup] platform_group_object
316
+ # @param [String] update_mask
317
+ # Optional. The list of fields to update - currently only supports updating the `
318
+ # description` field.
319
+ # @param [String] fields
320
+ # Selector specifying which fields to include in a partial response.
321
+ # @param [String] quota_user
322
+ # Available to use for quota purposes for server-side applications. Can be any
323
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
324
+ # @param [Google::Apis::RequestOptions] options
325
+ # Request-specific options
326
+ #
327
+ # @yield [result, err] Result & error if block supplied
328
+ # @yieldparam result [Google::Apis::AdsenseplatformV1alpha::PlatformGroup] parsed result object
329
+ # @yieldparam err [StandardError] error object if request failed
330
+ #
331
+ # @return [Google::Apis::AdsenseplatformV1alpha::PlatformGroup]
332
+ #
333
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
334
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
335
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
336
+ def patch_account_platform_group ( name , platform_group_object = nil , update_mask : nil , fields : nil , quota_user : nil , options : nil , &block )
337
+ command = make_simple_command ( :patch , 'v1alpha/{+name}' , options )
338
+ command . request_representation = Google ::Apis ::AdsenseplatformV1alpha ::PlatformGroup ::Representation
339
+ command . request_object = platform_group_object
340
+ command . response_representation = Google ::Apis ::AdsenseplatformV1alpha ::PlatformGroup ::Representation
341
+ command . response_class = Google ::Apis ::AdsenseplatformV1alpha ::PlatformGroup
342
+ command . params [ 'name' ] = name unless name . nil?
343
+ command . query [ 'updateMask' ] = update_mask unless update_mask . nil?
344
+ command . query [ 'fields' ] = fields unless fields . nil?
345
+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
346
+ execute_or_queue_command ( command , &block )
347
+ end
348
+
311
349
# Closes a sub-account.
312
350
# @param [String] name
313
351
# Required. Account to close. Format: platforms/`platform`/accounts/`account_id`
0 commit comments