Class: Google::Apis::AdsenseV1_4::AdUnit::FeedAdsSettings

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_positionString

The position of the ads relative to the feed entries. Corresponds to the JSON property adPosition

Returns:

  • (String)


499
500
501
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 499

def ad_position
  @ad_position
end

#frequencyFixnum

The frequency at which ads should appear in the feed (i.e. every N entries). Corresponds to the JSON property frequency

Returns:

  • (Fixnum)


504
505
506
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 504

def frequency
  @frequency
end

#minimum_word_countFixnum

The minimum length an entry should be in order to have attached ads. Corresponds to the JSON property minimumWordCount

Returns:

  • (Fixnum)


509
510
511
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 509

def minimum_word_count
  @minimum_word_count
end

#typeString

The type of ads which should appear. Corresponds to the JSON property type

Returns:

  • (String)


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