Class: Google::Apis::AdsenseV1_4::AdUnit::ContentAdsSettings
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::AdsenseV1_4::AdUnit::ContentAdsSettings
 
- 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
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::AdsenseV1_4::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. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ContentAdsSettings
Returns a new instance of ContentAdsSettings
| 437 438 439 | # File 'generated/google/apis/adsense_v1_4/classes.rb', line 437 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#backup_option ⇒ Google::Apis::AdsenseV1_4::AdUnit::ContentAdsSettings::BackupOption
The backup option to be used in instances where no ad is available.
Corresponds to the JSON property backupOption
| 425 426 427 | # File 'generated/google/apis/adsense_v1_4/classes.rb', line 425 def backup_option @backup_option end | 
#size ⇒ String
Size of this ad unit.
Corresponds to the JSON property size
| 430 431 432 | # File 'generated/google/apis/adsense_v1_4/classes.rb', line 430 def size @size end | 
#type ⇒ String
Type of this ad unit.
Corresponds to the JSON property type
| 435 436 437 | # File 'generated/google/apis/adsense_v1_4/classes.rb', line 435 def type @type end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 442 443 444 445 446 | # File 'generated/google/apis/adsense_v1_4/classes.rb', line 442 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 |