Class: Google::Apis::DisplayvideoV3::Kpi

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Kpi

Returns a new instance of Kpi.



7991
7992
7993
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 7991

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#kpi_algorithm_idFixnum

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

Returns:

  • (Fixnum)


7961
7962
7963
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 7961

def kpi_algorithm_id
  @kpi_algorithm_id
end

#kpi_amount_microsFixnum

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

Returns:

  • (Fixnum)


7969
7970
7971
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 7969

def kpi_amount_micros
  @kpi_amount_micros
end

#kpi_percentage_microsFixnum

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

Returns:

  • (Fixnum)


7978
7979
7980
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 7978

def kpi_percentage_micros
  @kpi_percentage_micros
end

#kpi_stringString

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

Returns:

  • (String)


7984
7985
7986
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 7984

def kpi_string
  @kpi_string
end

#kpi_typeString

Required. The type of KPI. Corresponds to the JSON property kpiType

Returns:

  • (String)


7989
7990
7991
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 7989

def kpi_type
  @kpi_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7996
7997
7998
7999
8000
8001
8002
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 7996

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