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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_positionString

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

Returns:

  • (String)


487
488
489
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 487

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)


492
493
494
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 492

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)


497
498
499
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 497

def minimum_word_count
  @minimum_word_count
end

#typeString

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

Returns:

  • (String)


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