Class: Google::Apis::DisplayvideoV1::CustomBiddingScript
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV1::CustomBiddingScript
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/displayvideo_v1/classes.rb,
lib/google/apis/displayvideo_v1/representations.rb,
lib/google/apis/displayvideo_v1/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::DisplayvideoV1::ScriptError>
Output only.
-
#name ⇒ String
Output only.
-
#script ⇒ Google::Apis::DisplayvideoV1::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.
3910 3911 3912 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 3910 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
3870 3871 3872 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 3870 def active @active end |
#create_time ⇒ String
Output only. The time when the script was created.
Corresponds to the JSON property createTime
3876 3877 3878 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 3876 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
3882 3883 3884 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 3882 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
3887 3888 3889 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 3887 def custom_bidding_script_id @custom_bidding_script_id end |
#errors ⇒ Array<Google::Apis::DisplayvideoV1::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
3893 3894 3895 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 3893 def errors @errors end |
#name ⇒ String
Output only. The resource name of the custom bidding script.
Corresponds to the JSON property name
3898 3899 3900 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 3898 def name @name end |
#script ⇒ Google::Apis::DisplayvideoV1::CustomBiddingScriptRef
The reference to the uploaded custom bidding script file.
Corresponds to the JSON property script
3903 3904 3905 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 3903 def script @script end |
#state ⇒ String
Output only. The state of the custom bidding script.
Corresponds to the JSON property state
3908 3909 3910 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 3908 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 3915 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 |