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

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

The backup option to be used in instances where no ad is available.

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) ⇒ BackupOption

Returns a new instance of BackupOption.



432
433
434
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 432

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

Instance Attribute Details

#colorString

Color to use when type is set to COLOR. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash. Corresponds to the JSON property color

Returns:

  • (String)


420
421
422
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 420

def color
  @color
end

#typeString

Type of the backup option. Possible values are BLANK, COLOR and URL. Corresponds to the JSON property type

Returns:

  • (String)


425
426
427
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 425

def type
  @type
end

#urlString

URL to use when type is set to URL. Corresponds to the JSON property url

Returns:

  • (String)


430
431
432
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 430

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



437
438
439
440
441
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 437

def update!(**args)
  @color = args[:color] if args.key?(:color)
  @type = args[:type] if args.key?(:type)
  @url = args[:url] if args.key?(:url)
end