@@ -169,6 +169,50 @@ def list_bidder_finalized_deals(parent, filter: nil, order_by: nil, page_size: n
169169 execute_or_queue_command ( command , &block )
170170 end
171171
172+ # Sets the given finalized deal as ready to serve. By default, deals are set as
173+ # ready to serve as soon as they're finalized. If you want to opt out of the
174+ # default behavior, and manually indicate that deals are ready to serve, ask
175+ # your Technical Account Manager to add you to the allowlist. If you choose to
176+ # use this method, finalized deals belonging to the bidder and its child seats
177+ # don't start serving until after you call `setReadyToServe`, and after the
178+ # deals become active. For example, you can use this method to delay receiving
179+ # bid requests until your creative is ready. In addition, bidders can use the
180+ # URL path "/v1/bidders/`accountId`/finalizedDeals/`dealId`" to set ready to
181+ # serve for the finalized deals belong to itself, its child seats and all their
182+ # clients. This method only applies to programmatic guaranteed deals.
183+ # @param [String] deal
184+ # Required. Format: `buyers/`accountId`/finalizedDeals/`dealId`` or `bidders/`
185+ # accountId`/finalizedDeals/`dealId``
186+ # @param [Google::Apis::AuthorizedbuyersmarketplaceV1::SetReadyToServeRequest] set_ready_to_serve_request_object
187+ # @param [String] fields
188+ # Selector specifying which fields to include in a partial response.
189+ # @param [String] quota_user
190+ # Available to use for quota purposes for server-side applications. Can be any
191+ # arbitrary string assigned to a user, but should not exceed 40 characters.
192+ # @param [Google::Apis::RequestOptions] options
193+ # Request-specific options
194+ #
195+ # @yield [result, err] Result & error if block supplied
196+ # @yieldparam result [Google::Apis::AuthorizedbuyersmarketplaceV1::FinalizedDeal] parsed result object
197+ # @yieldparam err [StandardError] error object if request failed
198+ #
199+ # @return [Google::Apis::AuthorizedbuyersmarketplaceV1::FinalizedDeal]
200+ #
201+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
202+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
203+ # @raise [Google::Apis::AuthorizationError] Authorization is required
204+ def set_bidder_finalized_deal_ready_to_serve ( deal , set_ready_to_serve_request_object = nil , fields : nil , quota_user : nil , options : nil , &block )
205+ command = make_simple_command ( :post , 'v1/{+deal}:setReadyToServe' , options )
206+ command . request_representation = Google ::Apis ::AuthorizedbuyersmarketplaceV1 ::SetReadyToServeRequest ::Representation
207+ command . request_object = set_ready_to_serve_request_object
208+ command . response_representation = Google ::Apis ::AuthorizedbuyersmarketplaceV1 ::FinalizedDeal ::Representation
209+ command . response_class = Google ::Apis ::AuthorizedbuyersmarketplaceV1 ::FinalizedDeal
210+ command . params [ 'deal' ] = deal unless deal . nil?
211+ command . query [ 'fields' ] = fields unless fields . nil?
212+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
213+ execute_or_queue_command ( command , &block )
214+ end
215+
172216 # Gets an auction package given its name.
173217 # @param [String] name
174218 # Required. Name of auction package to get. Format: `buyers/`accountId`/
@@ -1047,10 +1091,13 @@ def resume_finalized_deal(name, resume_finalized_deal_request_object = nil, fiel
10471091 # use this method, finalized deals belonging to the bidder and its child seats
10481092 # don't start serving until after you call `setReadyToServe`, and after the
10491093 # deals become active. For example, you can use this method to delay receiving
1050- # bid requests until your creative is ready. This method only applies to
1051- # programmatic guaranteed deals.
1094+ # bid requests until your creative is ready. In addition, bidders can use the
1095+ # URL path "/v1/bidders/`accountId`/finalizedDeals/`dealId`" to set ready to
1096+ # serve for the finalized deals belong to itself, its child seats and all their
1097+ # clients. This method only applies to programmatic guaranteed deals.
10521098 # @param [String] deal
1053- # Required. Format: `buyers/`accountId`/finalizedDeals/`dealId``
1099+ # Required. Format: `buyers/`accountId`/finalizedDeals/`dealId`` or `bidders/`
1100+ # accountId`/finalizedDeals/`dealId``
10541101 # @param [Google::Apis::AuthorizedbuyersmarketplaceV1::SetReadyToServeRequest] set_ready_to_serve_request_object
10551102 # @param [String] fields
10561103 # Selector specifying which fields to include in a partial response.
0 commit comments