Class: Google::Apis::AdmobV1beta::CampaignCpiSetting

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/admob_v1beta/classes.rb,
lib/google/apis/admob_v1beta/representations.rb,
lib/google/apis/admob_v1beta/representations.rb

Overview

CPI setting for AdMob campaign. Ignored unless campaign goal type is MAX_CPI or TARGET_CPI.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CampaignCpiSetting

Returns a new instance of CampaignCpiSetting.



540
541
542
# File 'lib/google/apis/admob_v1beta/classes.rb', line 540

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

Instance Attribute Details

#cpi_microsFixnum

Cost-per-install for this campaign in micro units in the currency of the GoogleAds account linked to this AdMob publisher. Corresponds to the JSON property cpiMicros

Returns:

  • (Fixnum)


538
539
540
# File 'lib/google/apis/admob_v1beta/classes.rb', line 538

def cpi_micros
  @cpi_micros
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



545
546
547
# File 'lib/google/apis/admob_v1beta/classes.rb', line 545

def update!(**args)
  @cpi_micros = args[:cpi_micros] if args.key?(:cpi_micros)
end