@@ -52,6 +52,77 @@ def initialize
5252 @batch_path = 'batch'
5353 end
5454
55+ # Activates an existing bidding function. An activated function is available for
56+ # invocation for the server-side TURTLEDOVE simulations.
57+ # @param [String] name
58+ # Required. The name of the bidding function to activate. Format: `bidders/`
59+ # bidder_account_id`/biddingFunction/`bidding_function_name``
60+ # @param [Google::Apis::RealtimebiddingV1alpha::ActivateBiddingFunctionRequest] activate_bidding_function_request_object
61+ # @param [String] fields
62+ # Selector specifying which fields to include in a partial response.
63+ # @param [String] quota_user
64+ # Available to use for quota purposes for server-side applications. Can be any
65+ # arbitrary string assigned to a user, but should not exceed 40 characters.
66+ # @param [Google::Apis::RequestOptions] options
67+ # Request-specific options
68+ #
69+ # @yield [result, err] Result & error if block supplied
70+ # @yieldparam result [Google::Apis::RealtimebiddingV1alpha::BiddingFunction] parsed result object
71+ # @yieldparam err [StandardError] error object if request failed
72+ #
73+ # @return [Google::Apis::RealtimebiddingV1alpha::BiddingFunction]
74+ #
75+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
76+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
77+ # @raise [Google::Apis::AuthorizationError] Authorization is required
78+ def activate_bidding_function ( name , activate_bidding_function_request_object = nil , fields : nil , quota_user : nil , options : nil , &block )
79+ command = make_simple_command ( :post , 'v1alpha/{+name}:activate' , options )
80+ command . request_representation = Google ::Apis ::RealtimebiddingV1alpha ::ActivateBiddingFunctionRequest ::Representation
81+ command . request_object = activate_bidding_function_request_object
82+ command . response_representation = Google ::Apis ::RealtimebiddingV1alpha ::BiddingFunction ::Representation
83+ command . response_class = Google ::Apis ::RealtimebiddingV1alpha ::BiddingFunction
84+ command . params [ 'name' ] = name unless name . nil?
85+ command . query [ 'fields' ] = fields unless fields . nil?
86+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
87+ execute_or_queue_command ( command , &block )
88+ end
89+
90+ # Archives an existing bidding function. An archived function will not be
91+ # available for function invocation for the server-side TURTLEDOVE simulations
92+ # unless it is activated.
93+ # @param [String] name
94+ # Required. The name of the bidding function to archive. Format: `bidders/`
95+ # bidder_account_id`/biddingFunction/`bidding_function_name``
96+ # @param [Google::Apis::RealtimebiddingV1alpha::ArchiveBiddingFunctionRequest] archive_bidding_function_request_object
97+ # @param [String] fields
98+ # Selector specifying which fields to include in a partial response.
99+ # @param [String] quota_user
100+ # Available to use for quota purposes for server-side applications. Can be any
101+ # arbitrary string assigned to a user, but should not exceed 40 characters.
102+ # @param [Google::Apis::RequestOptions] options
103+ # Request-specific options
104+ #
105+ # @yield [result, err] Result & error if block supplied
106+ # @yieldparam result [Google::Apis::RealtimebiddingV1alpha::BiddingFunction] parsed result object
107+ # @yieldparam err [StandardError] error object if request failed
108+ #
109+ # @return [Google::Apis::RealtimebiddingV1alpha::BiddingFunction]
110+ #
111+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
112+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
113+ # @raise [Google::Apis::AuthorizationError] Authorization is required
114+ def archive_bidding_function ( name , archive_bidding_function_request_object = nil , fields : nil , quota_user : nil , options : nil , &block )
115+ command = make_simple_command ( :post , 'v1alpha/{+name}:archive' , options )
116+ command . request_representation = Google ::Apis ::RealtimebiddingV1alpha ::ArchiveBiddingFunctionRequest ::Representation
117+ command . request_object = archive_bidding_function_request_object
118+ command . response_representation = Google ::Apis ::RealtimebiddingV1alpha ::BiddingFunction ::Representation
119+ command . response_class = Google ::Apis ::RealtimebiddingV1alpha ::BiddingFunction
120+ command . params [ 'name' ] = name unless name . nil?
121+ command . query [ 'fields' ] = fields unless fields . nil?
122+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
123+ execute_or_queue_command ( command , &block )
124+ end
125+
55126 # Creates a new bidding function.
56127 # @param [String] parent
57128 # Required. The name of the bidder for which to create the bidding function.
0 commit comments