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_algorithm_id ⇒ Fixnum
Optional.
-
#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.
7997 7998 7999 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 7997 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kpi_algorithm_id ⇒ Fixnum
Optional. Custom Bidding Algorithm ID associated with
KPI_CUSTOM_IMPRESSION_VALUE_OVER_COST. This field is ignored if the proper KPI
is not selected.
Corresponds to the JSON property kpiAlgorithmId
7967 7968 7969 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 7967 def kpi_algorithm_id @kpi_algorithm_id end |
#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
7975 7976 7977 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 7975 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
7984 7985 7986 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 7984 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
7990 7991 7992 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 7990 def kpi_string @kpi_string end |
#kpi_type ⇒ String
Required. The type of KPI.
Corresponds to the JSON property kpiType
7995 7996 7997 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 7995 def kpi_type @kpi_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8002 8003 8004 8005 8006 8007 8008 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 8002 def update!(**args) @kpi_algorithm_id = args[:kpi_algorithm_id] if args.key?(:kpi_algorithm_id) @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 |