Class: Google::Apis::AdsenseV2::ContentAdsSettings
- Inherits:
-
Object
- Object
- Google::Apis::AdsenseV2::ContentAdsSettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/adsense_v2/classes.rb,
lib/google/apis/adsense_v2/representations.rb,
lib/google/apis/adsense_v2/representations.rb
Overview
Settings specific to content ads (AFC).
Instance Attribute Summary collapse
-
#size ⇒ String
Size of the ad unit.
-
#type ⇒ String
Type of the ad unit.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ContentAdsSettings
constructor
A new instance of ContentAdsSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ContentAdsSettings
Returns a new instance of ContentAdsSettings.
284 285 286 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 284 def initialize(**args) update!(**args) end |
Instance Attribute Details
#size ⇒ String
Size of the ad unit. e.g. "728x90", "1x3" (for responsive ad units).
Corresponds to the JSON property size
277 278 279 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 277 def size @size end |
#type ⇒ String
Type of the ad unit.
Corresponds to the JSON property type
282 283 284 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 282 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
289 290 291 292 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 289 def update!(**args) @size = args[:size] if args.key?(:size) @type = args[:type] if args.key?(:type) end |