@@ -124,8 +124,9 @@ def list_account_platforms(parent, page_size: nil, page_token: nil, fields: nil,
124124
125125 # Lists Platform Child Sites for a specified Platform Child Account.
126126 # @param [String] parent
127- # Required. The name of the platform to retrieve. Format: accounts/`account`/
128- # platforms/`platform`/childAccounts/`child_publisher_code`
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`
129130 # @param [Fixnum] page_size
130131 # Optional. The maximum number of children to include in the response, used for
131132 # paging. If unspecified, at most 10000 platforms will be returned. The maximum
@@ -164,6 +165,44 @@ def list_account_platform_child_account_sites(parent, page_size: nil, page_token
164165 execute_or_queue_command ( command , &block )
165166 end
166167
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+
167206 # Lists Platform Groups for a specified Platform.
168207 # @param [String] parent
169208 # Required. The name of the platform to retrieve. Format: accounts/`account`/
0 commit comments