Class: Google::Apis::AdsensehostV4_1::AdUnit::ContentAdsSettings
- Inherits:
-
Object
- Object
- Google::Apis::AdsensehostV4_1::AdUnit::ContentAdsSettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/adsensehost_v4_1/classes.rb,
generated/google/apis/adsensehost_v4_1/representations.rb,
generated/google/apis/adsensehost_v4_1/representations.rb
Overview
Settings specific to content ads (AFC) and highend mobile content ads (AFMC - deprecated).
Defined Under Namespace
Classes: BackupOption
Instance Attribute Summary collapse
-
#backup_option ⇒ Google::Apis::AdsensehostV4_1::AdUnit::ContentAdsSettings::BackupOption
The backup option to be used in instances where no ad is available.
-
#size ⇒ String
Size of this ad unit.
-
#type ⇒ String
Type of this 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.
399 400 401 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 399 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backup_option ⇒ Google::Apis::AdsensehostV4_1::AdUnit::ContentAdsSettings::BackupOption
The backup option to be used in instances where no ad is available.
Corresponds to the JSON property backupOption
387 388 389 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 387 def backup_option @backup_option end |
#size ⇒ String
Size of this ad unit. Size values are in the form SIZE_width
_height
.
Corresponds to the JSON property size
392 393 394 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 392 def size @size end |
#type ⇒ String
Type of this ad unit. Possible values are TEXT, TEXT_IMAGE, IMAGE and LINK.
Corresponds to the JSON property type
397 398 399 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 397 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
404 405 406 407 408 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 404 def update!(**args) @backup_option = args[:backup_option] if args.key?(:backup_option) @size = args[:size] if args.key?(:size) @type = args[:type] if args.key?(:type) end |