@google-shopping/reports 0.3.0 → 0.4.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 +7 -0
- package/build/protos/google/shopping/merchant/reports/v1beta/reports.proto +33 -1
- package/build/protos/protos.d.ts +23 -0
- package/build/protos/protos.js +118 -0
- package/build/protos/protos.json +24 -0
- package/build/src/v1beta/report_service_client.d.ts +3 -3
- package/build/src/v1beta/report_service_client.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [0.4.0](https://github.com/googleapis/google-cloud-node/compare/reports-v0.3.0...reports-v0.4.0) (2024-04-16)
|
4
|
+
|
5
|
+
|
6
|
+
### Features
|
7
|
+
|
8
|
+
* [merchantapi] add click potential to Reports sub-API publication ([#5222](https://github.com/googleapis/google-cloud-node/issues/5222)) ([02719b6](https://github.com/googleapis/google-cloud-node/commit/02719b6945141a7b35256c6d96228280da5bda0f))
|
9
|
+
|
3
10
|
## [0.3.0](https://github.com/googleapis/google-cloud-node/compare/reports-v0.2.0...reports-v0.3.0) (2024-03-29)
|
4
11
|
|
5
12
|
|
@@ -60,7 +60,7 @@ message SearchRequest {
|
|
60
60
|
string query = 2 [(google.api.field_behavior) = REQUIRED];
|
61
61
|
|
62
62
|
// Optional. Number of `ReportRows` to retrieve in a single page. Defaults to
|
63
|
-
//
|
63
|
+
// 1000. Values above 5000 are coerced to 5000.
|
64
64
|
int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL];
|
65
65
|
|
66
66
|
// Optional. Token of the page to retrieve. If not specified, the first page
|
@@ -378,6 +378,29 @@ message ProductView {
|
|
378
378
|
ELIGIBLE = 4;
|
379
379
|
}
|
380
380
|
|
381
|
+
// A product's [click
|
382
|
+
// potential](https://support.google.com/merchants/answer/188488) estimates
|
383
|
+
// its performance potential compared to highest performing products of the
|
384
|
+
// merchant. Click potential of a product helps merchants to prioritize which
|
385
|
+
// products to fix and helps them understand how products are performing
|
386
|
+
// against their potential.
|
387
|
+
enum ClickPotential {
|
388
|
+
// Unknown predicted clicks impact.
|
389
|
+
CLICK_POTENTIAL_UNSPECIFIED = 0;
|
390
|
+
|
391
|
+
// Potential to receive a low number of clicks compared to the highest
|
392
|
+
// performing products of the merchant.
|
393
|
+
LOW = 1;
|
394
|
+
|
395
|
+
// Potential to receive a moderate number of clicks compared to the highest
|
396
|
+
// performing products of the merchant.
|
397
|
+
MEDIUM = 2;
|
398
|
+
|
399
|
+
// Potential to receive a similar number of clicks as the highest performing
|
400
|
+
// products of the merchant.
|
401
|
+
HIGH = 3;
|
402
|
+
}
|
403
|
+
|
381
404
|
// REST ID of the product, in the form of
|
382
405
|
// `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
|
383
406
|
// on products take this as their `name` parameter.
|
@@ -488,6 +511,15 @@ message ProductView {
|
|
488
511
|
// `item_issues.severity.aggregated_severity`) can be used for filtering the
|
489
512
|
// results.**
|
490
513
|
repeated ItemIssue item_issues = 27;
|
514
|
+
|
515
|
+
// Estimated performance potential compared to highest performing products of
|
516
|
+
// the merchant.
|
517
|
+
ClickPotential click_potential = 29;
|
518
|
+
|
519
|
+
// Rank of the product based on its click potential. A product with
|
520
|
+
// `click_potential_rank` 1 has the highest click potential among the
|
521
|
+
// merchant's products that fulfill the search query conditions.
|
522
|
+
optional int64 click_potential_rank = 30;
|
491
523
|
}
|
492
524
|
|
493
525
|
// Fields available for query in `price_competitiveness_product_view` table.
|
package/build/protos/protos.d.ts
CHANGED
@@ -857,6 +857,12 @@ export namespace google {
|
|
857
857
|
|
858
858
|
/** ProductView itemIssues */
|
859
859
|
itemIssues?: (google.shopping.merchant.reports.v1beta.ProductView.IItemIssue[]|null);
|
860
|
+
|
861
|
+
/** ProductView clickPotential */
|
862
|
+
clickPotential?: (google.shopping.merchant.reports.v1beta.ProductView.ClickPotential|keyof typeof google.shopping.merchant.reports.v1beta.ProductView.ClickPotential|null);
|
863
|
+
|
864
|
+
/** ProductView clickPotentialRank */
|
865
|
+
clickPotentialRank?: (number|Long|string|null);
|
860
866
|
}
|
861
867
|
|
862
868
|
/** Represents a ProductView. */
|
@@ -952,6 +958,12 @@ export namespace google {
|
|
952
958
|
/** ProductView itemIssues. */
|
953
959
|
public itemIssues: google.shopping.merchant.reports.v1beta.ProductView.IItemIssue[];
|
954
960
|
|
961
|
+
/** ProductView clickPotential. */
|
962
|
+
public clickPotential: (google.shopping.merchant.reports.v1beta.ProductView.ClickPotential|keyof typeof google.shopping.merchant.reports.v1beta.ProductView.ClickPotential);
|
963
|
+
|
964
|
+
/** ProductView clickPotentialRank. */
|
965
|
+
public clickPotentialRank?: (number|Long|string|null);
|
966
|
+
|
955
967
|
/** ProductView _id. */
|
956
968
|
public _id?: "id";
|
957
969
|
|
@@ -1021,6 +1033,9 @@ export namespace google {
|
|
1021
1033
|
/** ProductView _aggregatedReportingContextStatus. */
|
1022
1034
|
public _aggregatedReportingContextStatus?: "aggregatedReportingContextStatus";
|
1023
1035
|
|
1036
|
+
/** ProductView _clickPotentialRank. */
|
1037
|
+
public _clickPotentialRank?: "clickPotentialRank";
|
1038
|
+
|
1024
1039
|
/**
|
1025
1040
|
* Creates a new ProductView instance using the specified properties.
|
1026
1041
|
* @param [properties] Properties to set
|
@@ -1569,6 +1584,14 @@ export namespace google {
|
|
1569
1584
|
ELIGIBLE_LIMITED = 3,
|
1570
1585
|
ELIGIBLE = 4
|
1571
1586
|
}
|
1587
|
+
|
1588
|
+
/** ClickPotential enum. */
|
1589
|
+
enum ClickPotential {
|
1590
|
+
CLICK_POTENTIAL_UNSPECIFIED = 0,
|
1591
|
+
LOW = 1,
|
1592
|
+
MEDIUM = 2,
|
1593
|
+
HIGH = 3
|
1594
|
+
}
|
1572
1595
|
}
|
1573
1596
|
|
1574
1597
|
/** Properties of a PriceCompetitivenessProductView. */
|
package/build/protos/protos.js
CHANGED
@@ -2394,6 +2394,8 @@
|
|
2394
2394
|
* @property {google.type.IDate|null} [expirationDate] ProductView expirationDate
|
2395
2395
|
* @property {google.shopping.merchant.reports.v1beta.ProductView.AggregatedReportingContextStatus|null} [aggregatedReportingContextStatus] ProductView aggregatedReportingContextStatus
|
2396
2396
|
* @property {Array.<google.shopping.merchant.reports.v1beta.ProductView.IItemIssue>|null} [itemIssues] ProductView itemIssues
|
2397
|
+
* @property {google.shopping.merchant.reports.v1beta.ProductView.ClickPotential|null} [clickPotential] ProductView clickPotential
|
2398
|
+
* @property {number|Long|null} [clickPotentialRank] ProductView clickPotentialRank
|
2397
2399
|
*/
|
2398
2400
|
|
2399
2401
|
/**
|
@@ -2637,6 +2639,22 @@
|
|
2637
2639
|
*/
|
2638
2640
|
ProductView.prototype.itemIssues = $util.emptyArray;
|
2639
2641
|
|
2642
|
+
/**
|
2643
|
+
* ProductView clickPotential.
|
2644
|
+
* @member {google.shopping.merchant.reports.v1beta.ProductView.ClickPotential} clickPotential
|
2645
|
+
* @memberof google.shopping.merchant.reports.v1beta.ProductView
|
2646
|
+
* @instance
|
2647
|
+
*/
|
2648
|
+
ProductView.prototype.clickPotential = 0;
|
2649
|
+
|
2650
|
+
/**
|
2651
|
+
* ProductView clickPotentialRank.
|
2652
|
+
* @member {number|Long|null|undefined} clickPotentialRank
|
2653
|
+
* @memberof google.shopping.merchant.reports.v1beta.ProductView
|
2654
|
+
* @instance
|
2655
|
+
*/
|
2656
|
+
ProductView.prototype.clickPotentialRank = null;
|
2657
|
+
|
2640
2658
|
// OneOf field names bound to virtual getters and setters
|
2641
2659
|
var $oneOfFields;
|
2642
2660
|
|
@@ -2893,6 +2911,17 @@
|
|
2893
2911
|
set: $util.oneOfSetter($oneOfFields)
|
2894
2912
|
});
|
2895
2913
|
|
2914
|
+
/**
|
2915
|
+
* ProductView _clickPotentialRank.
|
2916
|
+
* @member {"clickPotentialRank"|undefined} _clickPotentialRank
|
2917
|
+
* @memberof google.shopping.merchant.reports.v1beta.ProductView
|
2918
|
+
* @instance
|
2919
|
+
*/
|
2920
|
+
Object.defineProperty(ProductView.prototype, "_clickPotentialRank", {
|
2921
|
+
get: $util.oneOfGetter($oneOfFields = ["clickPotentialRank"]),
|
2922
|
+
set: $util.oneOfSetter($oneOfFields)
|
2923
|
+
});
|
2924
|
+
|
2896
2925
|
/**
|
2897
2926
|
* Creates a new ProductView instance using the specified properties.
|
2898
2927
|
* @function create
|
@@ -2975,6 +3004,10 @@
|
|
2975
3004
|
$root.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.encode(message.itemIssues[i], writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
|
2976
3005
|
if (message.channel != null && Object.hasOwnProperty.call(message, "channel"))
|
2977
3006
|
writer.uint32(/* id 28, wireType 0 =*/224).int32(message.channel);
|
3007
|
+
if (message.clickPotential != null && Object.hasOwnProperty.call(message, "clickPotential"))
|
3008
|
+
writer.uint32(/* id 29, wireType 0 =*/232).int32(message.clickPotential);
|
3009
|
+
if (message.clickPotentialRank != null && Object.hasOwnProperty.call(message, "clickPotentialRank"))
|
3010
|
+
writer.uint32(/* id 30, wireType 0 =*/240).int64(message.clickPotentialRank);
|
2978
3011
|
return writer;
|
2979
3012
|
};
|
2980
3013
|
|
@@ -3125,6 +3158,14 @@
|
|
3125
3158
|
message.itemIssues.push($root.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.decode(reader, reader.uint32()));
|
3126
3159
|
break;
|
3127
3160
|
}
|
3161
|
+
case 29: {
|
3162
|
+
message.clickPotential = reader.int32();
|
3163
|
+
break;
|
3164
|
+
}
|
3165
|
+
case 30: {
|
3166
|
+
message.clickPotentialRank = reader.int64();
|
3167
|
+
break;
|
3168
|
+
}
|
3128
3169
|
default:
|
3129
3170
|
reader.skipType(tag & 7);
|
3130
3171
|
break;
|
@@ -3321,6 +3362,21 @@
|
|
3321
3362
|
return "itemIssues." + error;
|
3322
3363
|
}
|
3323
3364
|
}
|
3365
|
+
if (message.clickPotential != null && message.hasOwnProperty("clickPotential"))
|
3366
|
+
switch (message.clickPotential) {
|
3367
|
+
default:
|
3368
|
+
return "clickPotential: enum value expected";
|
3369
|
+
case 0:
|
3370
|
+
case 1:
|
3371
|
+
case 2:
|
3372
|
+
case 3:
|
3373
|
+
break;
|
3374
|
+
}
|
3375
|
+
if (message.clickPotentialRank != null && message.hasOwnProperty("clickPotentialRank")) {
|
3376
|
+
properties._clickPotentialRank = 1;
|
3377
|
+
if (!$util.isInteger(message.clickPotentialRank) && !(message.clickPotentialRank && $util.isInteger(message.clickPotentialRank.low) && $util.isInteger(message.clickPotentialRank.high)))
|
3378
|
+
return "clickPotentialRank: integer|Long expected";
|
3379
|
+
}
|
3324
3380
|
return null;
|
3325
3381
|
};
|
3326
3382
|
|
@@ -3458,6 +3514,39 @@
|
|
3458
3514
|
message.itemIssues[i] = $root.google.shopping.merchant.reports.v1beta.ProductView.ItemIssue.fromObject(object.itemIssues[i]);
|
3459
3515
|
}
|
3460
3516
|
}
|
3517
|
+
switch (object.clickPotential) {
|
3518
|
+
default:
|
3519
|
+
if (typeof object.clickPotential === "number") {
|
3520
|
+
message.clickPotential = object.clickPotential;
|
3521
|
+
break;
|
3522
|
+
}
|
3523
|
+
break;
|
3524
|
+
case "CLICK_POTENTIAL_UNSPECIFIED":
|
3525
|
+
case 0:
|
3526
|
+
message.clickPotential = 0;
|
3527
|
+
break;
|
3528
|
+
case "LOW":
|
3529
|
+
case 1:
|
3530
|
+
message.clickPotential = 1;
|
3531
|
+
break;
|
3532
|
+
case "MEDIUM":
|
3533
|
+
case 2:
|
3534
|
+
message.clickPotential = 2;
|
3535
|
+
break;
|
3536
|
+
case "HIGH":
|
3537
|
+
case 3:
|
3538
|
+
message.clickPotential = 3;
|
3539
|
+
break;
|
3540
|
+
}
|
3541
|
+
if (object.clickPotentialRank != null)
|
3542
|
+
if ($util.Long)
|
3543
|
+
(message.clickPotentialRank = $util.Long.fromValue(object.clickPotentialRank)).unsigned = false;
|
3544
|
+
else if (typeof object.clickPotentialRank === "string")
|
3545
|
+
message.clickPotentialRank = parseInt(object.clickPotentialRank, 10);
|
3546
|
+
else if (typeof object.clickPotentialRank === "number")
|
3547
|
+
message.clickPotentialRank = object.clickPotentialRank;
|
3548
|
+
else if (typeof object.clickPotentialRank === "object")
|
3549
|
+
message.clickPotentialRank = new $util.LongBits(object.clickPotentialRank.low >>> 0, object.clickPotentialRank.high >>> 0).toNumber();
|
3461
3550
|
return message;
|
3462
3551
|
};
|
3463
3552
|
|
@@ -3482,6 +3571,7 @@
|
|
3482
3571
|
object.price = null;
|
3483
3572
|
object.creationTime = null;
|
3484
3573
|
object.expirationDate = null;
|
3574
|
+
object.clickPotential = options.enums === String ? "CLICK_POTENTIAL_UNSPECIFIED" : 0;
|
3485
3575
|
}
|
3486
3576
|
if (message.id != null && message.hasOwnProperty("id")) {
|
3487
3577
|
object.id = message.id;
|
@@ -3614,6 +3704,16 @@
|
|
3614
3704
|
if (options.oneofs)
|
3615
3705
|
object._channel = "channel";
|
3616
3706
|
}
|
3707
|
+
if (message.clickPotential != null && message.hasOwnProperty("clickPotential"))
|
3708
|
+
object.clickPotential = options.enums === String ? $root.google.shopping.merchant.reports.v1beta.ProductView.ClickPotential[message.clickPotential] === undefined ? message.clickPotential : $root.google.shopping.merchant.reports.v1beta.ProductView.ClickPotential[message.clickPotential] : message.clickPotential;
|
3709
|
+
if (message.clickPotentialRank != null && message.hasOwnProperty("clickPotentialRank")) {
|
3710
|
+
if (typeof message.clickPotentialRank === "number")
|
3711
|
+
object.clickPotentialRank = options.longs === String ? String(message.clickPotentialRank) : message.clickPotentialRank;
|
3712
|
+
else
|
3713
|
+
object.clickPotentialRank = options.longs === String ? $util.Long.prototype.toString.call(message.clickPotentialRank) : options.longs === Number ? new $util.LongBits(message.clickPotentialRank.low >>> 0, message.clickPotentialRank.high >>> 0).toNumber() : message.clickPotentialRank;
|
3714
|
+
if (options.oneofs)
|
3715
|
+
object._clickPotentialRank = "clickPotentialRank";
|
3716
|
+
}
|
3617
3717
|
return object;
|
3618
3718
|
};
|
3619
3719
|
|
@@ -4939,6 +5039,24 @@
|
|
4939
5039
|
return values;
|
4940
5040
|
})();
|
4941
5041
|
|
5042
|
+
/**
|
5043
|
+
* ClickPotential enum.
|
5044
|
+
* @name google.shopping.merchant.reports.v1beta.ProductView.ClickPotential
|
5045
|
+
* @enum {number}
|
5046
|
+
* @property {number} CLICK_POTENTIAL_UNSPECIFIED=0 CLICK_POTENTIAL_UNSPECIFIED value
|
5047
|
+
* @property {number} LOW=1 LOW value
|
5048
|
+
* @property {number} MEDIUM=2 MEDIUM value
|
5049
|
+
* @property {number} HIGH=3 HIGH value
|
5050
|
+
*/
|
5051
|
+
ProductView.ClickPotential = (function() {
|
5052
|
+
var valuesById = {}, values = Object.create(valuesById);
|
5053
|
+
values[valuesById[0] = "CLICK_POTENTIAL_UNSPECIFIED"] = 0;
|
5054
|
+
values[valuesById[1] = "LOW"] = 1;
|
5055
|
+
values[valuesById[2] = "MEDIUM"] = 2;
|
5056
|
+
values[valuesById[3] = "HIGH"] = 3;
|
5057
|
+
return values;
|
5058
|
+
})();
|
5059
|
+
|
4942
5060
|
return ProductView;
|
4943
5061
|
})();
|
4944
5062
|
|
package/build/protos/protos.json
CHANGED
@@ -563,6 +563,11 @@
|
|
563
563
|
"oneof": [
|
564
564
|
"aggregatedReportingContextStatus"
|
565
565
|
]
|
566
|
+
},
|
567
|
+
"_clickPotentialRank": {
|
568
|
+
"oneof": [
|
569
|
+
"clickPotentialRank"
|
570
|
+
]
|
566
571
|
}
|
567
572
|
},
|
568
573
|
"fields": {
|
@@ -748,6 +753,17 @@
|
|
748
753
|
"rule": "repeated",
|
749
754
|
"type": "ItemIssue",
|
750
755
|
"id": 27
|
756
|
+
},
|
757
|
+
"clickPotential": {
|
758
|
+
"type": "ClickPotential",
|
759
|
+
"id": 29
|
760
|
+
},
|
761
|
+
"clickPotentialRank": {
|
762
|
+
"type": "int64",
|
763
|
+
"id": 30,
|
764
|
+
"options": {
|
765
|
+
"proto3_optional": true
|
766
|
+
}
|
751
767
|
}
|
752
768
|
},
|
753
769
|
"nested": {
|
@@ -885,6 +901,14 @@
|
|
885
901
|
"ELIGIBLE_LIMITED": 3,
|
886
902
|
"ELIGIBLE": 4
|
887
903
|
}
|
904
|
+
},
|
905
|
+
"ClickPotential": {
|
906
|
+
"values": {
|
907
|
+
"CLICK_POTENTIAL_UNSPECIFIED": 0,
|
908
|
+
"LOW": 1,
|
909
|
+
"MEDIUM": 2,
|
910
|
+
"HIGH": 3
|
911
|
+
}
|
888
912
|
}
|
889
913
|
}
|
890
914
|
},
|
@@ -131,7 +131,7 @@ export declare class ReportServiceClient {
|
|
131
131
|
* fields.
|
132
132
|
* @param {number} [request.pageSize]
|
133
133
|
* Optional. Number of `ReportRows` to retrieve in a single page. Defaults to
|
134
|
-
*
|
134
|
+
* 1000. Values above 5000 are coerced to 5000.
|
135
135
|
* @param {string} [request.pageToken]
|
136
136
|
* Optional. Token of the page to retrieve. If not specified, the first page
|
137
137
|
* of results is returned. In order to request the next page of results, the
|
@@ -171,7 +171,7 @@ export declare class ReportServiceClient {
|
|
171
171
|
* fields.
|
172
172
|
* @param {number} [request.pageSize]
|
173
173
|
* Optional. Number of `ReportRows` to retrieve in a single page. Defaults to
|
174
|
-
*
|
174
|
+
* 1000. Values above 5000 are coerced to 5000.
|
175
175
|
* @param {string} [request.pageToken]
|
176
176
|
* Optional. Token of the page to retrieve. If not specified, the first page
|
177
177
|
* of results is returned. In order to request the next page of results, the
|
@@ -206,7 +206,7 @@ export declare class ReportServiceClient {
|
|
206
206
|
* fields.
|
207
207
|
* @param {number} [request.pageSize]
|
208
208
|
* Optional. Number of `ReportRows` to retrieve in a single page. Defaults to
|
209
|
-
*
|
209
|
+
* 1000. Values above 5000 are coerced to 5000.
|
210
210
|
* @param {string} [request.pageToken]
|
211
211
|
* Optional. Token of the page to retrieve. If not specified, the first page
|
212
212
|
* of results is returned. In order to request the next page of results, the
|
@@ -298,7 +298,7 @@ class ReportServiceClient {
|
|
298
298
|
* fields.
|
299
299
|
* @param {number} [request.pageSize]
|
300
300
|
* Optional. Number of `ReportRows` to retrieve in a single page. Defaults to
|
301
|
-
*
|
301
|
+
* 1000. Values above 5000 are coerced to 5000.
|
302
302
|
* @param {string} [request.pageToken]
|
303
303
|
* Optional. Token of the page to retrieve. If not specified, the first page
|
304
304
|
* of results is returned. In order to request the next page of results, the
|
@@ -347,7 +347,7 @@ class ReportServiceClient {
|
|
347
347
|
* fields.
|
348
348
|
* @param {number} [request.pageSize]
|
349
349
|
* Optional. Number of `ReportRows` to retrieve in a single page. Defaults to
|
350
|
-
*
|
350
|
+
* 1000. Values above 5000 are coerced to 5000.
|
351
351
|
* @param {string} [request.pageToken]
|
352
352
|
* Optional. Token of the page to retrieve. If not specified, the first page
|
353
353
|
* of results is returned. In order to request the next page of results, the
|