Class: Google::Apis::DisplayvideoV2::InsertionOrderBudget
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV2::InsertionOrderBudget
- 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
Settings that control how insertion order budget is allocated.
Instance Attribute Summary collapse
-
#automation_type ⇒ String
The type of automation used to manage bid and budget for the insertion order.
-
#budget_segments ⇒ Array<Google::Apis::DisplayvideoV2::InsertionOrderBudgetSegment>
Required.
-
#budget_unit ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InsertionOrderBudget
constructor
A new instance of InsertionOrderBudget.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InsertionOrderBudget
Returns a new instance of InsertionOrderBudget.
6600 6601 6602 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6600 def initialize(**args) update!(**args) end |
Instance Attribute Details
#automation_type ⇒ String
The type of automation used to manage bid and budget for the insertion order.
If this field is unspecified in creation, the value defaults to
INSERTION_ORDER_AUTOMATION_TYPE_NONE
.
Corresponds to the JSON property automationType
6586 6587 6588 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6586 def automation_type @automation_type end |
#budget_segments ⇒ Array<Google::Apis::DisplayvideoV2::InsertionOrderBudgetSegment>
Required. The list of budget segments. Use a budget segment to specify a
specific budget for a given period of time an insertion order is running.
Corresponds to the JSON property budgetSegments
6592 6593 6594 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6592 def budget_segments @budget_segments end |
#budget_unit ⇒ String
Required. Immutable. The budget unit specifies whether the budget is currency
based or impression based.
Corresponds to the JSON property budgetUnit
6598 6599 6600 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6598 def budget_unit @budget_unit end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6605 6606 6607 6608 6609 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6605 def update!(**args) @automation_type = args[:automation_type] if args.key?(:automation_type) @budget_segments = args[:budget_segments] if args.key?(:budget_segments) @budget_unit = args[:budget_unit] if args.key?(:budget_unit) end |