Class: Google::Apis::ContentV2_1::RepricingRuleReport
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::RepricingRuleReport
- 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
Resource that represents a daily Repricing rule report. Next ID: 11
Instance Attribute Summary collapse
-
#buybox_winning_rule_stats ⇒ Google::Apis::ContentV2_1::RepricingRuleReportBuyboxWinningRuleStats
Stats specific to buybox winning rules for rule report.
-
#date ⇒ Google::Apis::ContentV2_1::Date
Represents a whole or partial calendar date, such as a birthday.
-
#impacted_products ⇒ Array<String>
List of product ids that are impacted by this rule during this reporting period.
-
#inapplicability_details ⇒ Array<Google::Apis::ContentV2_1::InapplicabilityDetails>
List of all reasons the rule did not apply to the inapplicable products during the specified reporting period.
-
#inapplicable_products ⇒ Array<String>
List of product ids that are inapplicable to this rule during this reporting period.
-
#order_item_count ⇒ Fixnum
Total unit count of impacted products ordered while the rule was active on the date of the report.
-
#rule_id ⇒ String
Id of the Repricing rule for this report.
-
#total_gmv ⇒ Google::Apis::ContentV2_1::PriceAmount
The price represented as a number and currency.
-
#type ⇒ String
Type of the rule.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RepricingRuleReport
constructor
A new instance of RepricingRuleReport.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RepricingRuleReport
Returns a new instance of RepricingRuleReport.
11805 11806 11807 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11805 def initialize(**args) update!(**args) end |
Instance Attribute Details
#buybox_winning_rule_stats ⇒ Google::Apis::ContentV2_1::RepricingRuleReportBuyboxWinningRuleStats
Stats specific to buybox winning rules for rule report.
Corresponds to the JSON property buyboxWinningRuleStats
11748 11749 11750 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11748 def buybox_winning_rule_stats @buybox_winning_rule_stats end |
#date ⇒ Google::Apis::ContentV2_1::Date
Represents a whole or partial calendar date, such as a birthday. The time of
day and time zone are either specified elsewhere or are insignificant. The
date is relative to the Gregorian Calendar. This can represent one of the
following: * A full date, with non-zero year, month, and day values * A month
and day value, with a zero year, such as an anniversary * A year on its own,
with zero month and day values * A year and month value, with a zero day, such
as a credit card expiration date Related types are google.type.TimeOfDay and
google.protobuf.Timestamp.
Corresponds to the JSON property date
11760 11761 11762 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11760 def date @date end |
#impacted_products ⇒ Array<String>
List of product ids that are impacted by this rule during this reporting
period. Out of stock products and products not searched for by customers are
examples of non-impacted products.
Corresponds to the JSON property impactedProducts
11767 11768 11769 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11767 def impacted_products @impacted_products end |
#inapplicability_details ⇒ Array<Google::Apis::ContentV2_1::InapplicabilityDetails>
List of all reasons the rule did not apply to the inapplicable products during
the specified reporting period.
Corresponds to the JSON property inapplicabilityDetails
11773 11774 11775 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11773 def inapplicability_details @inapplicability_details end |
#inapplicable_products ⇒ Array<String>
List of product ids that are inapplicable to this rule during this reporting
period. To get the inapplicable reason for a specific product, see
RepricingProductReport.
Corresponds to the JSON property inapplicableProducts
11780 11781 11782 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11780 def inapplicable_products @inapplicable_products end |
#order_item_count ⇒ Fixnum
Total unit count of impacted products ordered while the rule was active on the
date of the report. This count includes all orders that were started while the
rule was active, even if the rule was no longer active when the order was
completed.
Corresponds to the JSON property orderItemCount
11788 11789 11790 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11788 def order_item_count @order_item_count end |
#rule_id ⇒ String
Id of the Repricing rule for this report.
Corresponds to the JSON property ruleId
11793 11794 11795 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11793 def rule_id @rule_id end |
#total_gmv ⇒ Google::Apis::ContentV2_1::PriceAmount
The price represented as a number and currency.
Corresponds to the JSON property totalGmv
11798 11799 11800 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11798 def total_gmv @total_gmv end |
#type ⇒ String
Type of the rule.
Corresponds to the JSON property type
11803 11804 11805 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11803 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11810 def update!(**args) @buybox_winning_rule_stats = args[:buybox_winning_rule_stats] if args.key?(:buybox_winning_rule_stats) @date = args[:date] if args.key?(:date) @impacted_products = args[:impacted_products] if args.key?(:impacted_products) @inapplicability_details = args[:inapplicability_details] if args.key?(:inapplicability_details) @inapplicable_products = args[:inapplicable_products] if args.key?(:inapplicable_products) @order_item_count = args[:order_item_count] if args.key?(:order_item_count) @rule_id = args[:rule_id] if args.key?(:rule_id) @total_gmv = args[:total_gmv] if args.key?(:total_gmv) @type = args[:type] if args.key?(:type) end |