Class: Google::Apis::ContentV2_1::AccountItemUpdates
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::AccountItemUpdates
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
Turning on item updates allows Google to automatically update items for you. When item updates are on, Google uses the structured data markup on the website and advanced data extractors to update the price and availability of the items. When the item updates are off, items with mismatched data aren't shown.
Instance Attribute Summary collapse
-
#account_item_updates_settings ⇒ Google::Apis::ContentV2_1::AccountItemUpdatesSettings
Settings for the Automatic Item Updates.
-
#effective_allow_availability_updates ⇒ Boolean
(also: #effective_allow_availability_updates?)
Output only.
-
#effective_allow_condition_updates ⇒ Boolean
(also: #effective_allow_condition_updates?)
Output only.
-
#effective_allow_price_updates ⇒ Boolean
(also: #effective_allow_price_updates?)
Output only.
-
#effective_allow_strict_availability_updates ⇒ Boolean
(also: #effective_allow_strict_availability_updates?)
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AccountItemUpdates
constructor
A new instance of AccountItemUpdates.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AccountItemUpdates
Returns a new instance of AccountItemUpdates.
817 818 819 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 817 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_item_updates_settings ⇒ Google::Apis::ContentV2_1::AccountItemUpdatesSettings
Settings for the Automatic Item Updates.
Corresponds to the JSON property accountItemUpdatesSettings
783 784 785 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 783 def account_item_updates_settings @account_item_updates_settings end |
#effective_allow_availability_updates ⇒ Boolean Also known as: effective_allow_availability_updates?
Output only. The effective value of allow_availability_updates. If
account_item_updates_settings is present, then this value is the same.
Otherwise, it represents the inherited value of the parent account. Read-only.
Corresponds to the JSON property effectiveAllowAvailabilityUpdates
790 791 792 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 790 def effective_allow_availability_updates @effective_allow_availability_updates end |
#effective_allow_condition_updates ⇒ Boolean Also known as: effective_allow_condition_updates?
Output only. The effective value of allow_condition_updates. If
account_item_updates_settings is present, then this value is the same.
Otherwise, it represents the inherited value of the parent account. Read-only.
Corresponds to the JSON property effectiveAllowConditionUpdates
798 799 800 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 798 def effective_allow_condition_updates @effective_allow_condition_updates end |
#effective_allow_price_updates ⇒ Boolean Also known as: effective_allow_price_updates?
Output only. The effective value of allow_price_updates. If
account_item_updates_settings is present, then this value is the same.
Otherwise, it represents the inherited value of the parent account. Read-only.
Corresponds to the JSON property effectiveAllowPriceUpdates
806 807 808 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 806 def effective_allow_price_updates @effective_allow_price_updates end |
#effective_allow_strict_availability_updates ⇒ Boolean Also known as: effective_allow_strict_availability_updates?
Output only. The effective value of allow_strict_availability_updates. If
account_item_updates_settings is present, then this value is the same.
Otherwise, it represents the inherited value of the parent account. Read-only.
Corresponds to the JSON property effectiveAllowStrictAvailabilityUpdates
814 815 816 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 814 def effective_allow_strict_availability_updates @effective_allow_strict_availability_updates end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
822 823 824 825 826 827 828 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 822 def update!(**args) @account_item_updates_settings = args[:account_item_updates_settings] if args.key?(:account_item_updates_settings) @effective_allow_availability_updates = args[:effective_allow_availability_updates] if args.key?(:effective_allow_availability_updates) @effective_allow_condition_updates = args[:effective_allow_condition_updates] if args.key?(:effective_allow_condition_updates) @effective_allow_price_updates = args[:effective_allow_price_updates] if args.key?(:effective_allow_price_updates) @effective_allow_strict_availability_updates = args[:effective_allow_strict_availability_updates] if args.key?(:effective_allow_strict_availability_updates) end |