Class: Google::Apis::AdsensehostV4_1::AdUnit::ContentAdsSettings

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ContentAdsSettings

Returns a new instance of ContentAdsSettings.


400
401
402
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 400

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

Instance Attribute Details

#backup_optionGoogle::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


388
389
390
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 388

def backup_option
  @backup_option
end

#sizeString

Size of this ad unit. Size values are in the form SIZE_width_height. Corresponds to the JSON property size

Returns:

  • (String)

393
394
395
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 393

def size
  @size
end

#typeString

Type of this ad unit. Possible values are TEXT, TEXT_IMAGE, IMAGE and LINK. Corresponds to the JSON property type

Returns:

  • (String)

398
399
400
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 398

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


405
406
407
408
409
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 405

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