Class: Google::Apis::DisplayvideoV2::CustomBiddingScript
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV2::CustomBiddingScript
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/displayvideo_v2/classes.rb,
lib/google/apis/displayvideo_v2/representations.rb,
lib/google/apis/displayvideo_v2/representations.rb
Overview
A single custom bidding script.
Instance Attribute Summary collapse
-
#active ⇒ Boolean
(also: #active?)
Output only.
-
#create_time ⇒ String
Output only.
-
#custom_bidding_algorithm_id ⇒ Fixnum
Output only.
-
#custom_bidding_script_id ⇒ Fixnum
Output only.
-
#errors ⇒ Array<Google::Apis::DisplayvideoV2::ScriptError>
Output only.
-
#name ⇒ String
Output only.
-
#script ⇒ Google::Apis::DisplayvideoV2::CustomBiddingScriptRef
The reference to the uploaded custom bidding script file.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomBiddingScript
constructor
A new instance of CustomBiddingScript.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CustomBiddingScript
Returns a new instance of CustomBiddingScript.
4251 4252 4253 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4251 def initialize(**args) update!(**args) end |
Instance Attribute Details
#active ⇒ Boolean Also known as: active?
Output only. Whether the script is currently being used for scoring by the
parent algorithm.
Corresponds to the JSON property active
4211 4212 4213 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4211 def active @active end |
#create_time ⇒ String
Output only. The time when the script was created.
Corresponds to the JSON property createTime
4217 4218 4219 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4217 def create_time @create_time end |
#custom_bidding_algorithm_id ⇒ Fixnum
Output only. The unique ID of the custom bidding algorithm the script belongs
to.
Corresponds to the JSON property customBiddingAlgorithmId
4223 4224 4225 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4223 def custom_bidding_algorithm_id @custom_bidding_algorithm_id end |
#custom_bidding_script_id ⇒ Fixnum
Output only. The unique ID of the custom bidding script.
Corresponds to the JSON property customBiddingScriptId
4228 4229 4230 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4228 def custom_bidding_script_id @custom_bidding_script_id end |
#errors ⇒ Array<Google::Apis::DisplayvideoV2::ScriptError>
Output only. Error details of a rejected custom bidding script. This field
will only be populated when Script.state is REJECTED.
Corresponds to the JSON property errors
4234 4235 4236 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4234 def errors @errors end |
#name ⇒ String
Output only. The resource name of the custom bidding script.
Corresponds to the JSON property name
4239 4240 4241 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4239 def name @name end |
#script ⇒ Google::Apis::DisplayvideoV2::CustomBiddingScriptRef
The reference to the uploaded custom bidding script file.
Corresponds to the JSON property script
4244 4245 4246 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4244 def script @script end |
#state ⇒ String
Output only. The state of the custom bidding script.
Corresponds to the JSON property state
4249 4250 4251 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4249 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4256 def update!(**args) @active = args[:active] if args.key?(:active) @create_time = args[:create_time] if args.key?(:create_time) @custom_bidding_algorithm_id = args[:custom_bidding_algorithm_id] if args.key?(:custom_bidding_algorithm_id) @custom_bidding_script_id = args[:custom_bidding_script_id] if args.key?(:custom_bidding_script_id) @errors = args[:errors] if args.key?(:errors) @name = args[:name] if args.key?(:name) @script = args[:script] if args.key?(:script) @state = args[:state] if args.key?(:state) end |