Class: Google::Apis::DisplayvideoV1::CustomBiddingScript

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomBiddingScript

Returns a new instance of CustomBiddingScript.



3937
3938
3939
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 3937

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#activeBoolean 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

Returns:

  • (Boolean)


3897
3898
3899
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 3897

def active
  @active
end

#create_timeString

Output only. The time when the script was created. Corresponds to the JSON property createTime

Returns:

  • (String)


3903
3904
3905
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 3903

def create_time
  @create_time
end

#custom_bidding_algorithm_idFixnum

Output only. The unique ID of the custom bidding algorithm the script belongs to. Corresponds to the JSON property customBiddingAlgorithmId

Returns:

  • (Fixnum)


3909
3910
3911
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 3909

def custom_bidding_algorithm_id
  @custom_bidding_algorithm_id
end

#custom_bidding_script_idFixnum

Output only. The unique ID of the custom bidding script. Corresponds to the JSON property customBiddingScriptId

Returns:

  • (Fixnum)


3914
3915
3916
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 3914

def custom_bidding_script_id
  @custom_bidding_script_id
end

#errorsArray<Google::Apis::DisplayvideoV1::ScriptError>

Output only. Error details of a rejected custom bidding script. This field will only be populated when state is REJECTED. Corresponds to the JSON property errors



3920
3921
3922
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 3920

def errors
  @errors
end

#nameString

Output only. The resource name of the custom bidding script. Corresponds to the JSON property name

Returns:

  • (String)


3925
3926
3927
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 3925

def name
  @name
end

#scriptGoogle::Apis::DisplayvideoV1::CustomBiddingScriptRef

The reference to the uploaded custom bidding script file. Corresponds to the JSON property script



3930
3931
3932
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 3930

def script
  @script
end

#stateString

Output only. The state of the custom bidding script. Corresponds to the JSON property state

Returns:

  • (String)


3935
3936
3937
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 3935

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 3942

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