class Google::Apis::AdsenseV1_4::AdUnit::ContentAdsSettings::BackupOption

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

Attributes

color[RW]

Color to use when type is set to COLOR. Corresponds to the JSON property `color` @return [String]

type[RW]

Type of the backup option. Possible values are BLANK, COLOR and URL. Corresponds to the JSON property `type` @return [String]

url[RW]

URL to use when type is set to URL. Corresponds to the JSON property `url` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/adsense_v1_4/classes.rb, line 467
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/adsense_v1_4/classes.rb, line 472
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