Class: Google::Apis::AdsenseV1_4::AdUnit::FeedAdsSettings
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::AdsenseV1_4::AdUnit::FeedAdsSettings
 
- 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 feed ads (AFF) - deprecated.
Instance Attribute Summary collapse
- 
  
    
      #ad_position  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The position of the ads relative to the feed entries. 
- 
  
    
      #frequency  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The frequency at which ads should appear in the feed (i.e. every N entries). 
- 
  
    
      #minimum_word_count  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The minimum length an entry should be in order to have attached ads. 
- 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The type of ads which should appear. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ FeedAdsSettings 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of FeedAdsSettings. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ FeedAdsSettings
Returns a new instance of FeedAdsSettings
| 504 505 506 | # File 'generated/google/apis/adsense_v1_4/classes.rb', line 504 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#ad_position ⇒ String
The position of the ads relative to the feed entries.
Corresponds to the JSON property adPosition
| 487 488 489 | # File 'generated/google/apis/adsense_v1_4/classes.rb', line 487 def ad_position @ad_position end | 
#frequency ⇒ Fixnum
The frequency at which ads should appear in the feed (i.e. every N entries).
Corresponds to the JSON property frequency
| 492 493 494 | # File 'generated/google/apis/adsense_v1_4/classes.rb', line 492 def frequency @frequency end | 
#minimum_word_count ⇒ Fixnum
The minimum length an entry should be in order to have attached ads.
Corresponds to the JSON property minimumWordCount
| 497 498 499 | # File 'generated/google/apis/adsense_v1_4/classes.rb', line 497 def minimum_word_count @minimum_word_count end | 
#type ⇒ String
The type of ads which should appear.
Corresponds to the JSON property type
| 502 503 504 | # File 'generated/google/apis/adsense_v1_4/classes.rb', line 502 def type @type end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 509 510 511 512 513 514 | # File 'generated/google/apis/adsense_v1_4/classes.rb', line 509 def update!(**args) @ad_position = args[:ad_position] if args.key?(:ad_position) @frequency = args[:frequency] if args.key?(:frequency) @minimum_word_count = args[:minimum_word_count] if args.key?(:minimum_word_count) @type = args[:type] if args.key?(:type) end |