Class: Google::Apis::AdsenseV2::ContentAdsSettings

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#sizeString

Size of the ad unit. e.g. "728x90", "1x3" (for responsive ad units). Corresponds to the JSON property size

Returns:

  • (String)


277
278
279
# File 'lib/google/apis/adsense_v2/classes.rb', line 277

def size
  @size
end

#typeString

Type of the ad unit. Corresponds to the JSON property type

Returns:

  • (String)


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