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
Required.
-
#type ⇒ String
Required.
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.
333 334 335 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 333 def initialize(**args) update!(**args) end |
Instance Attribute Details
#size ⇒ String
Required. Size of the ad unit. e.g. "728x90", "1x3" (for responsive ad units).
Corresponds to the JSON property size
326 327 328 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 326 def size @size end |
#type ⇒ String
Required. Type of the ad unit.
Corresponds to the JSON property type
331 332 333 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 331 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
338 339 340 341 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 338 def update!(**args) @size = args[:size] if args.key?(:size) @type = args[:type] if args.key?(:type) end |