@google-shopping/reports 0.5.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.7.0](https://github.com/googleapis/google-cloud-node/compare/reports-v0.6.0...reports-v0.7.0) (2024-05-23)
4
+
5
+
6
+ ### Features
7
+
8
+ * [merchantapi] add `non_product_performance_view` table to Reports sub-API ([#5372](https://github.com/googleapis/google-cloud-node/issues/5372)) ([9e5778c](https://github.com/googleapis/google-cloud-node/commit/9e5778cf6bd2fae5141150ed00bdd1ed44643ca4))
9
+
10
+ ## [0.6.0](https://github.com/googleapis/google-cloud-node/compare/reports-v0.5.0...reports-v0.6.0) (2024-05-21)
11
+
12
+
13
+ ### Features
14
+
15
+ * [Many APIs] update Nodejs generator to send API versions in headers for GAPICs ([#5351](https://github.com/googleapis/google-cloud-node/issues/5351)) ([01f48fc](https://github.com/googleapis/google-cloud-node/commit/01f48fce63ec4ddf801d59ee2b8c0db9f6fb8372))
16
+ * [Many APIs] update Nodejs generator to send API versions in headers for GAPICs ([#5354](https://github.com/googleapis/google-cloud-node/issues/5354)) ([a9784ed](https://github.com/googleapis/google-cloud-node/commit/a9784ed3db6ee96d171762308bbbcd57390b6866))
17
+
3
18
  ## [0.5.0](https://github.com/googleapis/google-cloud-node/compare/reports-v0.4.0...reports-v0.5.0) (2024-05-02)
4
19
 
5
20
 
@@ -1,4 +1,4 @@
1
- // Copyright 2023 Google LLC
1
+ // Copyright 2024 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -89,6 +89,9 @@ message ReportRow {
89
89
  // Fields available for query in `product_performance_view` table.
90
90
  ProductPerformanceView product_performance_view = 1;
91
91
 
92
+ // Fields available for query in `non_product_performance_view` table.
93
+ NonProductPerformanceView non_product_performance_view = 7;
94
+
92
95
  // Fields available for query in `product_view` table.
93
96
  ProductView product_view = 2;
94
97
 
@@ -352,7 +355,7 @@ message ProductView {
352
355
  //
353
356
  // Here's an example of how the aggregated status is computed:
354
357
  //
355
- // Free listings | Shopping Ads | Status
358
+ // Free listings | Shopping ads | Status
356
359
  // --------------|--------------|------------------------------
357
360
  // Approved | Approved | ELIGIBLE
358
361
  // Approved | Pending | ELIGIBLE
@@ -480,7 +483,7 @@ message ProductView {
480
483
 
481
484
  // Normalized [shipping
482
485
  // label](https://support.google.com/merchants/answer/6324504) specified in
483
- // the feed.
486
+ // the data source.
484
487
  optional string shipping_label = 20;
485
488
 
486
489
  // List of Global Trade Item Numbers (GTINs) of the product.
@@ -607,6 +610,27 @@ message PriceCompetitivenessProductView {
607
610
  // Values are only set for fields requested explicitly in the request's search
608
611
  // query.
609
612
  message PriceInsightsProductView {
613
+ // Predicted effectiveness bucket.
614
+ //
615
+ // Effectiveness indicates which products would benefit most from price
616
+ // changes. This rating takes into consideration the performance boost
617
+ // predicted by adjusting the sale price and the difference between your
618
+ // current price and the suggested price. Price suggestions with `HIGH`
619
+ // effectiveness are predicted to drive the largest increase in performance.
620
+ enum Effectiveness {
621
+ // Effectiveness is unknown.
622
+ EFFECTIVENESS_UNSPECIFIED = 0;
623
+
624
+ // Effectiveness is low.
625
+ LOW = 1;
626
+
627
+ // Effectiveness is medium.
628
+ MEDIUM = 2;
629
+
630
+ // Effectiveness is high.
631
+ HIGH = 3;
632
+ }
633
+
610
634
  // REST ID of the product, in the form of
611
635
  // `channel~languageCode~feedLabel~offerId`. Can be used to join data with the
612
636
  // `product_view` table.
@@ -683,6 +707,9 @@ message PriceInsightsProductView {
683
707
  // suggested price compared to current active price. For example, 0.05 is a 5%
684
708
  // predicted increase in conversions).
685
709
  optional double predicted_conversions_change_fraction = 19;
710
+
711
+ // The predicted effectiveness of applying the price suggestion, bucketed.
712
+ Effectiveness effectiveness = 22;
686
713
  }
687
714
 
688
715
  // Fields available for query in `best_sellers_product_cluster_view` table.
@@ -778,16 +805,16 @@ message BestSellersProductClusterView {
778
805
  // GTINs of example variants of the product cluster.
779
806
  repeated string variant_gtins = 13;
780
807
 
781
- // Whether the product cluster is `IN_STOCK` in your product feed in at least
782
- // one of the countries, `OUT_OF_STOCK` in your product feed in all countries,
783
- // or `NOT_IN_INVENTORY` at all.
808
+ // Whether the product cluster is `IN_STOCK` in your product data source in at
809
+ // least one of the countries, `OUT_OF_STOCK` in your product data source in
810
+ // all countries, or `NOT_IN_INVENTORY` at all.
784
811
  //
785
812
  // The field doesn't take the Best sellers report country filter into account.
786
813
  optional InventoryStatus inventory_status = 14;
787
814
 
788
815
  // Whether there is at least one product of the brand currently `IN_STOCK` in
789
- // your product feed in at least one of the countries, all products are
790
- // `OUT_OF_STOCK` in your product feed in all countries, or
816
+ // your product data source in at least one of the countries, all products are
817
+ // `OUT_OF_STOCK` in your product data source in all countries, or
791
818
  // `NOT_IN_INVENTORY`.
792
819
  //
793
820
  // The field doesn't take the Best sellers report country filter into account.
@@ -878,6 +905,42 @@ message BestSellersBrandView {
878
905
  relative_demand_change = 11;
879
906
  }
880
907
 
908
+ // Fields available for query in `non_product_performance_view` table.
909
+ //
910
+ // Performance data on images and online store links leading to your non-product
911
+ // pages. This includes performance metrics (for example, `clicks`)
912
+ // and dimensions according to which performance metrics are segmented (for
913
+ // example, `date`).
914
+ //
915
+ // Segment fields cannot be selected in queries without also selecting at least
916
+ // one metric field.
917
+ //
918
+ // Values are only set for fields requested explicitly in the request's search
919
+ // query.
920
+ message NonProductPerformanceView {
921
+ // Date in the merchant timezone to which metrics apply. Segment.
922
+ //
923
+ // Condition on `date` is required in the `WHERE` clause.
924
+ google.type.Date date = 1;
925
+
926
+ // First day of the week (Monday) of the metrics date in the merchant
927
+ // timezone. Segment.
928
+ google.type.Date week = 2;
929
+
930
+ // Number of clicks on images and online store links leading to your
931
+ // non-product pages. Metric.
932
+ optional int64 clicks = 3;
933
+
934
+ // Number of times images and online store links leading to your non-product
935
+ // pages were shown. Metric.
936
+ optional int64 impressions = 4;
937
+
938
+ // Click-through rate - the number of clicks (`clicks`) divided by the number
939
+ // of impressions (`impressions`) of images and online store links leading to
940
+ // your non-product pages. Metric.
941
+ optional double click_through_rate = 5;
942
+ }
943
+
881
944
  // Fields available for query in `competitive_visibility_competitor_view` table.
882
945
  //
883
946
  // [Competitive
@@ -1,4 +1,4 @@
1
- // Copyright 2023 Google LLC
1
+ // Copyright 2024 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -298,6 +298,9 @@ export namespace google {
298
298
  /** ReportRow productPerformanceView */
299
299
  productPerformanceView?: (google.shopping.merchant.reports.v1beta.IProductPerformanceView|null);
300
300
 
301
+ /** ReportRow nonProductPerformanceView */
302
+ nonProductPerformanceView?: (google.shopping.merchant.reports.v1beta.INonProductPerformanceView|null);
303
+
301
304
  /** ReportRow productView */
302
305
  productView?: (google.shopping.merchant.reports.v1beta.IProductView|null);
303
306
 
@@ -335,6 +338,9 @@ export namespace google {
335
338
  /** ReportRow productPerformanceView. */
336
339
  public productPerformanceView?: (google.shopping.merchant.reports.v1beta.IProductPerformanceView|null);
337
340
 
341
+ /** ReportRow nonProductPerformanceView. */
342
+ public nonProductPerformanceView?: (google.shopping.merchant.reports.v1beta.INonProductPerformanceView|null);
343
+
338
344
  /** ReportRow productView. */
339
345
  public productView?: (google.shopping.merchant.reports.v1beta.IProductView|null);
340
346
 
@@ -1891,6 +1897,9 @@ export namespace google {
1891
1897
 
1892
1898
  /** PriceInsightsProductView predictedConversionsChangeFraction */
1893
1899
  predictedConversionsChangeFraction?: (number|null);
1900
+
1901
+ /** PriceInsightsProductView effectiveness */
1902
+ effectiveness?: (google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness|keyof typeof google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness|null);
1894
1903
  }
1895
1904
 
1896
1905
  /** Represents a PriceInsightsProductView. */
@@ -1959,6 +1968,9 @@ export namespace google {
1959
1968
  /** PriceInsightsProductView predictedConversionsChangeFraction. */
1960
1969
  public predictedConversionsChangeFraction?: (number|null);
1961
1970
 
1971
+ /** PriceInsightsProductView effectiveness. */
1972
+ public effectiveness: (google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness|keyof typeof google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness);
1973
+
1962
1974
  /** PriceInsightsProductView _id. */
1963
1975
  public _id?: "id";
1964
1976
 
@@ -2088,6 +2100,17 @@ export namespace google {
2088
2100
  public static getTypeUrl(typeUrlPrefix?: string): string;
2089
2101
  }
2090
2102
 
2103
+ namespace PriceInsightsProductView {
2104
+
2105
+ /** Effectiveness enum. */
2106
+ enum Effectiveness {
2107
+ EFFECTIVENESS_UNSPECIFIED = 0,
2108
+ LOW = 1,
2109
+ MEDIUM = 2,
2110
+ HIGH = 3
2111
+ }
2112
+ }
2113
+
2091
2114
  /** Properties of a BestSellersProductClusterView. */
2092
2115
  interface IBestSellersProductClusterView {
2093
2116
 
@@ -2533,6 +2556,136 @@ export namespace google {
2533
2556
  public static getTypeUrl(typeUrlPrefix?: string): string;
2534
2557
  }
2535
2558
 
2559
+ /** Properties of a NonProductPerformanceView. */
2560
+ interface INonProductPerformanceView {
2561
+
2562
+ /** NonProductPerformanceView date */
2563
+ date?: (google.type.IDate|null);
2564
+
2565
+ /** NonProductPerformanceView week */
2566
+ week?: (google.type.IDate|null);
2567
+
2568
+ /** NonProductPerformanceView clicks */
2569
+ clicks?: (number|Long|string|null);
2570
+
2571
+ /** NonProductPerformanceView impressions */
2572
+ impressions?: (number|Long|string|null);
2573
+
2574
+ /** NonProductPerformanceView clickThroughRate */
2575
+ clickThroughRate?: (number|null);
2576
+ }
2577
+
2578
+ /** Represents a NonProductPerformanceView. */
2579
+ class NonProductPerformanceView implements INonProductPerformanceView {
2580
+
2581
+ /**
2582
+ * Constructs a new NonProductPerformanceView.
2583
+ * @param [properties] Properties to set
2584
+ */
2585
+ constructor(properties?: google.shopping.merchant.reports.v1beta.INonProductPerformanceView);
2586
+
2587
+ /** NonProductPerformanceView date. */
2588
+ public date?: (google.type.IDate|null);
2589
+
2590
+ /** NonProductPerformanceView week. */
2591
+ public week?: (google.type.IDate|null);
2592
+
2593
+ /** NonProductPerformanceView clicks. */
2594
+ public clicks?: (number|Long|string|null);
2595
+
2596
+ /** NonProductPerformanceView impressions. */
2597
+ public impressions?: (number|Long|string|null);
2598
+
2599
+ /** NonProductPerformanceView clickThroughRate. */
2600
+ public clickThroughRate?: (number|null);
2601
+
2602
+ /** NonProductPerformanceView _clicks. */
2603
+ public _clicks?: "clicks";
2604
+
2605
+ /** NonProductPerformanceView _impressions. */
2606
+ public _impressions?: "impressions";
2607
+
2608
+ /** NonProductPerformanceView _clickThroughRate. */
2609
+ public _clickThroughRate?: "clickThroughRate";
2610
+
2611
+ /**
2612
+ * Creates a new NonProductPerformanceView instance using the specified properties.
2613
+ * @param [properties] Properties to set
2614
+ * @returns NonProductPerformanceView instance
2615
+ */
2616
+ public static create(properties?: google.shopping.merchant.reports.v1beta.INonProductPerformanceView): google.shopping.merchant.reports.v1beta.NonProductPerformanceView;
2617
+
2618
+ /**
2619
+ * Encodes the specified NonProductPerformanceView message. Does not implicitly {@link google.shopping.merchant.reports.v1beta.NonProductPerformanceView.verify|verify} messages.
2620
+ * @param message NonProductPerformanceView message or plain object to encode
2621
+ * @param [writer] Writer to encode to
2622
+ * @returns Writer
2623
+ */
2624
+ public static encode(message: google.shopping.merchant.reports.v1beta.INonProductPerformanceView, writer?: $protobuf.Writer): $protobuf.Writer;
2625
+
2626
+ /**
2627
+ * Encodes the specified NonProductPerformanceView message, length delimited. Does not implicitly {@link google.shopping.merchant.reports.v1beta.NonProductPerformanceView.verify|verify} messages.
2628
+ * @param message NonProductPerformanceView message or plain object to encode
2629
+ * @param [writer] Writer to encode to
2630
+ * @returns Writer
2631
+ */
2632
+ public static encodeDelimited(message: google.shopping.merchant.reports.v1beta.INonProductPerformanceView, writer?: $protobuf.Writer): $protobuf.Writer;
2633
+
2634
+ /**
2635
+ * Decodes a NonProductPerformanceView message from the specified reader or buffer.
2636
+ * @param reader Reader or buffer to decode from
2637
+ * @param [length] Message length if known beforehand
2638
+ * @returns NonProductPerformanceView
2639
+ * @throws {Error} If the payload is not a reader or valid buffer
2640
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2641
+ */
2642
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.reports.v1beta.NonProductPerformanceView;
2643
+
2644
+ /**
2645
+ * Decodes a NonProductPerformanceView message from the specified reader or buffer, length delimited.
2646
+ * @param reader Reader or buffer to decode from
2647
+ * @returns NonProductPerformanceView
2648
+ * @throws {Error} If the payload is not a reader or valid buffer
2649
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2650
+ */
2651
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.reports.v1beta.NonProductPerformanceView;
2652
+
2653
+ /**
2654
+ * Verifies a NonProductPerformanceView message.
2655
+ * @param message Plain object to verify
2656
+ * @returns `null` if valid, otherwise the reason why it is not
2657
+ */
2658
+ public static verify(message: { [k: string]: any }): (string|null);
2659
+
2660
+ /**
2661
+ * Creates a NonProductPerformanceView message from a plain object. Also converts values to their respective internal types.
2662
+ * @param object Plain object
2663
+ * @returns NonProductPerformanceView
2664
+ */
2665
+ public static fromObject(object: { [k: string]: any }): google.shopping.merchant.reports.v1beta.NonProductPerformanceView;
2666
+
2667
+ /**
2668
+ * Creates a plain object from a NonProductPerformanceView message. Also converts values to other types if specified.
2669
+ * @param message NonProductPerformanceView
2670
+ * @param [options] Conversion options
2671
+ * @returns Plain object
2672
+ */
2673
+ public static toObject(message: google.shopping.merchant.reports.v1beta.NonProductPerformanceView, options?: $protobuf.IConversionOptions): { [k: string]: any };
2674
+
2675
+ /**
2676
+ * Converts this NonProductPerformanceView to JSON.
2677
+ * @returns JSON object
2678
+ */
2679
+ public toJSON(): { [k: string]: any };
2680
+
2681
+ /**
2682
+ * Gets the default type url for NonProductPerformanceView
2683
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2684
+ * @returns The default type url
2685
+ */
2686
+ public static getTypeUrl(typeUrlPrefix?: string): string;
2687
+ }
2688
+
2536
2689
  /** Properties of a CompetitiveVisibilityCompetitorView. */
2537
2690
  interface ICompetitiveVisibilityCompetitorView {
2538
2691
 
@@ -671,6 +671,7 @@
671
671
  * @memberof google.shopping.merchant.reports.v1beta
672
672
  * @interface IReportRow
673
673
  * @property {google.shopping.merchant.reports.v1beta.IProductPerformanceView|null} [productPerformanceView] ReportRow productPerformanceView
674
+ * @property {google.shopping.merchant.reports.v1beta.INonProductPerformanceView|null} [nonProductPerformanceView] ReportRow nonProductPerformanceView
674
675
  * @property {google.shopping.merchant.reports.v1beta.IProductView|null} [productView] ReportRow productView
675
676
  * @property {google.shopping.merchant.reports.v1beta.IPriceCompetitivenessProductView|null} [priceCompetitivenessProductView] ReportRow priceCompetitivenessProductView
676
677
  * @property {google.shopping.merchant.reports.v1beta.IPriceInsightsProductView|null} [priceInsightsProductView] ReportRow priceInsightsProductView
@@ -704,6 +705,14 @@
704
705
  */
705
706
  ReportRow.prototype.productPerformanceView = null;
706
707
 
708
+ /**
709
+ * ReportRow nonProductPerformanceView.
710
+ * @member {google.shopping.merchant.reports.v1beta.INonProductPerformanceView|null|undefined} nonProductPerformanceView
711
+ * @memberof google.shopping.merchant.reports.v1beta.ReportRow
712
+ * @instance
713
+ */
714
+ ReportRow.prototype.nonProductPerformanceView = null;
715
+
707
716
  /**
708
717
  * ReportRow productView.
709
718
  * @member {google.shopping.merchant.reports.v1beta.IProductView|null|undefined} productView
@@ -804,6 +813,8 @@
804
813
  $root.google.shopping.merchant.reports.v1beta.BestSellersProductClusterView.encode(message.bestSellersProductClusterView, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
805
814
  if (message.bestSellersBrandView != null && Object.hasOwnProperty.call(message, "bestSellersBrandView"))
806
815
  $root.google.shopping.merchant.reports.v1beta.BestSellersBrandView.encode(message.bestSellersBrandView, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
816
+ if (message.nonProductPerformanceView != null && Object.hasOwnProperty.call(message, "nonProductPerformanceView"))
817
+ $root.google.shopping.merchant.reports.v1beta.NonProductPerformanceView.encode(message.nonProductPerformanceView, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
807
818
  if (message.competitiveVisibilityCompetitorView != null && Object.hasOwnProperty.call(message, "competitiveVisibilityCompetitorView"))
808
819
  $root.google.shopping.merchant.reports.v1beta.CompetitiveVisibilityCompetitorView.encode(message.competitiveVisibilityCompetitorView, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
809
820
  if (message.competitiveVisibilityTopMerchantView != null && Object.hasOwnProperty.call(message, "competitiveVisibilityTopMerchantView"))
@@ -848,6 +859,10 @@
848
859
  message.productPerformanceView = $root.google.shopping.merchant.reports.v1beta.ProductPerformanceView.decode(reader, reader.uint32());
849
860
  break;
850
861
  }
862
+ case 7: {
863
+ message.nonProductPerformanceView = $root.google.shopping.merchant.reports.v1beta.NonProductPerformanceView.decode(reader, reader.uint32());
864
+ break;
865
+ }
851
866
  case 2: {
852
867
  message.productView = $root.google.shopping.merchant.reports.v1beta.ProductView.decode(reader, reader.uint32());
853
868
  break;
@@ -920,6 +935,11 @@
920
935
  if (error)
921
936
  return "productPerformanceView." + error;
922
937
  }
938
+ if (message.nonProductPerformanceView != null && message.hasOwnProperty("nonProductPerformanceView")) {
939
+ var error = $root.google.shopping.merchant.reports.v1beta.NonProductPerformanceView.verify(message.nonProductPerformanceView);
940
+ if (error)
941
+ return "nonProductPerformanceView." + error;
942
+ }
923
943
  if (message.productView != null && message.hasOwnProperty("productView")) {
924
944
  var error = $root.google.shopping.merchant.reports.v1beta.ProductView.verify(message.productView);
925
945
  if (error)
@@ -980,6 +1000,11 @@
980
1000
  throw TypeError(".google.shopping.merchant.reports.v1beta.ReportRow.productPerformanceView: object expected");
981
1001
  message.productPerformanceView = $root.google.shopping.merchant.reports.v1beta.ProductPerformanceView.fromObject(object.productPerformanceView);
982
1002
  }
1003
+ if (object.nonProductPerformanceView != null) {
1004
+ if (typeof object.nonProductPerformanceView !== "object")
1005
+ throw TypeError(".google.shopping.merchant.reports.v1beta.ReportRow.nonProductPerformanceView: object expected");
1006
+ message.nonProductPerformanceView = $root.google.shopping.merchant.reports.v1beta.NonProductPerformanceView.fromObject(object.nonProductPerformanceView);
1007
+ }
983
1008
  if (object.productView != null) {
984
1009
  if (typeof object.productView !== "object")
985
1010
  throw TypeError(".google.shopping.merchant.reports.v1beta.ReportRow.productView: object expected");
@@ -1043,6 +1068,7 @@
1043
1068
  object.priceInsightsProductView = null;
1044
1069
  object.bestSellersProductClusterView = null;
1045
1070
  object.bestSellersBrandView = null;
1071
+ object.nonProductPerformanceView = null;
1046
1072
  object.competitiveVisibilityCompetitorView = null;
1047
1073
  object.competitiveVisibilityTopMerchantView = null;
1048
1074
  object.competitiveVisibilityBenchmarkView = null;
@@ -1059,6 +1085,8 @@
1059
1085
  object.bestSellersProductClusterView = $root.google.shopping.merchant.reports.v1beta.BestSellersProductClusterView.toObject(message.bestSellersProductClusterView, options);
1060
1086
  if (message.bestSellersBrandView != null && message.hasOwnProperty("bestSellersBrandView"))
1061
1087
  object.bestSellersBrandView = $root.google.shopping.merchant.reports.v1beta.BestSellersBrandView.toObject(message.bestSellersBrandView, options);
1088
+ if (message.nonProductPerformanceView != null && message.hasOwnProperty("nonProductPerformanceView"))
1089
+ object.nonProductPerformanceView = $root.google.shopping.merchant.reports.v1beta.NonProductPerformanceView.toObject(message.nonProductPerformanceView, options);
1062
1090
  if (message.competitiveVisibilityCompetitorView != null && message.hasOwnProperty("competitiveVisibilityCompetitorView"))
1063
1091
  object.competitiveVisibilityCompetitorView = $root.google.shopping.merchant.reports.v1beta.CompetitiveVisibilityCompetitorView.toObject(message.competitiveVisibilityCompetitorView, options);
1064
1092
  if (message.competitiveVisibilityTopMerchantView != null && message.hasOwnProperty("competitiveVisibilityTopMerchantView"))
@@ -5896,6 +5924,7 @@
5896
5924
  * @property {number|null} [predictedImpressionsChangeFraction] PriceInsightsProductView predictedImpressionsChangeFraction
5897
5925
  * @property {number|null} [predictedClicksChangeFraction] PriceInsightsProductView predictedClicksChangeFraction
5898
5926
  * @property {number|null} [predictedConversionsChangeFraction] PriceInsightsProductView predictedConversionsChangeFraction
5927
+ * @property {google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness|null} [effectiveness] PriceInsightsProductView effectiveness
5899
5928
  */
5900
5929
 
5901
5930
  /**
@@ -6065,6 +6094,14 @@
6065
6094
  */
6066
6095
  PriceInsightsProductView.prototype.predictedConversionsChangeFraction = null;
6067
6096
 
6097
+ /**
6098
+ * PriceInsightsProductView effectiveness.
6099
+ * @member {google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness} effectiveness
6100
+ * @memberof google.shopping.merchant.reports.v1beta.PriceInsightsProductView
6101
+ * @instance
6102
+ */
6103
+ PriceInsightsProductView.prototype.effectiveness = 0;
6104
+
6068
6105
  // OneOf field names bound to virtual getters and setters
6069
6106
  var $oneOfFields;
6070
6107
 
@@ -6317,6 +6354,8 @@
6317
6354
  writer.uint32(/* id 18, wireType 1 =*/145).double(message.predictedClicksChangeFraction);
6318
6355
  if (message.predictedConversionsChangeFraction != null && Object.hasOwnProperty.call(message, "predictedConversionsChangeFraction"))
6319
6356
  writer.uint32(/* id 19, wireType 1 =*/153).double(message.predictedConversionsChangeFraction);
6357
+ if (message.effectiveness != null && Object.hasOwnProperty.call(message, "effectiveness"))
6358
+ writer.uint32(/* id 22, wireType 0 =*/176).int32(message.effectiveness);
6320
6359
  return writer;
6321
6360
  };
6322
6361
 
@@ -6427,6 +6466,10 @@
6427
6466
  message.predictedConversionsChangeFraction = reader.double();
6428
6467
  break;
6429
6468
  }
6469
+ case 22: {
6470
+ message.effectiveness = reader.int32();
6471
+ break;
6472
+ }
6430
6473
  default:
6431
6474
  reader.skipType(tag & 7);
6432
6475
  break;
@@ -6558,6 +6601,16 @@
6558
6601
  if (typeof message.predictedConversionsChangeFraction !== "number")
6559
6602
  return "predictedConversionsChangeFraction: number expected";
6560
6603
  }
6604
+ if (message.effectiveness != null && message.hasOwnProperty("effectiveness"))
6605
+ switch (message.effectiveness) {
6606
+ default:
6607
+ return "effectiveness: enum value expected";
6608
+ case 0:
6609
+ case 1:
6610
+ case 2:
6611
+ case 3:
6612
+ break;
6613
+ }
6561
6614
  return null;
6562
6615
  };
6563
6616
 
@@ -6617,6 +6670,30 @@
6617
6670
  message.predictedClicksChangeFraction = Number(object.predictedClicksChangeFraction);
6618
6671
  if (object.predictedConversionsChangeFraction != null)
6619
6672
  message.predictedConversionsChangeFraction = Number(object.predictedConversionsChangeFraction);
6673
+ switch (object.effectiveness) {
6674
+ default:
6675
+ if (typeof object.effectiveness === "number") {
6676
+ message.effectiveness = object.effectiveness;
6677
+ break;
6678
+ }
6679
+ break;
6680
+ case "EFFECTIVENESS_UNSPECIFIED":
6681
+ case 0:
6682
+ message.effectiveness = 0;
6683
+ break;
6684
+ case "LOW":
6685
+ case 1:
6686
+ message.effectiveness = 1;
6687
+ break;
6688
+ case "MEDIUM":
6689
+ case 2:
6690
+ message.effectiveness = 2;
6691
+ break;
6692
+ case "HIGH":
6693
+ case 3:
6694
+ message.effectiveness = 3;
6695
+ break;
6696
+ }
6620
6697
  return message;
6621
6698
  };
6622
6699
 
@@ -6636,6 +6713,7 @@
6636
6713
  if (options.defaults) {
6637
6714
  object.price = null;
6638
6715
  object.suggestedPrice = null;
6716
+ object.effectiveness = options.enums === String ? "EFFECTIVENESS_UNSPECIFIED" : 0;
6639
6717
  }
6640
6718
  if (message.id != null && message.hasOwnProperty("id")) {
6641
6719
  object.id = message.id;
@@ -6726,6 +6804,8 @@
6726
6804
  if (options.oneofs)
6727
6805
  object._predictedConversionsChangeFraction = "predictedConversionsChangeFraction";
6728
6806
  }
6807
+ if (message.effectiveness != null && message.hasOwnProperty("effectiveness"))
6808
+ object.effectiveness = options.enums === String ? $root.google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness[message.effectiveness] === undefined ? message.effectiveness : $root.google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness[message.effectiveness] : message.effectiveness;
6729
6809
  return object;
6730
6810
  };
6731
6811
 
@@ -6755,6 +6835,24 @@
6755
6835
  return typeUrlPrefix + "/google.shopping.merchant.reports.v1beta.PriceInsightsProductView";
6756
6836
  };
6757
6837
 
6838
+ /**
6839
+ * Effectiveness enum.
6840
+ * @name google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness
6841
+ * @enum {number}
6842
+ * @property {number} EFFECTIVENESS_UNSPECIFIED=0 EFFECTIVENESS_UNSPECIFIED value
6843
+ * @property {number} LOW=1 LOW value
6844
+ * @property {number} MEDIUM=2 MEDIUM value
6845
+ * @property {number} HIGH=3 HIGH value
6846
+ */
6847
+ PriceInsightsProductView.Effectiveness = (function() {
6848
+ var valuesById = {}, values = Object.create(valuesById);
6849
+ values[valuesById[0] = "EFFECTIVENESS_UNSPECIFIED"] = 0;
6850
+ values[valuesById[1] = "LOW"] = 1;
6851
+ values[valuesById[2] = "MEDIUM"] = 2;
6852
+ values[valuesById[3] = "HIGH"] = 3;
6853
+ return values;
6854
+ })();
6855
+
6758
6856
  return PriceInsightsProductView;
6759
6857
  })();
6760
6858
 
@@ -8608,6 +8706,381 @@
8608
8706
  return BestSellersBrandView;
8609
8707
  })();
8610
8708
 
8709
+ v1beta.NonProductPerformanceView = (function() {
8710
+
8711
+ /**
8712
+ * Properties of a NonProductPerformanceView.
8713
+ * @memberof google.shopping.merchant.reports.v1beta
8714
+ * @interface INonProductPerformanceView
8715
+ * @property {google.type.IDate|null} [date] NonProductPerformanceView date
8716
+ * @property {google.type.IDate|null} [week] NonProductPerformanceView week
8717
+ * @property {number|Long|null} [clicks] NonProductPerformanceView clicks
8718
+ * @property {number|Long|null} [impressions] NonProductPerformanceView impressions
8719
+ * @property {number|null} [clickThroughRate] NonProductPerformanceView clickThroughRate
8720
+ */
8721
+
8722
+ /**
8723
+ * Constructs a new NonProductPerformanceView.
8724
+ * @memberof google.shopping.merchant.reports.v1beta
8725
+ * @classdesc Represents a NonProductPerformanceView.
8726
+ * @implements INonProductPerformanceView
8727
+ * @constructor
8728
+ * @param {google.shopping.merchant.reports.v1beta.INonProductPerformanceView=} [properties] Properties to set
8729
+ */
8730
+ function NonProductPerformanceView(properties) {
8731
+ if (properties)
8732
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
8733
+ if (properties[keys[i]] != null)
8734
+ this[keys[i]] = properties[keys[i]];
8735
+ }
8736
+
8737
+ /**
8738
+ * NonProductPerformanceView date.
8739
+ * @member {google.type.IDate|null|undefined} date
8740
+ * @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
8741
+ * @instance
8742
+ */
8743
+ NonProductPerformanceView.prototype.date = null;
8744
+
8745
+ /**
8746
+ * NonProductPerformanceView week.
8747
+ * @member {google.type.IDate|null|undefined} week
8748
+ * @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
8749
+ * @instance
8750
+ */
8751
+ NonProductPerformanceView.prototype.week = null;
8752
+
8753
+ /**
8754
+ * NonProductPerformanceView clicks.
8755
+ * @member {number|Long|null|undefined} clicks
8756
+ * @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
8757
+ * @instance
8758
+ */
8759
+ NonProductPerformanceView.prototype.clicks = null;
8760
+
8761
+ /**
8762
+ * NonProductPerformanceView impressions.
8763
+ * @member {number|Long|null|undefined} impressions
8764
+ * @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
8765
+ * @instance
8766
+ */
8767
+ NonProductPerformanceView.prototype.impressions = null;
8768
+
8769
+ /**
8770
+ * NonProductPerformanceView clickThroughRate.
8771
+ * @member {number|null|undefined} clickThroughRate
8772
+ * @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
8773
+ * @instance
8774
+ */
8775
+ NonProductPerformanceView.prototype.clickThroughRate = null;
8776
+
8777
+ // OneOf field names bound to virtual getters and setters
8778
+ var $oneOfFields;
8779
+
8780
+ /**
8781
+ * NonProductPerformanceView _clicks.
8782
+ * @member {"clicks"|undefined} _clicks
8783
+ * @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
8784
+ * @instance
8785
+ */
8786
+ Object.defineProperty(NonProductPerformanceView.prototype, "_clicks", {
8787
+ get: $util.oneOfGetter($oneOfFields = ["clicks"]),
8788
+ set: $util.oneOfSetter($oneOfFields)
8789
+ });
8790
+
8791
+ /**
8792
+ * NonProductPerformanceView _impressions.
8793
+ * @member {"impressions"|undefined} _impressions
8794
+ * @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
8795
+ * @instance
8796
+ */
8797
+ Object.defineProperty(NonProductPerformanceView.prototype, "_impressions", {
8798
+ get: $util.oneOfGetter($oneOfFields = ["impressions"]),
8799
+ set: $util.oneOfSetter($oneOfFields)
8800
+ });
8801
+
8802
+ /**
8803
+ * NonProductPerformanceView _clickThroughRate.
8804
+ * @member {"clickThroughRate"|undefined} _clickThroughRate
8805
+ * @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
8806
+ * @instance
8807
+ */
8808
+ Object.defineProperty(NonProductPerformanceView.prototype, "_clickThroughRate", {
8809
+ get: $util.oneOfGetter($oneOfFields = ["clickThroughRate"]),
8810
+ set: $util.oneOfSetter($oneOfFields)
8811
+ });
8812
+
8813
+ /**
8814
+ * Creates a new NonProductPerformanceView instance using the specified properties.
8815
+ * @function create
8816
+ * @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
8817
+ * @static
8818
+ * @param {google.shopping.merchant.reports.v1beta.INonProductPerformanceView=} [properties] Properties to set
8819
+ * @returns {google.shopping.merchant.reports.v1beta.NonProductPerformanceView} NonProductPerformanceView instance
8820
+ */
8821
+ NonProductPerformanceView.create = function create(properties) {
8822
+ return new NonProductPerformanceView(properties);
8823
+ };
8824
+
8825
+ /**
8826
+ * Encodes the specified NonProductPerformanceView message. Does not implicitly {@link google.shopping.merchant.reports.v1beta.NonProductPerformanceView.verify|verify} messages.
8827
+ * @function encode
8828
+ * @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
8829
+ * @static
8830
+ * @param {google.shopping.merchant.reports.v1beta.INonProductPerformanceView} message NonProductPerformanceView message or plain object to encode
8831
+ * @param {$protobuf.Writer} [writer] Writer to encode to
8832
+ * @returns {$protobuf.Writer} Writer
8833
+ */
8834
+ NonProductPerformanceView.encode = function encode(message, writer) {
8835
+ if (!writer)
8836
+ writer = $Writer.create();
8837
+ if (message.date != null && Object.hasOwnProperty.call(message, "date"))
8838
+ $root.google.type.Date.encode(message.date, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
8839
+ if (message.week != null && Object.hasOwnProperty.call(message, "week"))
8840
+ $root.google.type.Date.encode(message.week, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
8841
+ if (message.clicks != null && Object.hasOwnProperty.call(message, "clicks"))
8842
+ writer.uint32(/* id 3, wireType 0 =*/24).int64(message.clicks);
8843
+ if (message.impressions != null && Object.hasOwnProperty.call(message, "impressions"))
8844
+ writer.uint32(/* id 4, wireType 0 =*/32).int64(message.impressions);
8845
+ if (message.clickThroughRate != null && Object.hasOwnProperty.call(message, "clickThroughRate"))
8846
+ writer.uint32(/* id 5, wireType 1 =*/41).double(message.clickThroughRate);
8847
+ return writer;
8848
+ };
8849
+
8850
+ /**
8851
+ * Encodes the specified NonProductPerformanceView message, length delimited. Does not implicitly {@link google.shopping.merchant.reports.v1beta.NonProductPerformanceView.verify|verify} messages.
8852
+ * @function encodeDelimited
8853
+ * @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
8854
+ * @static
8855
+ * @param {google.shopping.merchant.reports.v1beta.INonProductPerformanceView} message NonProductPerformanceView message or plain object to encode
8856
+ * @param {$protobuf.Writer} [writer] Writer to encode to
8857
+ * @returns {$protobuf.Writer} Writer
8858
+ */
8859
+ NonProductPerformanceView.encodeDelimited = function encodeDelimited(message, writer) {
8860
+ return this.encode(message, writer).ldelim();
8861
+ };
8862
+
8863
+ /**
8864
+ * Decodes a NonProductPerformanceView message from the specified reader or buffer.
8865
+ * @function decode
8866
+ * @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
8867
+ * @static
8868
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
8869
+ * @param {number} [length] Message length if known beforehand
8870
+ * @returns {google.shopping.merchant.reports.v1beta.NonProductPerformanceView} NonProductPerformanceView
8871
+ * @throws {Error} If the payload is not a reader or valid buffer
8872
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8873
+ */
8874
+ NonProductPerformanceView.decode = function decode(reader, length) {
8875
+ if (!(reader instanceof $Reader))
8876
+ reader = $Reader.create(reader);
8877
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.reports.v1beta.NonProductPerformanceView();
8878
+ while (reader.pos < end) {
8879
+ var tag = reader.uint32();
8880
+ switch (tag >>> 3) {
8881
+ case 1: {
8882
+ message.date = $root.google.type.Date.decode(reader, reader.uint32());
8883
+ break;
8884
+ }
8885
+ case 2: {
8886
+ message.week = $root.google.type.Date.decode(reader, reader.uint32());
8887
+ break;
8888
+ }
8889
+ case 3: {
8890
+ message.clicks = reader.int64();
8891
+ break;
8892
+ }
8893
+ case 4: {
8894
+ message.impressions = reader.int64();
8895
+ break;
8896
+ }
8897
+ case 5: {
8898
+ message.clickThroughRate = reader.double();
8899
+ break;
8900
+ }
8901
+ default:
8902
+ reader.skipType(tag & 7);
8903
+ break;
8904
+ }
8905
+ }
8906
+ return message;
8907
+ };
8908
+
8909
+ /**
8910
+ * Decodes a NonProductPerformanceView message from the specified reader or buffer, length delimited.
8911
+ * @function decodeDelimited
8912
+ * @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
8913
+ * @static
8914
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
8915
+ * @returns {google.shopping.merchant.reports.v1beta.NonProductPerformanceView} NonProductPerformanceView
8916
+ * @throws {Error} If the payload is not a reader or valid buffer
8917
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8918
+ */
8919
+ NonProductPerformanceView.decodeDelimited = function decodeDelimited(reader) {
8920
+ if (!(reader instanceof $Reader))
8921
+ reader = new $Reader(reader);
8922
+ return this.decode(reader, reader.uint32());
8923
+ };
8924
+
8925
+ /**
8926
+ * Verifies a NonProductPerformanceView message.
8927
+ * @function verify
8928
+ * @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
8929
+ * @static
8930
+ * @param {Object.<string,*>} message Plain object to verify
8931
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
8932
+ */
8933
+ NonProductPerformanceView.verify = function verify(message) {
8934
+ if (typeof message !== "object" || message === null)
8935
+ return "object expected";
8936
+ var properties = {};
8937
+ if (message.date != null && message.hasOwnProperty("date")) {
8938
+ var error = $root.google.type.Date.verify(message.date);
8939
+ if (error)
8940
+ return "date." + error;
8941
+ }
8942
+ if (message.week != null && message.hasOwnProperty("week")) {
8943
+ var error = $root.google.type.Date.verify(message.week);
8944
+ if (error)
8945
+ return "week." + error;
8946
+ }
8947
+ if (message.clicks != null && message.hasOwnProperty("clicks")) {
8948
+ properties._clicks = 1;
8949
+ if (!$util.isInteger(message.clicks) && !(message.clicks && $util.isInteger(message.clicks.low) && $util.isInteger(message.clicks.high)))
8950
+ return "clicks: integer|Long expected";
8951
+ }
8952
+ if (message.impressions != null && message.hasOwnProperty("impressions")) {
8953
+ properties._impressions = 1;
8954
+ if (!$util.isInteger(message.impressions) && !(message.impressions && $util.isInteger(message.impressions.low) && $util.isInteger(message.impressions.high)))
8955
+ return "impressions: integer|Long expected";
8956
+ }
8957
+ if (message.clickThroughRate != null && message.hasOwnProperty("clickThroughRate")) {
8958
+ properties._clickThroughRate = 1;
8959
+ if (typeof message.clickThroughRate !== "number")
8960
+ return "clickThroughRate: number expected";
8961
+ }
8962
+ return null;
8963
+ };
8964
+
8965
+ /**
8966
+ * Creates a NonProductPerformanceView message from a plain object. Also converts values to their respective internal types.
8967
+ * @function fromObject
8968
+ * @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
8969
+ * @static
8970
+ * @param {Object.<string,*>} object Plain object
8971
+ * @returns {google.shopping.merchant.reports.v1beta.NonProductPerformanceView} NonProductPerformanceView
8972
+ */
8973
+ NonProductPerformanceView.fromObject = function fromObject(object) {
8974
+ if (object instanceof $root.google.shopping.merchant.reports.v1beta.NonProductPerformanceView)
8975
+ return object;
8976
+ var message = new $root.google.shopping.merchant.reports.v1beta.NonProductPerformanceView();
8977
+ if (object.date != null) {
8978
+ if (typeof object.date !== "object")
8979
+ throw TypeError(".google.shopping.merchant.reports.v1beta.NonProductPerformanceView.date: object expected");
8980
+ message.date = $root.google.type.Date.fromObject(object.date);
8981
+ }
8982
+ if (object.week != null) {
8983
+ if (typeof object.week !== "object")
8984
+ throw TypeError(".google.shopping.merchant.reports.v1beta.NonProductPerformanceView.week: object expected");
8985
+ message.week = $root.google.type.Date.fromObject(object.week);
8986
+ }
8987
+ if (object.clicks != null)
8988
+ if ($util.Long)
8989
+ (message.clicks = $util.Long.fromValue(object.clicks)).unsigned = false;
8990
+ else if (typeof object.clicks === "string")
8991
+ message.clicks = parseInt(object.clicks, 10);
8992
+ else if (typeof object.clicks === "number")
8993
+ message.clicks = object.clicks;
8994
+ else if (typeof object.clicks === "object")
8995
+ message.clicks = new $util.LongBits(object.clicks.low >>> 0, object.clicks.high >>> 0).toNumber();
8996
+ if (object.impressions != null)
8997
+ if ($util.Long)
8998
+ (message.impressions = $util.Long.fromValue(object.impressions)).unsigned = false;
8999
+ else if (typeof object.impressions === "string")
9000
+ message.impressions = parseInt(object.impressions, 10);
9001
+ else if (typeof object.impressions === "number")
9002
+ message.impressions = object.impressions;
9003
+ else if (typeof object.impressions === "object")
9004
+ message.impressions = new $util.LongBits(object.impressions.low >>> 0, object.impressions.high >>> 0).toNumber();
9005
+ if (object.clickThroughRate != null)
9006
+ message.clickThroughRate = Number(object.clickThroughRate);
9007
+ return message;
9008
+ };
9009
+
9010
+ /**
9011
+ * Creates a plain object from a NonProductPerformanceView message. Also converts values to other types if specified.
9012
+ * @function toObject
9013
+ * @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
9014
+ * @static
9015
+ * @param {google.shopping.merchant.reports.v1beta.NonProductPerformanceView} message NonProductPerformanceView
9016
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
9017
+ * @returns {Object.<string,*>} Plain object
9018
+ */
9019
+ NonProductPerformanceView.toObject = function toObject(message, options) {
9020
+ if (!options)
9021
+ options = {};
9022
+ var object = {};
9023
+ if (options.defaults) {
9024
+ object.date = null;
9025
+ object.week = null;
9026
+ }
9027
+ if (message.date != null && message.hasOwnProperty("date"))
9028
+ object.date = $root.google.type.Date.toObject(message.date, options);
9029
+ if (message.week != null && message.hasOwnProperty("week"))
9030
+ object.week = $root.google.type.Date.toObject(message.week, options);
9031
+ if (message.clicks != null && message.hasOwnProperty("clicks")) {
9032
+ if (typeof message.clicks === "number")
9033
+ object.clicks = options.longs === String ? String(message.clicks) : message.clicks;
9034
+ else
9035
+ object.clicks = options.longs === String ? $util.Long.prototype.toString.call(message.clicks) : options.longs === Number ? new $util.LongBits(message.clicks.low >>> 0, message.clicks.high >>> 0).toNumber() : message.clicks;
9036
+ if (options.oneofs)
9037
+ object._clicks = "clicks";
9038
+ }
9039
+ if (message.impressions != null && message.hasOwnProperty("impressions")) {
9040
+ if (typeof message.impressions === "number")
9041
+ object.impressions = options.longs === String ? String(message.impressions) : message.impressions;
9042
+ else
9043
+ object.impressions = options.longs === String ? $util.Long.prototype.toString.call(message.impressions) : options.longs === Number ? new $util.LongBits(message.impressions.low >>> 0, message.impressions.high >>> 0).toNumber() : message.impressions;
9044
+ if (options.oneofs)
9045
+ object._impressions = "impressions";
9046
+ }
9047
+ if (message.clickThroughRate != null && message.hasOwnProperty("clickThroughRate")) {
9048
+ object.clickThroughRate = options.json && !isFinite(message.clickThroughRate) ? String(message.clickThroughRate) : message.clickThroughRate;
9049
+ if (options.oneofs)
9050
+ object._clickThroughRate = "clickThroughRate";
9051
+ }
9052
+ return object;
9053
+ };
9054
+
9055
+ /**
9056
+ * Converts this NonProductPerformanceView to JSON.
9057
+ * @function toJSON
9058
+ * @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
9059
+ * @instance
9060
+ * @returns {Object.<string,*>} JSON object
9061
+ */
9062
+ NonProductPerformanceView.prototype.toJSON = function toJSON() {
9063
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9064
+ };
9065
+
9066
+ /**
9067
+ * Gets the default type url for NonProductPerformanceView
9068
+ * @function getTypeUrl
9069
+ * @memberof google.shopping.merchant.reports.v1beta.NonProductPerformanceView
9070
+ * @static
9071
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
9072
+ * @returns {string} The default type url
9073
+ */
9074
+ NonProductPerformanceView.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
9075
+ if (typeUrlPrefix === undefined) {
9076
+ typeUrlPrefix = "type.googleapis.com";
9077
+ }
9078
+ return typeUrlPrefix + "/google.shopping.merchant.reports.v1beta.NonProductPerformanceView";
9079
+ };
9080
+
9081
+ return NonProductPerformanceView;
9082
+ })();
9083
+
8611
9084
  v1beta.CompetitiveVisibilityCompetitorView = (function() {
8612
9085
 
8613
9086
  /**
@@ -95,6 +95,10 @@
95
95
  "type": "ProductPerformanceView",
96
96
  "id": 1
97
97
  },
98
+ "nonProductPerformanceView": {
99
+ "type": "NonProductPerformanceView",
100
+ "id": 7
101
+ },
98
102
  "productView": {
99
103
  "type": "ProductView",
100
104
  "id": 2
@@ -1321,6 +1325,20 @@
1321
1325
  "options": {
1322
1326
  "proto3_optional": true
1323
1327
  }
1328
+ },
1329
+ "effectiveness": {
1330
+ "type": "Effectiveness",
1331
+ "id": 22
1332
+ }
1333
+ },
1334
+ "nested": {
1335
+ "Effectiveness": {
1336
+ "values": {
1337
+ "EFFECTIVENESS_UNSPECIFIED": 0,
1338
+ "LOW": 1,
1339
+ "MEDIUM": 2,
1340
+ "HIGH": 3
1341
+ }
1324
1342
  }
1325
1343
  }
1326
1344
  },
@@ -1671,6 +1689,56 @@
1671
1689
  }
1672
1690
  }
1673
1691
  },
1692
+ "NonProductPerformanceView": {
1693
+ "oneofs": {
1694
+ "_clicks": {
1695
+ "oneof": [
1696
+ "clicks"
1697
+ ]
1698
+ },
1699
+ "_impressions": {
1700
+ "oneof": [
1701
+ "impressions"
1702
+ ]
1703
+ },
1704
+ "_clickThroughRate": {
1705
+ "oneof": [
1706
+ "clickThroughRate"
1707
+ ]
1708
+ }
1709
+ },
1710
+ "fields": {
1711
+ "date": {
1712
+ "type": "google.type.Date",
1713
+ "id": 1
1714
+ },
1715
+ "week": {
1716
+ "type": "google.type.Date",
1717
+ "id": 2
1718
+ },
1719
+ "clicks": {
1720
+ "type": "int64",
1721
+ "id": 3,
1722
+ "options": {
1723
+ "proto3_optional": true
1724
+ }
1725
+ },
1726
+ "impressions": {
1727
+ "type": "int64",
1728
+ "id": 4,
1729
+ "options": {
1730
+ "proto3_optional": true
1731
+ }
1732
+ },
1733
+ "clickThroughRate": {
1734
+ "type": "double",
1735
+ "id": 5,
1736
+ "options": {
1737
+ "proto3_optional": true
1738
+ }
1739
+ }
1740
+ }
1741
+ },
1674
1742
  "CompetitiveVisibilityCompetitorView": {
1675
1743
  "oneofs": {
1676
1744
  "_domain": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@google-shopping/reports",
3
- "version": "0.5.0",
3
+ "version": "0.7.0",
4
4
  "description": "Merchant API client for Node.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -61,7 +61,7 @@
61
61
  "long": "^5.2.3",
62
62
  "mocha": "^9.2.2",
63
63
  "pack-n-play": "^2.0.0",
64
- "sinon": "^17.0.0",
64
+ "sinon": "^18.0.0",
65
65
  "typescript": "^5.1.6"
66
66
  },
67
67
  "engines": {