Skip to content

Commit 6301a14

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add additional YouTube report fields to Merchant reports endpoint
PiperOrigin-RevId: 789013724
1 parent c830417 commit 6301a14

File tree

2 files changed

+17
-23
lines changed

2 files changed

+17
-23
lines changed

google/shopping/merchant/reports/v1alpha/merchantapi_v1alpha.yaml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -30,27 +30,7 @@ publishing:
3030
common:
3131
destinations:
3232
- PACKAGE_MANAGER
33-
php_settings:
34-
common:
35-
destinations:
36-
- PACKAGE_MANAGER
3733
python_settings:
3834
common:
3935
destinations:
4036
- PACKAGE_MANAGER
41-
node_settings:
42-
common:
43-
destinations:
44-
- PACKAGE_MANAGER
45-
dotnet_settings:
46-
common:
47-
destinations:
48-
- PACKAGE_MANAGER
49-
ruby_settings:
50-
common:
51-
destinations:
52-
- PACKAGE_MANAGER
53-
go_settings:
54-
common:
55-
destinations:
56-
- PACKAGE_MANAGER

google/shopping/merchant/reports/v1alpha/reports.proto

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@ import "google/protobuf/timestamp.proto";
2323
import "google/shopping/type/types.proto";
2424
import "google/type/date.proto";
2525

26+
option csharp_namespace = "Google.Shopping.Merchant.Reports.V1Alpha";
2627
option go_package = "cloud.google.com/go/shopping/merchant/reports/apiv1alpha/reportspb;reportspb";
2728
option java_multiple_files = true;
2829
option java_outer_classname = "ReportsProto";
2930
option java_package = "com.google.shopping.merchant.reports.v1alpha";
31+
option php_namespace = "Google\\Shopping\\Merchant\\Reports\\V1alpha";
32+
option ruby_package = "Google::Shopping::Merchant::Reports::V1alpha";
3033

3134
// Service for retrieving reports and insights about your products, their
3235
// performance, and their competitive environment on Google.
@@ -122,13 +125,13 @@ message ReportRow {
122125
CompetitiveVisibilityBenchmarkView competitive_visibility_benchmark_view = 10;
123126

124127
// Fields available for query in `youtube_creator_performance_view` table.
125-
YoutubeCreatorPerformanceView youtube_creator_performance_view = 11;
128+
YoutubeCreatorPerformanceView youtube_creator_performance_view = 13;
126129

127130
// Fields available for query in `youtube_content_performance_view` table.
128-
YoutubeContentPerformanceView youtube_content_performance_view = 12;
131+
YoutubeContentPerformanceView youtube_content_performance_view = 14;
129132

130133
// Fields available for query in `youtube_product_performance_view` table.
131-
YoutubeProductPerformanceView youtube_product_performance_view = 13;
134+
YoutubeProductPerformanceView youtube_product_performance_view = 15;
132135
}
133136

134137
// Fields available for query in `product_performance_view` table.
@@ -1348,6 +1351,11 @@ message YoutubeContentPerformanceView {
13481351

13491352
// The net sales amount (includes both purchase and refunds).
13501353
optional google.shopping.type.Price net_sales = 11;
1354+
1355+
// Set of unique [product
1356+
// IDs](https://support.google.com/merchants/answer/188494#id) tagged on the
1357+
// YouTube video. These IDs correspond to the 'offerId' in the Products API.
1358+
repeated string tagged_product_ids = 12;
13511359
}
13521360

13531361
// Fields available for query in `youtube_product_performance_view` table.
@@ -1395,4 +1403,10 @@ message YoutubeProductPerformanceView {
13951403

13961404
// The net sales amount (includes both purchase and refunds).
13971405
optional google.shopping.type.Price net_sales = 11;
1406+
1407+
// The number of distinct creators that tagged the product.
1408+
optional int64 tagged_creator_count = 12;
1409+
1410+
// The number of distinct videos that tagged the product.
1411+
optional int64 tagged_video_count = 13;
13981412
}

0 commit comments

Comments
 (0)