@google-shopping/reports 0.1.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.
@@ -0,0 +1,161 @@
1
+ // Copyright 2023 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ syntax = "proto3";
16
+
17
+ package google.shopping.type;
18
+
19
+ option csharp_namespace = "Google.Shopping.Type";
20
+ option go_package = "cloud.google.com/go/shopping/type/typepb;typepb";
21
+ option java_multiple_files = true;
22
+ option java_outer_classname = "TypesProto";
23
+ option java_package = "com.google.shopping.type";
24
+
25
+ // The price represented as a number and currency.
26
+ message Price {
27
+ // The price represented as a number in micros (1 million micros is an
28
+ // equivalent to one's currency standard unit, for example, 1 USD = 1000000
29
+ // micros).
30
+ // This field can also be set as infinity by setting to -1.
31
+ // This field only support -1 and positive value.
32
+ optional int64 amount_micros = 1;
33
+
34
+ // The currency of the price using three-letter acronyms according to [ISO
35
+ // 4217](http://en.wikipedia.org/wiki/ISO_4217).
36
+ optional string currency_code = 2;
37
+ }
38
+
39
+ // A message that represents custom attributes. Exactly one of `value` or
40
+ // `group_values` must not be empty.
41
+ message CustomAttribute {
42
+ // The name of the attribute.
43
+ optional string name = 1;
44
+
45
+ // The value of the attribute. If `value` is not empty, `group_values` must be
46
+ // empty.
47
+ optional string value = 2;
48
+
49
+ // Subattributes within this attribute group. If
50
+ // `group_values` is not empty, `value` must be empty.
51
+ repeated CustomAttribute group_values = 3;
52
+ }
53
+
54
+ // Destinations available for a product.
55
+ //
56
+ // Destinations are used in Merchant Center to allow you to control where the
57
+ // products from your data feed should be displayed.
58
+ //
59
+ message Destination {
60
+ // Destination values.
61
+ enum DestinationEnum {
62
+ // Not specified.
63
+ DESTINATION_ENUM_UNSPECIFIED = 0;
64
+
65
+ // [Shopping ads](https://support.google.com/google-ads/answer/2454022).
66
+ SHOPPING_ADS = 1;
67
+
68
+ // [Display ads](https://support.google.com/merchants/answer/6069387).
69
+ DISPLAY_ADS = 2;
70
+
71
+ // [Local inventory
72
+ // ads](https://support.google.com/merchants/answer/3057972).
73
+ LOCAL_INVENTORY_ADS = 3;
74
+
75
+ // [Free listings](https://support.google.com/merchants/answer/9199328).
76
+ FREE_LISTINGS = 4;
77
+
78
+ // [Free local product
79
+ // listings](https://support.google.com/merchants/answer/9825611).
80
+ FREE_LOCAL_LISTINGS = 5;
81
+
82
+ // [YouTube Shopping](https://support.google.com/merchants/answer/12362804).
83
+ YOUTUBE_SHOPPING = 6;
84
+ }
85
+ }
86
+
87
+ // Reporting contexts that your account and product issues apply to.
88
+ //
89
+ // Reporting contexts are groups of surfaces and formats for product results on
90
+ // Google. They can represent the entire destination (for example, [Shopping
91
+ // ads](https://support.google.com/merchants/answer/6149970)) or a subset of
92
+ // formats within a destination (for example, [Discovery
93
+ // ads](https://support.google.com/merchants/answer/13389785)).
94
+ //
95
+ message ReportingContext {
96
+ // Reporting context values.
97
+ enum ReportingContextEnum {
98
+ // Not specified.
99
+ REPORTING_CONTEXT_ENUM_UNSPECIFIED = 0;
100
+
101
+ // [Shopping ads](https://support.google.com/merchants/answer/6149970).
102
+ SHOPPING_ADS = 1;
103
+
104
+ // [Discovery and Demand Gen
105
+ // ads](https://support.google.com/merchants/answer/13389785).
106
+ DISCOVERY_ADS = 2;
107
+
108
+ // [Video ads](https://support.google.com/google-ads/answer/6340491).
109
+ VIDEO_ADS = 3;
110
+
111
+ // [Display ads](https://support.google.com/merchants/answer/6069387).
112
+ DISPLAY_ADS = 4;
113
+
114
+ // [Local inventory
115
+ // ads](https://support.google.com/merchants/answer/3271956).
116
+ LOCAL_INVENTORY_ADS = 5;
117
+
118
+ // [Vehicle inventory
119
+ // ads](https://support.google.com/merchants/answer/11544533).
120
+ VEHICLE_INVENTORY_ADS = 6;
121
+
122
+ // [Free product
123
+ // listings](https://support.google.com/merchants/answer/9199328).
124
+ FREE_LISTINGS = 7;
125
+
126
+ // [Free local product
127
+ // listings](https://support.google.com/merchants/answer/9825611).
128
+ FREE_LOCAL_LISTINGS = 8;
129
+
130
+ // [Free local vehicle
131
+ // listings](https://support.google.com/merchants/answer/11544533).
132
+ FREE_LOCAL_VEHICLE_LISTINGS = 9;
133
+
134
+ // [YouTube
135
+ // Shopping](https://support.google.com/merchants/answer/13478370).
136
+ YOUTUBE_SHOPPING = 10;
137
+
138
+ // [Cloud retail](https://cloud.google.com/solutions/retail).
139
+ CLOUD_RETAIL = 11;
140
+
141
+ // [Local cloud retail](https://cloud.google.com/solutions/retail).
142
+ LOCAL_CLOUD_RETAIL = 12;
143
+ }
144
+ }
145
+
146
+ // [Channel](https://support.google.com/merchants/answer/7361332) of a product.
147
+ //
148
+ // Channel is used to distinguish between online and local products.
149
+ message Channel {
150
+ // Channel values.
151
+ enum ChannelEnum {
152
+ // Not specified.
153
+ CHANNEL_ENUM_UNSPECIFIED = 0;
154
+
155
+ // Online product.
156
+ ONLINE = 1;
157
+
158
+ // Local product.
159
+ LOCAL = 2;
160
+ }
161
+ }