Class: Google::Apis::ContentV2_1::AccountItemUpdatesSettings

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

Settings for the Automatic Item Updates.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccountItemUpdatesSettings

Returns a new instance of AccountItemUpdatesSettings.



831
832
833
# File 'lib/google/apis/content_v2_1/classes.rb', line 831

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#allow_availability_updatesBoolean Also known as: allow_availability_updates?

If availability updates are enabled, any previous availability values get overwritten if Google finds an out-of-stock annotation on the offer's page. If additionally allow_availability_updates field is set to true, values get overwritten if Google finds an in-stock annotation on the offer’s page. Corresponds to the JSON property allowAvailabilityUpdates

Returns:

  • (Boolean)


803
804
805
# File 'lib/google/apis/content_v2_1/classes.rb', line 803

def allow_availability_updates
  @allow_availability_updates
end

#allow_condition_updatesBoolean Also known as: allow_condition_updates?

If condition updates are enabled, Google always updates item condition with the condition detected from the details of your product. Corresponds to the JSON property allowConditionUpdates

Returns:

  • (Boolean)


810
811
812
# File 'lib/google/apis/content_v2_1/classes.rb', line 810

def allow_condition_updates
  @allow_condition_updates
end

#allow_price_updatesBoolean Also known as: allow_price_updates?

If price updates are enabled, Google always updates the active price with the crawled information. Corresponds to the JSON property allowPriceUpdates

Returns:

  • (Boolean)


817
818
819
# File 'lib/google/apis/content_v2_1/classes.rb', line 817

def allow_price_updates
  @allow_price_updates
end

#allow_strict_availability_updatesBoolean Also known as: allow_strict_availability_updates?

If allow_availability_updates is enabled, items are automatically updated in all your Shopping target countries. By default, availability updates will only be applied to items that are 'out of stock' on your website but 'in stock' on Shopping. Set this to true to also update items that are 'in stock' on your website, but 'out of stock' on Google Shopping. In order for this field to have an effect, you must also allow availability updates. Corresponds to the JSON property allowStrictAvailabilityUpdates

Returns:

  • (Boolean)


828
829
830
# File 'lib/google/apis/content_v2_1/classes.rb', line 828

def allow_strict_availability_updates
  @allow_strict_availability_updates
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



836
837
838
839
840
841
# File 'lib/google/apis/content_v2_1/classes.rb', line 836

def update!(**args)
  @allow_availability_updates = args[:allow_availability_updates] if args.key?(:allow_availability_updates)
  @allow_condition_updates = args[:allow_condition_updates] if args.key?(:allow_condition_updates)
  @allow_price_updates = args[:allow_price_updates] if args.key?(:allow_price_updates)
  @allow_strict_availability_updates = args[:allow_strict_availability_updates] if args.key?(:allow_strict_availability_updates)
end