Class: Google::Apis::DisplayvideoV2::CustomBiddingScript

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomBiddingScript

Returns a new instance of CustomBiddingScript.



4016
4017
4018
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4016

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)


3976
3977
3978
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 3976

def active
  @active
end

#create_timeString

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

Returns:

  • (String)


3982
3983
3984
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 3982

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)


3988
3989
3990
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 3988

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)


3993
3994
3995
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 3993

def custom_bidding_script_id
  @custom_bidding_script_id
end

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



3999
4000
4001
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 3999

def errors
  @errors
end

#nameString

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

Returns:

  • (String)


4004
4005
4006
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4004

def name
  @name
end

#scriptGoogle::Apis::DisplayvideoV2::CustomBiddingScriptRef

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



4009
4010
4011
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4009

def script
  @script
end

#stateString

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

Returns:

  • (String)


4014
4015
4016
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4014

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4021

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