Skip to content

Commit 3bd956b

Browse files
feat(content): update the api
#### content:v2.1 The following keys were added: - schemas.Segments.properties.customerCountryCode.type (Total Keys: 1)
1 parent 21f18cf commit 3bd956b

File tree

3 files changed

+48
-43
lines changed

3 files changed

+48
-43
lines changed

docs/dyn/content_v2_1.promotions.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,14 @@ <h3>Method Details</h3>
9898
body: object, The request body.
9999
The object takes the form of:
100100

101-
{ # The Promotions feature is available for `AU`, `CA`, `DE`, `FR`, `GB`, `IN` and `US` target countries, and `en` content language. Represents a promotion. See the following articles for more details. * [Promotions feed specification](https://support.google.com/merchants/answer/2906014) * [Local promotions feed specification](https://support.google.com/merchants/answer/10146130) * [Promotions on Buy on Google product data specification](https://support.google.com/merchants/answer/9173673)
101+
{ # Represents a promotion. See the following articles for more details. * [Promotions feed specification](https://support.google.com/merchants/answer/2906014) * [Local promotions feed specification](https://support.google.com/merchants/answer/10146130) * [Promotions on Buy on Google product data specification](https://support.google.com/merchants/answer/9173673)
102102
&quot;brand&quot;: [ # Product filter by brand for the promotion.
103103
&quot;A String&quot;,
104104
],
105105
&quot;brandExclusion&quot;: [ # Product filter by brand exclusion for the promotion.
106106
&quot;A String&quot;,
107107
],
108-
&quot;contentLanguage&quot;: &quot;A String&quot;, # Required. The content language used as part of the unique identifier. Currently only `en` value is supported.
108+
&quot;contentLanguage&quot;: &quot;A String&quot;, # Required. The content language used as part of the unique identifier. `en` content language is available for all target countries. `fr` content language is available for `CA` and `FR` target countries, and `de` content language is available for `DE` target country.
109109
&quot;couponValueType&quot;: &quot;A String&quot;, # Required. Coupon value type for the promotion.
110110
&quot;freeGiftDescription&quot;: &quot;A String&quot;, # Free gift description for the promotion.
111111
&quot;freeGiftItemId&quot;: &quot;A String&quot;, # Free gift item ID for the promotion.
@@ -188,14 +188,14 @@ <h3>Method Details</h3>
188188
Returns:
189189
An object of the form:
190190

191-
{ # The Promotions feature is available for `AU`, `CA`, `DE`, `FR`, `GB`, `IN` and `US` target countries, and `en` content language. Represents a promotion. See the following articles for more details. * [Promotions feed specification](https://support.google.com/merchants/answer/2906014) * [Local promotions feed specification](https://support.google.com/merchants/answer/10146130) * [Promotions on Buy on Google product data specification](https://support.google.com/merchants/answer/9173673)
191+
{ # Represents a promotion. See the following articles for more details. * [Promotions feed specification](https://support.google.com/merchants/answer/2906014) * [Local promotions feed specification](https://support.google.com/merchants/answer/10146130) * [Promotions on Buy on Google product data specification](https://support.google.com/merchants/answer/9173673)
192192
&quot;brand&quot;: [ # Product filter by brand for the promotion.
193193
&quot;A String&quot;,
194194
],
195195
&quot;brandExclusion&quot;: [ # Product filter by brand exclusion for the promotion.
196196
&quot;A String&quot;,
197197
],
198-
&quot;contentLanguage&quot;: &quot;A String&quot;, # Required. The content language used as part of the unique identifier. Currently only `en` value is supported.
198+
&quot;contentLanguage&quot;: &quot;A String&quot;, # Required. The content language used as part of the unique identifier. `en` content language is available for all target countries. `fr` content language is available for `CA` and `FR` target countries, and `de` content language is available for `DE` target country.
199199
&quot;couponValueType&quot;: &quot;A String&quot;, # Required. Coupon value type for the promotion.
200200
&quot;freeGiftDescription&quot;: &quot;A String&quot;, # Free gift description for the promotion.
201201
&quot;freeGiftItemId&quot;: &quot;A String&quot;, # Free gift item ID for the promotion.
@@ -286,14 +286,14 @@ <h3>Method Details</h3>
286286
Returns:
287287
An object of the form:
288288

289-
{ # The Promotions feature is available for `AU`, `CA`, `DE`, `FR`, `GB`, `IN` and `US` target countries, and `en` content language. Represents a promotion. See the following articles for more details. * [Promotions feed specification](https://support.google.com/merchants/answer/2906014) * [Local promotions feed specification](https://support.google.com/merchants/answer/10146130) * [Promotions on Buy on Google product data specification](https://support.google.com/merchants/answer/9173673)
289+
{ # Represents a promotion. See the following articles for more details. * [Promotions feed specification](https://support.google.com/merchants/answer/2906014) * [Local promotions feed specification](https://support.google.com/merchants/answer/10146130) * [Promotions on Buy on Google product data specification](https://support.google.com/merchants/answer/9173673)
290290
&quot;brand&quot;: [ # Product filter by brand for the promotion.
291291
&quot;A String&quot;,
292292
],
293293
&quot;brandExclusion&quot;: [ # Product filter by brand exclusion for the promotion.
294294
&quot;A String&quot;,
295295
],
296-
&quot;contentLanguage&quot;: &quot;A String&quot;, # Required. The content language used as part of the unique identifier. Currently only `en` value is supported.
296+
&quot;contentLanguage&quot;: &quot;A String&quot;, # Required. The content language used as part of the unique identifier. `en` content language is available for all target countries. `fr` content language is available for `CA` and `FR` target countries, and `de` content language is available for `DE` target country.
297297
&quot;couponValueType&quot;: &quot;A String&quot;, # Required. Coupon value type for the promotion.
298298
&quot;freeGiftDescription&quot;: &quot;A String&quot;, # Free gift description for the promotion.
299299
&quot;freeGiftItemId&quot;: &quot;A String&quot;, # Free gift item ID for the promotion.

docs/dyn/content_v2_1.reports.html

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -117,29 +117,29 @@ <h3>Method Details</h3>
117117
&quot;results&quot;: [ # Rows that matched the search query.
118118
{ # Result row returned from the search query.
119119
&quot;metrics&quot;: { # Performance metrics. Values are only set for metrics requested explicitly in the request&#x27;s search query. # Metrics requested by the merchant in the query. Metric values are only set for metrics requested explicitly in the query.
120-
&quot;aos&quot;: 3.14, # Average order size - the average number of items in an order. **This metric cannot be segmented by product dimensions.**
121-
&quot;aovMicros&quot;: 3.14, # Average order value - the average value (total price of items) of all placed orders. The currency of the returned value is stored in the currency_code segment. If this metric is selected, &#x27;segments.currency_code&#x27; is automatically added to the SELECT clause in the search query (unless it is explicitly selected by the user) and the currency_code segment is populated in the response. **This metric cannot be segmented by product dimensions.**
120+
&quot;aos&quot;: 3.14, # Average order size - the average number of items in an order. **This metric cannot be segmented by product dimensions and customer_country_code.**
121+
&quot;aovMicros&quot;: 3.14, # Average order value - the average value (total price of items) of all placed orders. The currency of the returned value is stored in the currency_code segment. If this metric is selected, &#x27;segments.currency_code&#x27; is automatically added to the SELECT clause in the search query (unless it is explicitly selected by the user) and the currency_code segment is populated in the response. **This metric cannot be segmented by product dimensions and customer_country_code.**
122122
&quot;clicks&quot;: &quot;A String&quot;, # Number of clicks.
123123
&quot;conversionRate&quot;: 3.14, # Number of conversions divided by the number of clicks, reported on the impression date. The metric is currently available only for the FREE_PRODUCT_LISTING program.
124124
&quot;conversionValueMicros&quot;: &quot;A String&quot;, # Value of conversions in micros attributed to the product, reported on the conversion date. The metric is currently available only for the FREE_PRODUCT_LISTING program. The currency of the returned value is stored in the currency_code segment. If this metric is selected, &#x27;segments.currency_code&#x27; is automatically added to the SELECT clause in the search query (unless it is explicitly selected by the user) and the currency_code segment is populated in the response.
125125
&quot;conversions&quot;: 3.14, # Number of conversions attributed to the product, reported on the conversion date. Depending on the attribution model, a conversion might be distributed across multiple clicks, where each click gets its own credit assigned. This metric is a sum of all such credits. The metric is currently available only for the FREE_PRODUCT_LISTING program.
126126
&quot;ctr&quot;: 3.14, # Click-through rate - the number of clicks merchant&#x27;s products receive (clicks) divided by the number of times the products are shown (impressions).
127-
&quot;daysToShip&quot;: 3.14, # Average number of days between an order being placed and the order being fully shipped, reported on the last shipment date. **This metric cannot be segmented by product dimensions.**
127+
&quot;daysToShip&quot;: 3.14, # Average number of days between an order being placed and the order being fully shipped, reported on the last shipment date. **This metric cannot be segmented by product dimensions and customer_country_code.**
128128
&quot;impressions&quot;: &quot;A String&quot;, # Number of times merchant&#x27;s products are shown.
129-
&quot;itemDaysToShip&quot;: 3.14, # Average number of days between an item being ordered and the item being
130-
&quot;itemFillRate&quot;: 3.14, # Percentage of shipped items in relation to all finalized items (shipped or rejected by the merchant; unshipped items are not taken into account), reported on the order date. Item fill rate is lowered by merchant rejections.
131-
&quot;orderedItemSalesMicros&quot;: &quot;A String&quot;, # Total price of ordered items. Excludes shipping, taxes (US only), and customer cancellations that happened within 30 minutes of placing the order. The currency of the returned value is stored in the currency_code segment. If this metric is selected, &#x27;segments.currency_code&#x27; is automatically added to the SELECT clause in the search query (unless it is explicitly selected by the user) and the currency_code segment is populated in the response.
132-
&quot;orderedItems&quot;: &quot;A String&quot;, # Number of ordered items. Excludes customer cancellations that happened within 30 minutes of placing the order.
133-
&quot;orders&quot;: &quot;A String&quot;, # Number of placed orders. Excludes customer cancellations that happened within 30 minutes of placing the order. **This metric cannot be segmented by product dimensions.**
134-
&quot;rejectedItems&quot;: &quot;A String&quot;, # Number of ordered items canceled by the merchant, reported on the order date.
135-
&quot;returnRate&quot;: 3.14, # Total price of returned items divided by the total price of shipped items, reported on the order date. If this metric is selected, &#x27;segments.currency_code&#x27; is automatically added to the SELECT clause in the search query (unless it is explicitly selected by the user) and the currency_code segment is populated in the response.
136-
&quot;returnedItems&quot;: &quot;A String&quot;, # Number of ordered items sent back for return, reported on the date when the merchant accepted the return.
137-
&quot;returnsMicros&quot;: &quot;A String&quot;, # Total price of ordered items sent back for return, reported on the date when the merchant accepted the return. The currency of the returned value is stored in the currency_code segment. If this metric is selected, &#x27;segments.currency_code&#x27; is automatically added to the SELECT clause in the search query (unless it is explicitly selected by the user) and the currency_code segment is populated in the response.
138-
&quot;shippedItemSalesMicros&quot;: &quot;A String&quot;, # Total price of shipped items, reported on the order date. Excludes shipping and taxes (US only). The currency of the returned value is stored in the currency_code segment. If this metric is selected, &#x27;segments.currency_code&#x27; is automatically added to the SELECT clause in the search query (unless it is explicitly selected by the user) and the currency_code segment is populated in the response.
139-
&quot;shippedItems&quot;: &quot;A String&quot;, # Number of shipped items, reported on the shipment date.
140-
&quot;shippedOrders&quot;: &quot;A String&quot;, # Number of fully shipped orders, reported on the last shipment date. **This metric cannot be segmented by product dimensions.**
141-
&quot;unshippedItems&quot;: 3.14, # Number of ordered items not shipped up until the end of the queried day. If a multi-day period is specified in the search query, the returned value is the average number of unshipped items over the days in the queried period.
142-
&quot;unshippedOrders&quot;: 3.14, # Number of orders not shipped or partially shipped up until the end of the queried day. If a multi-day period is specified in the search query, the returned value is the average number of unshipped orders over the days in the queried period. **This metric cannot be segmented by product dimensions.**
129+
&quot;itemDaysToShip&quot;: 3.14, # Average number of days between an item being ordered and the item being **This metric cannot be segmented by customer_country_code.**
130+
&quot;itemFillRate&quot;: 3.14, # Percentage of shipped items in relation to all finalized items (shipped or rejected by the merchant; unshipped items are not taken into account), reported on the order date. Item fill rate is lowered by merchant rejections. **This metric cannot be segmented by customer_country_code.**
131+
&quot;orderedItemSalesMicros&quot;: &quot;A String&quot;, # Total price of ordered items. Excludes shipping, taxes (US only), and customer cancellations that happened within 30 minutes of placing the order. The currency of the returned value is stored in the currency_code segment. If this metric is selected, &#x27;segments.currency_code&#x27; is automatically added to the SELECT clause in the search query (unless it is explicitly selected by the user) and the currency_code segment is populated in the response. **This metric cannot be segmented by customer_country_code.**
132+
&quot;orderedItems&quot;: &quot;A String&quot;, # Number of ordered items. Excludes customer cancellations that happened within 30 minutes of placing the order. **This metric cannot be segmented by customer_country_code.**
133+
&quot;orders&quot;: &quot;A String&quot;, # Number of placed orders. Excludes customer cancellations that happened within 30 minutes of placing the order. **This metric cannot be segmented by product dimensions and customer_country_code.**
134+
&quot;rejectedItems&quot;: &quot;A String&quot;, # Number of ordered items canceled by the merchant, reported on the order date. **This metric cannot be segmented by customer_country_code.**
135+
&quot;returnRate&quot;: 3.14, # Total price of returned items divided by the total price of shipped items, reported on the order date. If this metric is selected, &#x27;segments.currency_code&#x27; is automatically added to the SELECT clause in the search query (unless it is explicitly selected by the user) and the currency_code segment is populated in the response. **This metric cannot be segmented by customer_country_code.**
136+
&quot;returnedItems&quot;: &quot;A String&quot;, # Number of ordered items sent back for return, reported on the date when the merchant accepted the return. **This metric cannot be segmented by customer_country_code.**
137+
&quot;returnsMicros&quot;: &quot;A String&quot;, # Total price of ordered items sent back for return, reported on the date when the merchant accepted the return. The currency of the returned value is stored in the currency_code segment. If this metric is selected, &#x27;segments.currency_code&#x27; is automatically added to the SELECT clause in the search query (unless it is explicitly selected by the user) and the currency_code segment is populated in the response. **This metric cannot be segmented by customer_country_code.**
138+
&quot;shippedItemSalesMicros&quot;: &quot;A String&quot;, # Total price of shipped items, reported on the order date. Excludes shipping and taxes (US only). The currency of the returned value is stored in the currency_code segment. If this metric is selected, &#x27;segments.currency_code&#x27; is automatically added to the SELECT clause in the search query (unless it is explicitly selected by the user) and the currency_code segment is populated in the response. **This metric cannot be segmented by customer_country_code.**
139+
&quot;shippedItems&quot;: &quot;A String&quot;, # Number of shipped items, reported on the shipment date. **This metric cannot be segmented by customer_country_code.**
140+
&quot;shippedOrders&quot;: &quot;A String&quot;, # Number of fully shipped orders, reported on the last shipment date. **This metric cannot be segmented by product dimensions and customer_country_code.**
141+
&quot;unshippedItems&quot;: 3.14, # Number of ordered items not shipped up until the end of the queried day. If a multi-day period is specified in the search query, the returned value is the average number of unshipped items over the days in the queried period. **This metric cannot be segmented by customer_country_code.**
142+
&quot;unshippedOrders&quot;: 3.14, # Number of orders not shipped or partially shipped up until the end of the queried day. If a multi-day period is specified in the search query, the returned value is the average number of unshipped orders over the days in the queried period. **This metric cannot be segmented by product dimensions and customer_country_code.**
143143
},
144144
&quot;segments&quot;: { # Dimensions according to which metrics are segmented in the response. Values of product dimensions, e.g., offer id, reflect the state of a product at the time of the corresponding event, e.g., impression or order. Segment fields cannot be selected in queries without also selecting at least one metric field. Values are only set for dimensions requested explicitly in the request&#x27;s search query. # Segmentation dimensions requested by the merchant in the query. Dimension values are only set for dimensions requested explicitly in the query.
145145
&quot;brand&quot;: &quot;A String&quot;, # Brand of the product.
@@ -154,6 +154,7 @@ <h3>Method Details</h3>
154154
&quot;customLabel2&quot;: &quot;A String&quot;, # Custom label 2 for custom grouping of products.
155155
&quot;customLabel3&quot;: &quot;A String&quot;, # Custom label 3 for custom grouping of products.
156156
&quot;customLabel4&quot;: &quot;A String&quot;, # Custom label 4 for custom grouping of products.
157+
&quot;customerCountryCode&quot;: &quot;A String&quot;, # Code of the country where the customer is located at the time of the event. Represented in the ISO 3166 format. If the customer country cannot be determined, a special &#x27;ZZ&#x27; code is returned.
157158
&quot;date&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Date in the merchant timezone to which metrics apply.
158159
&quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
159160
&quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.

0 commit comments

Comments
 (0)