Class: Google::Apis::DisplayvideoV2::PerformanceGoal
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV2::PerformanceGoal
- 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 the performance goal of a campaign or insertion order.
Instance Attribute Summary collapse
-
#performance_goal_amount_micros ⇒ Fixnum
The goal amount, in micros of the advertiser's currency.
-
#performance_goal_percentage_micros ⇒ Fixnum
The decimal representation of the goal percentage in micros.
-
#performance_goal_string ⇒ String
A key performance indicator (KPI) string, which can be empty.
-
#performance_goal_type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PerformanceGoal
constructor
A new instance of PerformanceGoal.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PerformanceGoal
Returns a new instance of PerformanceGoal.
9775 9776 9777 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 9775 def initialize(**args) update!(**args) end |
Instance Attribute Details
#performance_goal_amount_micros ⇒ Fixnum
The goal amount, in micros of the advertiser's currency. Applicable when
performance_goal_type is one of: * PERFORMANCE_GOAL_TYPE_CPM *
PERFORMANCE_GOAL_TYPE_CPC * PERFORMANCE_GOAL_TYPE_CPA *
PERFORMANCE_GOAL_TYPE_CPIAVC * PERFORMANCE_GOAL_TYPE_VCPM For example
1500000 represents 1.5 standard units of the currency.
Corresponds to the JSON property performanceGoalAmountMicros
9750 9751 9752 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 9750 def performance_goal_amount_micros @performance_goal_amount_micros end |
#performance_goal_percentage_micros ⇒ Fixnum
The decimal representation of the goal percentage in micros. Applicable when
performance_goal_type is one of: * PERFORMANCE_GOAL_TYPE_CTR *
PERFORMANCE_GOAL_TYPE_VIEWABILITY * PERFORMANCE_GOAL_TYPE_CLICK_CVR *
PERFORMANCE_GOAL_TYPE_IMPRESSION_CVR * PERFORMANCE_GOAL_TYPE_VTR *
PERFORMANCE_GOAL_TYPE_AUDIO_COMPLETION_RATE *
PERFORMANCE_GOAL_TYPE_VIDEO_COMPLETION_RATE For example, 70000 represents 7% (
decimal 0.07).
Corresponds to the JSON property performanceGoalPercentageMicros
9761 9762 9763 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 9761 def performance_goal_percentage_micros @performance_goal_percentage_micros end |
#performance_goal_string ⇒ String
A key performance indicator (KPI) string, which can be empty. Must be UTF-8
encoded with a length of no more than 100 characters. Applicable when
performance_goal_type is set to PERFORMANCE_GOAL_TYPE_OTHER.
Corresponds to the JSON property performanceGoalString
9768 9769 9770 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 9768 def performance_goal_string @performance_goal_string end |
#performance_goal_type ⇒ String
Required. The type of the performance goal.
Corresponds to the JSON property performanceGoalType
9773 9774 9775 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 9773 def performance_goal_type @performance_goal_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9780 9781 9782 9783 9784 9785 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 9780 def update!(**args) @performance_goal_amount_micros = args[:performance_goal_amount_micros] if args.key?(:performance_goal_amount_micros) @performance_goal_percentage_micros = args[:performance_goal_percentage_micros] if args.key?(:performance_goal_percentage_micros) @performance_goal_string = args[:performance_goal_string] if args.key?(:performance_goal_string) @performance_goal_type = args[:performance_goal_type] if args.key?(:performance_goal_type) end |