Class: Google::Apis::DisplayvideoV3::Kpi
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV3::Kpi
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/displayvideo_v3/classes.rb,
lib/google/apis/displayvideo_v3/representations.rb,
lib/google/apis/displayvideo_v3/representations.rb
Overview
Settings that control the key performance indicator, or KPI, of an insertion order.
Instance Attribute Summary collapse
-
#kpi_amount_micros ⇒ Fixnum
The goal amount, in micros of the advertiser's currency.
-
#kpi_percentage_micros ⇒ Fixnum
The decimal representation of the goal percentage in micros.
-
#kpi_string ⇒ String
A KPI string, which can be empty.
-
#kpi_type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Kpi
constructor
A new instance of Kpi.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Kpi
Returns a new instance of Kpi.
7959 7960 7961 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 7959 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kpi_amount_micros ⇒ Fixnum
The goal amount, in micros of the advertiser's currency. Applicable when
kpi_type is one of: * KPI_TYPE_CPM * KPI_TYPE_CPC * KPI_TYPE_CPA *
KPI_TYPE_CPIAVC * KPI_TYPE_VCPM For example: 1500000 represents 1.5
standard units of the currency.
Corresponds to the JSON property kpiAmountMicros
7937 7938 7939 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 7937 def kpi_amount_micros @kpi_amount_micros end |
#kpi_percentage_micros ⇒ Fixnum
The decimal representation of the goal percentage in micros. Applicable when
kpi_type is one of: * KPI_TYPE_CTR * KPI_TYPE_VIEWABILITY *
KPI_TYPE_CLICK_CVR * KPI_TYPE_IMPRESSION_CVR * KPI_TYPE_VTR *
KPI_TYPE_AUDIO_COMPLETION_RATE * KPI_TYPE_VIDEO_COMPLETION_RATE For example:
70000 represents 7% (decimal 0.07).
Corresponds to the JSON property kpiPercentageMicros
7946 7947 7948 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 7946 def kpi_percentage_micros @kpi_percentage_micros end |
#kpi_string ⇒ String
A KPI string, which can be empty. Must be UTF-8 encoded with a length of no
more than 100 characters. Applicable when kpi_type is KPI_TYPE_OTHER.
Corresponds to the JSON property kpiString
7952 7953 7954 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 7952 def kpi_string @kpi_string end |
#kpi_type ⇒ String
Required. The type of KPI.
Corresponds to the JSON property kpiType
7957 7958 7959 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 7957 def kpi_type @kpi_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7964 7965 7966 7967 7968 7969 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 7964 def update!(**args) @kpi_amount_micros = args[:kpi_amount_micros] if args.key?(:kpi_amount_micros) @kpi_percentage_micros = args[:kpi_percentage_micros] if args.key?(:kpi_percentage_micros) @kpi_string = args[:kpi_string] if args.key?(:kpi_string) @kpi_type = args[:kpi_type] if args.key?(:kpi_type) end |