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.
Constructor Details
#initialize(**args) ⇒ FeedAdsSettings
Returns a new instance of FeedAdsSettings.
516 517 518 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 516 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
499 500 501 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 499 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
504 505 506 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 504 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
509 510 511 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 509 def minimum_word_count @minimum_word_count end |
#type ⇒ String
The type of ads which should appear.
Corresponds to the JSON property type
514 515 516 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 514 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
521 522 523 524 525 526 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 521 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 |