Class: Google::Apis::AdmobV1beta::AdUnitRewardSettings

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

Settings for a rewarded ad unit.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AdUnitRewardSettings

Returns a new instance of AdUnitRewardSettings.



190
191
192
# File 'lib/google/apis/admob_v1beta/classes.rb', line 190

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

Instance Attribute Details

#unit_amountFixnum

Reward amount for this ad unit. Corresponds to the JSON property unitAmount

Returns:

  • (Fixnum)


183
184
185
# File 'lib/google/apis/admob_v1beta/classes.rb', line 183

def unit_amount
  @unit_amount
end

#unit_typeString

Reward item for this ad unit. Corresponds to the JSON property unitType

Returns:

  • (String)


188
189
190
# File 'lib/google/apis/admob_v1beta/classes.rb', line 188

def unit_type
  @unit_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



195
196
197
198
# File 'lib/google/apis/admob_v1beta/classes.rb', line 195

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