Skip to content

Commit 28d3bc7

Browse files
Google APIscopybara-github
authored andcommitted
feat: ReportingContext enum is added
fix!: Destination enum is wrapped in a message PiperOrigin-RevId: 572913446
1 parent 736857e commit 28d3bc7

2 files changed

Lines changed: 83 additions & 12 deletions

File tree

google/shopping/type/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ py_gapic_library(
104104

105105
# Open Source Packages
106106
py_gapic_assembly_pkg(
107-
name = "type-py",
107+
name = "google-shopping-type-py",
108108
deps = [
109109
":type_py_gapic",
110110
],

google/shopping/type/types.proto

Lines changed: 82 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,90 @@ message CustomAttribute {
5353
//
5454
// Destinations are used in Merchant Center to allow you to control where the
5555
// products from your data feed should be displayed.
56-
enum Destination {
57-
// Not specified.
58-
DESTINATION_UNSPECIFIED = 0;
56+
//
57+
message Destination {
58+
// Destination values.
59+
enum DestinationEnum {
60+
// Not specified.
61+
DESTINATION_ENUM_UNSPECIFIED = 0;
62+
63+
// [Shopping ads](https://support.google.com/google-ads/answer/2454022).
64+
SHOPPING_ADS = 1;
65+
66+
// [Display ads](https://support.google.com/merchants/answer/6069387).
67+
DISPLAY_ADS = 2;
68+
69+
// [Local inventory
70+
// ads](https://support.google.com/merchants/answer/3057972).
71+
LOCAL_INVENTORY_ADS = 3;
72+
73+
// [Free listings](https://support.google.com/merchants/answer/9199328).
74+
FREE_LISTINGS = 4;
75+
76+
// [Free local product
77+
// listings](https://support.google.com/merchants/answer/9825611).
78+
FREE_LOCAL_LISTINGS = 5;
79+
80+
// [YouTube Shopping](https://support.google.com/merchants/answer/12362804).
81+
YOUTUBE_SHOPPING = 6;
82+
}
83+
}
84+
85+
// Reporting contexts that your account and product issues apply to.
86+
//
87+
// Reporting contexts are groups of surfaces and formats for product results on
88+
// Google. They can represent the entire destination (for example, [Shopping
89+
// ads](https://support.google.com/merchants/answer/6149970)) or a subset of
90+
// formats within a destination (for example, [Discovery
91+
// ads](https://support.google.com/merchants/answer/13389785)).
92+
//
93+
message ReportingContext {
94+
// Reporting context values.
95+
enum ReportingContextEnum {
96+
// Not specified.
97+
REPORTING_CONTEXT_ENUM_UNSPECIFIED = 0;
98+
99+
// [Shopping ads](https://support.google.com/merchants/answer/6149970).
100+
SHOPPING_ADS = 1;
101+
102+
// [Discovery and Demand Gen
103+
// ads](https://support.google.com/merchants/answer/13389785).
104+
DISCOVERY_ADS = 2;
105+
106+
// [Video ads](https://support.google.com/google-ads/answer/6340491).
107+
VIDEO_ADS = 3;
108+
109+
// [Display ads](https://support.google.com/merchants/answer/6069387).
110+
DISPLAY_ADS = 4;
111+
112+
// [Local inventory
113+
// ads](https://support.google.com/merchants/answer/3271956).
114+
LOCAL_INVENTORY_ADS = 5;
115+
116+
// [Vehicle inventory
117+
// ads](https://support.google.com/merchants/answer/11544533).
118+
VEHICLE_INVENTORY_ADS = 6;
119+
120+
// [Free product
121+
// listings](https://support.google.com/merchants/answer/9199328).
122+
FREE_LISTINGS = 7;
123+
124+
// [Free local product
125+
// listings](https://support.google.com/merchants/answer/9825611).
126+
FREE_LOCAL_LISTINGS = 8;
59127

60-
// Shopping ads.
61-
SHOPPING_ADS = 1;
128+
// [Free local vehicle
129+
// listings](https://support.google.com/merchants/answer/11544533).
130+
FREE_LOCAL_VEHICLE_LISTINGS = 9;
62131

63-
// Local inventory ads.
64-
LOCAL_INVENTORY_ADS = 2;
132+
// [YouTube
133+
// Shopping](https://support.google.com/merchants/answer/13478370).
134+
YOUTUBE_SHOPPING = 10;
65135

66-
// Free listings.
67-
FREE_LISTINGS = 3;
136+
// [Cloud retail](https://cloud.google.com/solutions/retail).
137+
CLOUD_RETAIL = 11;
68138

69-
// Free local product listings.
70-
FREE_LOCAL_LISTINGS = 4;
139+
// [Local cloud retail](https://cloud.google.com/solutions/retail).
140+
LOCAL_CLOUD_RETAIL = 12;
141+
}
71142
}

0 commit comments

Comments
 (0)