Class: Google::Apis::RealtimebiddingV1alpha::BiddingFunction

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/realtimebidding_v1alpha/classes.rb,
lib/google/apis/realtimebidding_v1alpha/representations.rb,
lib/google/apis/realtimebidding_v1alpha/representations.rb

Overview

The bidding function to be executed as part of the TURTLEDOVE simulation experiment bidding flow.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BiddingFunction

Returns a new instance of BiddingFunction.



77
78
79
# File 'lib/google/apis/realtimebidding_v1alpha/classes.rb', line 77

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

Instance Attribute Details

#bidding_functionString

The raw Javascript source code of the bidding function. Corresponds to the JSON property biddingFunction

Returns:

  • (String)


59
60
61
# File 'lib/google/apis/realtimebidding_v1alpha/classes.rb', line 59

def bidding_function
  @bidding_function
end

#nameString

The name of the bidding function that must follow the pattern: bidders/ bidder_account_id/biddingFunctions/bidding_function_name`. Corresponds to the JSON propertyname`

Returns:

  • (String)


65
66
67
# File 'lib/google/apis/realtimebidding_v1alpha/classes.rb', line 65

def name
  @name
end

#stateString

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

Returns:

  • (String)


70
71
72
# File 'lib/google/apis/realtimebidding_v1alpha/classes.rb', line 70

def state
  @state
end

#typeString

The type of the bidding function to be created. Corresponds to the JSON property type

Returns:

  • (String)


75
76
77
# File 'lib/google/apis/realtimebidding_v1alpha/classes.rb', line 75

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



82
83
84
85
86
87
# File 'lib/google/apis/realtimebidding_v1alpha/classes.rb', line 82

def update!(**args)
  @bidding_function = args[:bidding_function] if args.key?(:bidding_function)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
  @type = args[:type] if args.key?(:type)
end