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.



333
334
335
# File 'lib/google/apis/adsense_v2/classes.rb', line 333

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

Instance Attribute Details

#sizeString

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

Returns:

  • (String)


326
327
328
# File 'lib/google/apis/adsense_v2/classes.rb', line 326

def size
  @size
end

#typeString

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

Returns:

  • (String)


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