Class: Google::Apis::ContentV2_1::RepricingProductReport
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::RepricingProductReport
- 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 product report. Each report contains stats for a single type of Repricing rule for a single product on a given day. If there are multiple rules of the same type for the product on that day, the report lists all the rules by rule ids, combines the stats, and paginates the results by date. To retrieve the stats of a particular rule, provide the rule_id in the request.
Instance Attribute Summary collapse
-
#application_count ⇒ Fixnum
Total count of Repricer applications.
-
#buybox_winning_product_stats ⇒ Google::Apis::ContentV2_1::RepricingProductReportBuyboxWinningProductStats
Stats specific to buybox winning rules for product report.
-
#date ⇒ Google::Apis::ContentV2_1::Date
Represents a whole or partial calendar date, such as a birthday.
-
#high_watermark ⇒ Google::Apis::ContentV2_1::PriceAmount
The price represented as a number and currency.
-
#inapplicability_details ⇒ Array<Google::Apis::ContentV2_1::InapplicabilityDetails>
List of all reasons the rule did not apply to the product during the specified reporting period.
-
#low_watermark ⇒ Google::Apis::ContentV2_1::PriceAmount
The price represented as a number and currency.
-
#order_item_count ⇒ Fixnum
Total unit count of impacted products ordered while the rule was active on the date of the report.
-
#rule_ids ⇒ Array<String>
Ids 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) ⇒ RepricingProductReport
constructor
A new instance of RepricingProductReport.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RepricingProductReport
Returns a new instance of RepricingProductReport.
11962 11963 11964 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11962 def initialize(**args) update!(**args) end |
Instance Attribute Details
#application_count ⇒ Fixnum
Total count of Repricer applications. This value captures how many times the
rule of this type was applied to this product during this reporting period.
Corresponds to the JSON property applicationCount
11904 11905 11906 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11904 def application_count @application_count end |
#buybox_winning_product_stats ⇒ Google::Apis::ContentV2_1::RepricingProductReportBuyboxWinningProductStats
Stats specific to buybox winning rules for product report.
Corresponds to the JSON property buyboxWinningProductStats
11909 11910 11911 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11909 def buybox_winning_product_stats @buybox_winning_product_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
11921 11922 11923 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11921 def date @date end |
#high_watermark ⇒ Google::Apis::ContentV2_1::PriceAmount
The price represented as a number and currency.
Corresponds to the JSON property highWatermark
11926 11927 11928 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11926 def high_watermark @high_watermark end |
#inapplicability_details ⇒ Array<Google::Apis::ContentV2_1::InapplicabilityDetails>
List of all reasons the rule did not apply to the product during the specified
reporting period.
Corresponds to the JSON property inapplicabilityDetails
11932 11933 11934 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11932 def inapplicability_details @inapplicability_details end |
#low_watermark ⇒ Google::Apis::ContentV2_1::PriceAmount
The price represented as a number and currency.
Corresponds to the JSON property lowWatermark
11937 11938 11939 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11937 def low_watermark @low_watermark 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
11945 11946 11947 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11945 def order_item_count @order_item_count end |
#rule_ids ⇒ Array<String>
Ids of the Repricing rule for this report.
Corresponds to the JSON property ruleIds
11950 11951 11952 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11950 def rule_ids @rule_ids end |
#total_gmv ⇒ Google::Apis::ContentV2_1::PriceAmount
The price represented as a number and currency.
Corresponds to the JSON property totalGmv
11955 11956 11957 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11955 def total_gmv @total_gmv end |
#type ⇒ String
Type of the rule.
Corresponds to the JSON property type
11960 11961 11962 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11960 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11967 def update!(**args) @application_count = args[:application_count] if args.key?(:application_count) @buybox_winning_product_stats = args[:buybox_winning_product_stats] if args.key?(:buybox_winning_product_stats) @date = args[:date] if args.key?(:date) @high_watermark = args[:high_watermark] if args.key?(:high_watermark) @inapplicability_details = args[:inapplicability_details] if args.key?(:inapplicability_details) @low_watermark = args[:low_watermark] if args.key?(:low_watermark) @order_item_count = args[:order_item_count] if args.key?(:order_item_count) @rule_ids = args[:rule_ids] if args.key?(:rule_ids) @total_gmv = args[:total_gmv] if args.key?(:total_gmv) @type = args[:type] if args.key?(:type) end |