Class: Google::Apis::AdmobV1beta::AdUnitRewardSettings
- Inherits:
-
Object
- Object
- Google::Apis::AdmobV1beta::AdUnitRewardSettings
- 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
-
#unit_amount ⇒ Fixnum
Reward amount for this ad unit.
-
#unit_type ⇒ String
Reward item for this ad unit.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AdUnitRewardSettings
constructor
A new instance of AdUnitRewardSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_amount ⇒ Fixnum
Reward amount for this ad unit.
Corresponds to the JSON property unitAmount
183 184 185 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 183 def unit_amount @unit_amount end |
#unit_type ⇒ String
Reward item for this ad unit.
Corresponds to the JSON property unitType
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 |