Class: Google::Apis::AdsenseV1_4::AdUnit::ContentAdsSettings::BackupOption
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::AdsenseV1_4::AdUnit::ContentAdsSettings::BackupOption
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - generated/google/apis/adsense_v1_4/classes.rb,
generated/google/apis/adsense_v1_4/representations.rb,
generated/google/apis/adsense_v1_4/representations.rb 
Overview
The backup option to be used in instances where no ad is available.
Instance Attribute Summary collapse
- 
  
    
      #color  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Color to use when type is set to COLOR.
 - 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Type of the backup option.
 - 
  
    
      #url  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
URL to use when type is set to URL.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ BackupOption 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of BackupOption.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ BackupOption
Returns a new instance of BackupOption
      479 480 481  | 
    
      # File 'generated/google/apis/adsense_v1_4/classes.rb', line 479 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#color ⇒ String
Color to use when type is set to COLOR.
Corresponds to the JSON property color
      467 468 469  | 
    
      # File 'generated/google/apis/adsense_v1_4/classes.rb', line 467 def color @color end  | 
  
#type ⇒ String
Type of the backup option. Possible values are BLANK, COLOR and URL.
Corresponds to the JSON property type
      472 473 474  | 
    
      # File 'generated/google/apis/adsense_v1_4/classes.rb', line 472 def type @type end  | 
  
#url ⇒ String
URL to use when type is set to URL.
Corresponds to the JSON property url
      477 478 479  | 
    
      # File 'generated/google/apis/adsense_v1_4/classes.rb', line 477 def url @url end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      484 485 486 487 488  | 
    
      # File 'generated/google/apis/adsense_v1_4/classes.rb', line 484 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  |