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.



46
47
48
# File 'lib/google/apis/realtimebidding_v1alpha/classes.rb', line 46

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)


33
34
35
# File 'lib/google/apis/realtimebidding_v1alpha/classes.rb', line 33

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)


39
40
41
# File 'lib/google/apis/realtimebidding_v1alpha/classes.rb', line 39

def name
  @name
end

#typeString

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

Returns:

  • (String)


44
45
46
# File 'lib/google/apis/realtimebidding_v1alpha/classes.rb', line 44

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



51
52
53
54
55
# File 'lib/google/apis/realtimebidding_v1alpha/classes.rb', line 51

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